diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2019-01-07 00:36:00 +0000 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2019-01-07 00:36:00 +0000 |
commit | e729e1fbf478aaee978872416b25697c7105e59c (patch) | |
tree | 75d566c2b8008dda4864a05d20d3e12a5b8a133d | |
parent | 32348feac12ee550e500dca70f5c5ff8befdcd66 (diff) | |
download | dotfiles-e729e1fbf478aaee978872416b25697c7105e59c.tar.gz dotfiles-e729e1fbf478aaee978872416b25697c7105e59c.zip |
Add functions for power control
-rw-r--r-- | sxhkd/sxhkdrc | 34 | ||||
-rw-r--r-- | zsh/.zsh/function.zsh | 1 |
2 files changed, 14 insertions, 21 deletions
diff --git a/sxhkd/sxhkdrc b/sxhkd/sxhkdrc index 04bb864..a17faad 100644 --- a/sxhkd/sxhkdrc +++ b/sxhkd/sxhkdrc @@ -124,29 +124,21 @@ super + {Left,Down,Up,Right} # Media # -XF86AudioPlay - playerctl play-pause +XF86Audio{Play,Stop,Next,Prev} + playerctl {play-pause,stop,next,previous} -XF86AudioStop - playerctl stop +XF86MonBrightness{Up,Down} + light -{A,U} 5 -XF86AudioNext - playerctl next - -XF86AudioPrev - playerctl previous - -pXF86MonBrightnessUp - light -A 5 - -XF86MonBrightnessDown - light -U 5 - -XF86AudioRaiseVolume - amixer set Master 5%+ - -XF86AudioLowerVolume - amixer set Master 5%- +XF86Audio{Raise,Lower}Volume + amixer set Master 5%{+,-} XF86AudioMute amixer set Master toggle-mute + +# +# Power +# + +super + shift + p; {s,shift + s,l,shift + r} + ${HOME}/.local/bin/i3exit {suspend,shutdown,lock,reboot}
\ No newline at end of file diff --git a/zsh/.zsh/function.zsh b/zsh/.zsh/function.zsh index 1fc7baa..cfeed04 100644 --- a/zsh/.zsh/function.zsh +++ b/zsh/.zsh/function.zsh @@ -24,4 +24,5 @@ fdd() { wal-tile() { wal -n -i "$@" feh --bg-tile "$(< "${HOME}/.cache/wal/wal")" + /home/yannherklotz/.local/bin/betterlock -u "$(< "${HOME}/.cache/wal/wal")" } |