diff options
Diffstat (limited to 'xbindkeys')
-rw-r--r-- | xbindkeys/.config/systemd/user/xbindkeys.service | 9 | ||||
-rw-r--r-- | xbindkeys/.xbindkeysrc | 59 | ||||
-rw-r--r-- | xbindkeys/Makefile | 9 |
3 files changed, 77 insertions, 0 deletions
diff --git a/xbindkeys/.config/systemd/user/xbindkeys.service b/xbindkeys/.config/systemd/user/xbindkeys.service new file mode 100644 index 0000000..d1f83e5 --- /dev/null +++ b/xbindkeys/.config/systemd/user/xbindkeys.service @@ -0,0 +1,9 @@ +[Service] +ExecStart=/bin/sh -c '. ${HOME}/.config/sh/rc.d/00path && xbindkeys -p -n' +Restart=always +# otherwise any applications launched via a keybinding will be killed when +# the service is restarted +KillMode=process + +[Install] +WantedBy=default.target diff --git a/xbindkeys/.xbindkeysrc b/xbindkeys/.xbindkeysrc new file mode 100644 index 0000000..caaac4b --- /dev/null +++ b/xbindkeys/.xbindkeysrc @@ -0,0 +1,59 @@ +"env WINIT_X11_SCALE_FACTOR=1 alacritty" + Mod4 + o + +"firefox" + Mod4 + b + +"xclip -o | xargs xdg-open" + Mod4 + p + +"dmenu_run -fn 'Misc Fixed:pixelsize=14'" + Mod4 + r + +"xset s activate" + Mod4 + d + +"numkeys toggle" + Shift + Shift_R + +"numkeys toggle" + Shift + Shift_L + +"volume mute && pkill -USR1 i3status" + XF86AudioMute + +"volume down && pkill -USR1 i3status" + XF86AudioLowerVolume + +"volume up && pkill -USR1 i3status" + XF86AudioRaiseVolume + +"pactl set-source-mute 5 toggle" + XF86AudioMicMute + +"backlight dec && pkill -USR1 i3status" + XF86MonBrightnessDown + +"backlight inc && pkill -USR1 i3status" + XF86MonBrightnessUp + +"tv" + XF86Display + +"[ $(rfkill --output type,soft | grep wlan | awk '{print $2}') = 'unblocked' ] && sudo rfkill block wlan || sudo rfkill unblock wlan" + XF86WLAN + +"env WINIT_X11_SCALE_FACTOR=1 tdrop -w 724 -h 436 alacritty --class Alacritty-tdrop -e tmux" + XF86Tools + +"xset dpms force off" + XF86Search + +"kill-focused STOP" + XF86LaunchA + +"kill-focused CONT" + XF86Explorer + +"xclip -selection CLIPBOARD -o | xargs -0 -n1 xdotool type --clearmodifiers --delay 0" + Control + Insert + Release diff --git a/xbindkeys/Makefile b/xbindkeys/Makefile new file mode 100644 index 0000000..b89c717 --- /dev/null +++ b/xbindkeys/Makefile @@ -0,0 +1,9 @@ +include ../Makefile.include + +install: + @systemctl --user enable xbindkeys + @systemctl --user start xbindkeys + +uninstall: + @systemctl --user stop xbindkeys + @systemctl --user disable xbindkeys |