Adding desc to qtile keybinds; Editing spectrwm bar.

This commit is contained in:
Derek Taylor
2020-04-15 22:55:51 -05:00
parent 6dcbb99515
commit 7ceea46a41
4 changed files with 106 additions and 56 deletions

View File

@@ -42,182 +42,226 @@ keys = [
### The essentials ### The essentials
Key( Key(
[mod], "Return", [mod], "Return",
lazy.spawn(myTerm) # Open terminal lazy.spawn(myTerm),
desc='Launches Terminal'
), ),
Key( Key(
[mod, "shift"], "Return", # Dmenu Run Launcher [mod, "shift"], "Return",
lazy.spawn("dmenu_run -p 'Run: '") lazy.spawn("dmenu_run -p 'Run: '"),
desc='Dmenu Run Launcher'
), ),
Key( Key(
[mod], "Tab", [mod], "Tab",
lazy.next_layout() # Toggle through layouts lazy.next_layout(),
desc='Toggle through layouts'
), ),
Key( Key(
[mod, "shift"], "c", [mod, "shift"], "c",
lazy.window.kill() # Kill active window lazy.window.kill(),
desc='Kill active window'
), ),
Key( Key(
[mod, "shift"], "r", [mod, "shift"], "r",
lazy.restart() # Restart Qtile lazy.restart(),
desc='Restart Qtile'
), ),
Key( Key(
[mod, "shift"], "q", [mod, "shift"], "q",
lazy.shutdown() # Shutdown Qtile lazy.shutdown(),
desc='Shutdown Qtile'
), ),
### Switch focus to specific monitor (out of three) ### Switch focus to specific monitor (out of three)
Key([mod], "w", Key([mod], "w",
lazy.to_screen(0) # Keyboard focus to screen(0) lazy.to_screen(0),
desc='Keyboard focus to monitor 1'
), ),
Key([mod], "e", Key([mod], "e",
lazy.to_screen(1) # Keyboard focus to screen(1) lazy.to_screen(1),
desc='Keyboard focus to monitor 2'
), ),
Key([mod], "r", Key([mod], "r",
lazy.to_screen(2) # Keyboard focus to screen(2) lazy.to_screen(2),
desc='Keyboard focus to monitor 3'
), ),
### Switch focus of monitors ### Switch focus of monitors
Key([mod], "period", Key([mod], "period",
lazy.next_screen() # Move monitor focus to next screen lazy.next_screen(),
desc='Move focus to next monitor'
), ),
Key([mod], "comma", Key([mod], "comma",
lazy.prev_screen() # Move monitor focus to prev screen lazy.prev_screen(),
desc='Move focus to prev monitor'
), ),
### Treetab controls ### Treetab controls
Key([mod, "control"], "k", Key([mod, "control"], "k",
lazy.layout.section_up() # Move up a section in treetab lazy.layout.section_up(),
desc='Move up a section in treetab'
), ),
Key([mod, "control"], "j", Key([mod, "control"], "j",
lazy.layout.section_down() # Move down a section in treetab lazy.layout.section_down(),
desc='Move down a section in treetab'
), ),
### Window controls ### Window controls
Key( Key(
[mod], "k", [mod], "k",
lazy.layout.down() # Switch between windows in current stack pane lazy.layout.down(),
desc='Move focus down in current stack pane'
), ),
Key( Key(
[mod], "j", [mod], "j",
lazy.layout.up() # Switch between windows in current stack pane lazy.layout.up(),
desc='Move focus up in current stack pane'
), ),
Key( Key(
[mod, "shift"], "k", [mod, "shift"], "k",
lazy.layout.shuffle_down() # Move windows down in current stack lazy.layout.shuffle_down(),
desc='Move windows down in current stack'
), ),
Key( Key(
[mod, "shift"], "j", [mod, "shift"], "j",
lazy.layout.shuffle_up() # Move windows up in current stack lazy.layout.shuffle_up(),
desc='Move windows up in current stack'
), ),
Key( Key(
[mod], "h", [mod], "h",
lazy.layout.grow(), # Grow size of current window (XmonadTall) lazy.layout.grow(),
lazy.layout.increase_nmaster(), # Increase number in master pane (Tile) lazy.layout.increase_nmaster(),
desc='Expand window (MonadTall), increase number in master pane (Tile)'
), ),
Key( Key(
[mod], "l", [mod], "l",
lazy.layout.shrink(), # Shrink size of current window (XmonadTall) lazy.layout.shrink(),
lazy.layout.decrease_nmaster(), # Decrease number in master pane (Tile) lazy.layout.decrease_nmaster(),
desc='Shrink window (MonadTall), decrease number in master pane (Tile)'
), ),
Key( Key(
[mod], "n", [mod], "n",
lazy.layout.normalize() # Restore all windows to default size ratios lazy.layout.normalize(),
desc='normalize window size ratios'
), ),
Key( Key(
[mod], "m", [mod], "m",
lazy.layout.maximize() # Toggle a window between minimum and maximum sizes lazy.layout.maximize(),
desc='toggle window between minimum and maximum sizes'
), ),
Key( Key(
[mod, "shift"], "f", [mod, "shift"], "f",
lazy.window.toggle_floating() # Toggle floating lazy.window.toggle_floating(),
desc='toggle floating'
), ),
### Stack controls ### Stack controls
Key( Key(
[mod, "shift"], "space", [mod, "shift"], "space",
lazy.layout.rotate(), # Swap panes of split stack (Stack) lazy.layout.rotate(),
lazy.layout.flip() # Switch which side main pane occupies (XmonadTall) lazy.layout.flip(),
desc='Switch which side main pane occupies (XmonadTall)'
), ),
Key( Key(
[mod], "space", [mod], "space",
lazy.layout.next() # Switch window focus to other pane(s) of stack lazy.layout.next(),
desc='Switch window focus to other pane(s) of stack'
), ),
Key( Key(
[mod, "control"], "Return", [mod, "control"], "Return",
lazy.layout.toggle_split() # Toggle between split and unsplit sides of stack lazy.layout.toggle_split(),
desc='Toggle between split and unsplit sides of stack'
), ),
### Dmenu scripts launched with ALT + CTRL + KEY ### Dmenu scripts launched with ALT + CTRL + KEY
Key( Key(
["mod1", "control"], "e", ["mod1", "control"], "e",
lazy.spawn("./.dmenu/dmenu-edit-configs.sh") lazy.spawn("./.dmenu/dmenu-edit-configs.sh"),
desc='Dmenu script for editing config files'
), ),
Key( Key(
["mod1", "control"], "m", ["mod1", "control"], "m",
lazy.spawn("./.dmenu/dmenu-sysmon.sh") lazy.spawn("./.dmenu/dmenu-sysmon.sh"),
desc='Dmenu system monitor script'
), ),
Key( Key(
["mod1", "control"], "p", ["mod1", "control"], "p",
lazy.spawn("passmenu") lazy.spawn("passmenu"),
desc='Passmenu'
), ),
Key( Key(
["mod1", "control"], "r", ["mod1", "control"], "r",
lazy.spawn("./.dmenu/dmenu-reddio.sh") lazy.spawn("./.dmenu/dmenu-reddio.sh"),
desc='Dmenu reddio script'
), ),
Key( Key(
["mod1", "control"], "s", ["mod1", "control"], "s",
lazy.spawn("./.dmenu/dmenu-surfraw.sh") lazy.spawn("./.dmenu/dmenu-surfraw.sh"),
desc='Dmenu surfraw script'
), ),
Key( Key(
["mod1", "control"], "t", ["mod1", "control"], "t",
lazy.spawn("./.dmenu/dmenu-trading.sh") lazy.spawn("./.dmenu/dmenu-trading.sh"),
desc='Dmenu trading programs script'
), ),
Key( Key(
["mod1", "control"], "i", ["mod1", "control"], "i",
lazy.spawn("./.dmenu/dmenu-scrot.sh") lazy.spawn("./.dmenu/dmenu-scrot.sh"),
desc='Dmenu scrot script'
), ),
### My applications launched with SUPER + ALT + KEY ### My applications launched with SUPER + ALT + KEY
Key( Key(
[mod, "mod1"], "l", [mod, "mod1"], "l",
lazy.spawn(myTerm+" -e lynx gopher://distro.tube") lazy.spawn(myTerm+" -e lynx gopher://distro.tube"),
desc='lynx browser'
), ),
Key( Key(
[mod, "mod1"], "n", [mod, "mod1"], "n",
lazy.spawn(myTerm+" -e newsboat") lazy.spawn(myTerm+" -e newsboat"),
desc='newsboat'
), ),
Key( Key(
[mod, "mod1"], "r", [mod, "mod1"], "r",
lazy.spawn(myTerm+" -e rtv") lazy.spawn(myTerm+" -e rtv"),
desc='reddit terminal viewer'
), ),
Key( Key(
[mod, "mod1"], "e", [mod, "mod1"], "e",
lazy.spawn(myTerm+" -e neomutt") lazy.spawn(myTerm+" -e neomutt"),
desc='neomutt'
), ),
Key( Key(
[mod, "mod1"], "m", [mod, "mod1"], "m",
lazy.spawn(myTerm+" -e sh ./scripts/toot.sh") lazy.spawn(myTerm+" -e sh ./scripts/toot.sh"),
desc='toot mastodon cli'
), ),
Key( Key(
[mod, "mod1"], "t", [mod, "mod1"], "t",
lazy.spawn(myTerm+" -e sh ./scripts/tig-script.sh") lazy.spawn(myTerm+" -e sh ./scripts/tig-script.sh"),
desc='tig'
), ),
Key( Key(
[mod, "mod1"], "f", [mod, "mod1"], "f",
lazy.spawn(myTerm+" -e sh ./.config/vifm/scripts/vifmrun") lazy.spawn(myTerm+" -e sh ./.config/vifm/scripts/vifmrun"),
desc='vifm'
), ),
Key( Key(
[mod, "mod1"], "j", [mod, "mod1"], "j",
lazy.spawn(myTerm+" -e joplin") lazy.spawn(myTerm+" -e joplin"),
desc='joplin'
), ),
Key( Key(
[mod, "mod1"], "c", [mod, "mod1"], "c",
lazy.spawn(myTerm+" -e cmus") lazy.spawn(myTerm+" -e cmus"),
desc='cmus'
), ),
Key( Key(
[mod, "mod1"], "i", [mod, "mod1"], "i",
lazy.spawn(myTerm+" -e irssi") lazy.spawn(myTerm+" -e irssi"),
desc='irssi'
), ),
Key( Key(
[mod, "mod1"], "y", [mod, "mod1"], "y",
lazy.spawn(myTerm+" -e youtube-viewer") lazy.spawn(myTerm+" -e youtube-viewer"),
desc='youtube-viewer'
), ),
Key( Key(
[mod, "mod1"], "a", [mod, "mod1"], "a",
lazy.spawn(myTerm+" -e ncpamixer") lazy.spawn(myTerm+" -e ncpamixer"),
desc='ncpamixer'
), ),
] ]
@@ -309,7 +353,7 @@ def init_widgets_list():
), ),
widget.GroupBox(font="Ubuntu Bold", widget.GroupBox(font="Ubuntu Bold",
fontsize = 9, fontsize = 9,
margin_y = 1, margin_y = 3,
margin_x = 0, margin_x = 0,
padding_y = 5, padding_y = 5,
padding_x = 5, padding_x = 5,
@@ -436,6 +480,7 @@ def init_widgets_list():
), ),
widget.Net( widget.Net(
interface = "enp6s0", interface = "enp6s0",
format = '{down} ↓↑ {up}',
foreground = colors[2], foreground = colors[2],
background = colors[4], background = colors[4],
padding = 5 padding = 5
@@ -487,7 +532,7 @@ def init_widgets_list():
widget.Clock( widget.Clock(
foreground = colors[2], foreground = colors[2],
background = colors[5], background = colors[5],
format="%A, %B %d - [ %H:%M ]" format="%A, %B %d [ %H:%M ]"
), ),
widget.Sep( widget.Sep(
linewidth = 0, linewidth = 0,

View File

@@ -24,6 +24,7 @@ i3
neovim neovim
polybar polybar
qtile qtile
spectrwm
st st
stumpwm stumpwm
surf surf
@@ -93,6 +94,9 @@ case "$choice" in
qtile) qtile)
choice="$HOME/.config/qtile/config.py" choice="$HOME/.config/qtile/config.py"
;; ;;
spectrwm)
choice="$HOME/.spectrwm.conf"
;;
st) st)
choice="$HOME/st-distrotube/config.h" choice="$HOME/st-distrotube/config.h"
;; ;;

View File

@@ -31,18 +31,19 @@ tile_gap = 6
# Bar Settings # Bar Settings
bar_action = /home/dt/baraction.sh bar_action = /home/dt/baraction.sh
bar_action_expand = 1
bar_enabled = 1 bar_enabled = 1
bar_border_width = 1 bar_border_width = 1
bar_border[1] = rgb:28/2a/36 bar_border[1] = rgb:28/2a/36
bar_border_unfocus[1] = rgb:28/2a/36 bar_border_unfocus[1] = rgb:28/2a/36
bar_color[1] = rgb:28/2a/36 bar_color[1] = rgb:28/2a/36, rgb:00/80/80
bar_color_selected[1] = rgb:00/80/80 bar_color_selected[1] = rgb:00/80/80
bar_delay = 5 bar_delay = 5
bar_font_color[1] = rgb:bb/c5/ff bar_font_color[1] = rgb:bb/c5/ff, rgb:e1/ac/ff, rgb:dd/ff/a7, rgb:ff/8b/92, rgb:ff/e5/85, rgb:89/dd/ff
bar_font_color_selected = black bar_font_color_selected = black
bar_font = Mononoki Nerd Font:size=9 bar_font = Mononoki Nerd Font:size=9, JoyPixels:size=9
bar_justify = center bar_justify = center
bar_format = +N:+I +S (+D) | +A bar_format = +|L+1<+N:+I +S (+D) +W +|R+A+1<+@fg=5; %a %b %d %R
workspace_indicator = listcurrent,listactive,markcurrent,printnames workspace_indicator = listcurrent,listactive,markcurrent,printnames
bar_at_bottom = 0 bar_at_bottom = 0
stack_enabled = 1 stack_enabled = 1

View File

@@ -16,7 +16,7 @@ hdd() {
## RAM ## RAM
mem() { mem() {
mem=`free | awk '/Mem/ {printf "%d MiB/%d MiB\n", $3 / 1024.0, $2 / 1024.0 }'` mem=`free | awk '/Mem/ {printf "%d MiB/%d MiB\n", $3 / 1024.0, $2 / 1024.0 }'`
echo -e "MEM: $mem" echo -e "$mem"
} }
## CPU ## CPU
@@ -39,6 +39,6 @@ vol() {
SLEEP_SEC=5 SLEEP_SEC=5
#loops forever outputting a line every SLEEP_SEC secs #loops forever outputting a line every SLEEP_SEC secs
while :; do while :; do
echo "$(cpu) | $(mem) | $(hdd) | $(vol) | $(dte)" echo "+@fg=1; +@fn=1;💻+@fn=0; $(cpu) +@fg=0; | +@fg=2; +@fn=1;💾+@fn=0; $(mem) +@fg=0; | +@fg=3; +@fn=1;💿+@fn=0; $(hdd) +@fg=0; | +@fg=4; +@fn=1;🔈+@fn=0; $(vol) +@fg=0; |"
sleep $SLEEP_SEC sleep $SLEEP_SEC
done done