diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc index 13b2bae..b05d092 100644 --- a/.config/sxhkd/sxhkdrc +++ b/.config/sxhkd/sxhkdrc @@ -1,28 +1,47 @@ +#!/bin/sh +# Using super as the main modifier key, so remember to check if a key conflicts with a DWM keybinding. + +# Reload sxhkdrc configuration +super + shift + r + pkill -usr1 -x sxhkd; notify-send 'sxhkd' 'Reloaded config' + +# Running dmenu scripts super + d dmenu_run super + D passmenu -super + Return - $TERMINAL +super + S + sinkmenu super + grave dmenuunicode +super + m + layoutmenu + +# Spawn programs +super + Return + $TERMINAL super + w $BROWSER + +# Implementing basic control hotkeys +super + Control_L + fcitx-remote -t +super + l + xsecurelock super + Print dmenu -p "Screenshot filename:" < /dev/null | xargs -I "name" maim -s ~/name super + shift + Print dmenu -p "Screenshot filename:" < /dev/null | xargs -I "name" maim ~/name super + minus - wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-; kill -44 $(pidof dwmblocks) + wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%-; kill -44 $(pidof dwmblocks) super + shift + minus - wpctl set-volume @DEFAULT_AUDIO_SINK@ 15%-; kill -44 $(pidof dwmblocks) + wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-; kill -44 $(pidof dwmblocks) super + equal - wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+; kill -44 $(pidof dwmblocks) + wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%+; kill -44 $(pidof dwmblocks) super + shift + equal - wpctl set-volume @DEFAULT_AUDIO_SINK@ 15%+; kill -44 $(pidof dwmblocks) + wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+; kill -44 $(pidof dwmblocks) XF86MonBrightnessUp change-brightness up XF86MonBrightnessDown change-brightness down - diff --git a/.local/bin/change-layout b/.local/bin/change-layout deleted file mode 100755 index 15b5c0f..0000000 --- a/.local/bin/change-layout +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh -autorandr --list | dmenu | xargs -I "layout" autorandr layout && feh --bg-scale --no-fehbg "$HOME/.config/wallpaper" && xset r rate 300 50 - diff --git a/.local/bin/layoutmenu b/.local/bin/layoutmenu new file mode 100755 index 0000000..f4e2490 --- /dev/null +++ b/.local/bin/layoutmenu @@ -0,0 +1,3 @@ +#!/bin/sh +autorandr --list | dmenu -i -l 30 | xargs -I "layout" autorandr layout && feh --bg-scale --no-fehbg "$HOME/.config/wallpaper" && xset r rate 300 50 + diff --git a/.local/bin/change-sink b/.local/bin/sinkmenu similarity index 100% rename from .local/bin/change-sink rename to .local/bin/sinkmenu