diff options
author | Mateja <mail@matejamaric.com> | 2020-11-25 22:56:55 +0100 |
---|---|---|
committer | Mateja <mail@matejamaric.com> | 2020-11-25 22:56:55 +0100 |
commit | 8c2b8522ef77f8801885b44ca34c5c5ab8164be2 (patch) | |
tree | f8ec634a89ee29edcd6b03b603bdc49c9dc4f9a3 | |
parent | da3df637a566001805532b57c534e6fc1c7aacf4 (diff) | |
download | dotfiles-8c2b8522ef77f8801885b44ca34c5c5ab8164be2.tar.gz dotfiles-8c2b8522ef77f8801885b44ca34c5c5ab8164be2.zip |
More qtile keybindings and better autostart.sh
-rwxr-xr-x | .config/qtile/autostart.sh | 4 | ||||
-rw-r--r-- | .config/qtile/config.py | 8 | ||||
-rwxr-xr-x | stuff/scripts/mpd_show | 6 |
3 files changed, 16 insertions, 2 deletions
diff --git a/.config/qtile/autostart.sh b/.config/qtile/autostart.sh index 434d2ea..9aff5bc 100755 --- a/.config/qtile/autostart.sh +++ b/.config/qtile/autostart.sh @@ -5,6 +5,8 @@ setxkbmap -option caps:swapescape numlockx & dunst & udiskie & -picom & +compton & feh --bg-fill ~/stuff/pictures/alps-house.jpg +gpg-agent & +ssh-agent & mpd & diff --git a/.config/qtile/config.py b/.config/qtile/config.py index 1a00186..330506c 100644 --- a/.config/qtile/config.py +++ b/.config/qtile/config.py @@ -34,6 +34,8 @@ keys = [ desc="Take a screenshot"), Key([mod], "x", lazy.spawn("mpc toggle"), desc="Pause/Resume MPD playback"), + Key([mod, "shift"], "x", lazy.spawn("bash -c ~/stuff/scripts/mpd_show"), + desc="Display song."), Key([mod], "z", lazy.spawn("mpc next"), desc="MPD next song"), Key([mod, "shift"], "z", lazy.spawn("mpc prev"), @@ -64,7 +66,7 @@ keys = [ desc="Toggle floating"), # Keyboard layout - Key([mod, "control"], "space", lazy.widget["keyboardlayout"].next_keyboard(), + Key([mod], "space", lazy.widget["keyboardlayout"].next_keyboard(), desc="Next keyboard layout."), # Switch window focus to other pane(s) of stack @@ -91,6 +93,9 @@ keys = [ Key([mod, "control"], "q", lazy.shutdown(), desc="Shutdown qtile"), Key([mod], "r", lazy.spawncmd(), desc="Spawn a command using a prompt widget"), + + Key([mod], "b", lazy.screen.toggle_group(), + desc="Switch to the previously active group."), ] groups = [Group(i) for i in "asdfuiop"] @@ -193,6 +198,7 @@ floating_layout = layout.Floating(float_rules=[ {'wname': 'branchdialog'}, # gitk {'wname': 'pinentry'}, # GPG key password entry {'wmclass': 'ssh-askpass'}, # ssh-askpass + {'wmclass': 'gcr-prompter'}, # ssh-askpass ]) auto_fullscreen = True focus_on_window_activation = "smart" diff --git a/stuff/scripts/mpd_show b/stuff/scripts/mpd_show new file mode 100755 index 0000000..8d14a1d --- /dev/null +++ b/stuff/scripts/mpd_show @@ -0,0 +1,6 @@ +#!/bin/sh + +raw="$(mpc)" +song=$(echo "$raw" | sed -n '1p') +time=$(echo "$raw" | sed -n '2p') +notify-send "$song" "$time" |