From 161a09e6dff96915ba4f9932b6e31a23b3bd492e Mon Sep 17 00:00:00 2001 From: William Carroll Date: Wed, 27 Mar 2019 18:19:21 +0000 Subject: [PATCH] Adjust i3 colors, update KBDs, remove icons from i3statusbar May need to find a better KBD for `snip_it`, since I really enjoy Tmux's M-s to switch sessions. Learned about i3's "edge" concept. Re-supported KBDs for settings split directions. Also adjusted theme colors. Also adjusts the formatting of the timezone information to show GMT as LON, EST as NYC, and Pacific as MTV. --- configs/shared/misc/.config/i3/config.shared | 17 ++++++++++++----- configs/shared/misc/.config/i3status/config | 17 +++++++++++------ 2 files changed, 23 insertions(+), 11 deletions(-) diff --git a/configs/shared/misc/.config/i3/config.shared b/configs/shared/misc/.config/i3/config.shared index 71fe1bf59..a81a47b31 100644 --- a/configs/shared/misc/.config/i3/config.shared +++ b/configs/shared/misc/.config/i3/config.shared @@ -76,7 +76,7 @@ bindsym $mod+n exec st -e lf ~/Downloads # Screenshot # TODO: find a better KBD for this -# bindsym $mod+Shift+4 exec zsh -i -c snipit +bindsym $mod+s exec zsh -i -c snipit # note that this eclipses Tmux's M-s KBD for switching b/w session bindsym Ctrl+Print exec scrot ~/Pictures/screenshots/%b-%d-%Y_%T.png # Windows style # TODO: debug # bindsym $mod+Print exec scrot --focused ~/Pictures/screenshots/%b-%d-%Y_%T.png # Windows style @@ -99,6 +99,11 @@ exec --no-startup-id gnome-settings-daemon # wireless selection mechanism exec --no-startup-id nm-applet +# set the split direction +bindsym $mod+v split vertical +# cannot bind $mod+h because of movement commands +bindsym $mod+Shift+v split horizontal + # lock the screen (Window's famous Ctrl-Alt-Delete) bindsym $mod+Ctrl+Delete exec "/usr/share/goobuntu-desktop-files/xsecurelock.sh" bindsym $mod+Shift+q exec "/usr/share/goobuntu-desktop-files/xsecurelock.sh" @@ -234,13 +239,15 @@ set $bright_cyan #56b6c2 set $selection #3a3f4b # class # border # bg # text #indicator #child_border -client.focused $red $red $red $red $bright_cyan -client.focused_inactive $red $red $red $red $black -client.unfocused $red $red $red $red $black +client.focused $red $red $red $magenta $bright_cyan +client.focused_inactive $red $red $red $magenta $black +client.unfocused $red $red $red $magenta $black bar { status_command i3status position top + # disable system tray icons + tray_output none colors { background $black statusline $white @@ -250,4 +257,4 @@ bar { inactive_workspace $black $black $bright_black urgent_workspace $magenta $black $magenta } -} +} \ No newline at end of file diff --git a/configs/shared/misc/.config/i3status/config b/configs/shared/misc/.config/i3status/config index 9df0af323..37f6678ce 100644 --- a/configs/shared/misc/.config/i3status/config +++ b/configs/shared/misc/.config/i3status/config @@ -4,26 +4,31 @@ general { colors = true } -order += "time" +order += "tztime lon" order += "tztime est" order += "tztime pst" order += "disk /" disk "/" { prefix_type = "decimal" - format = "%avail / %total" + format = "%used/%total" } -time { - format = "%H:%M - %D" +# Useful commands for dealing with timezones: +# - cat /etc/timezone +# - man date +# - timedatectl +tztime lon { + format = "LON %H:%M" + timezone = "Europe/London" } tztime est { - format = "%H:%M EST" + format = "NYC %H:%M" timezone = "US/Eastern" } tztime pst { - format = "%H:%M PST" + format = "MTV %H:%M" timezone = "US/Pacific" } \ No newline at end of file