Added super + tab to sxhkd
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
This commit is contained in:
parent
53aabef1a5
commit
2c9a3e72d7
@ -50,39 +50,54 @@ super + alt + shift + {h,j,k,l}
|
|||||||
super + {Left,Down,Up,Right}
|
super + {Left,Down,Up,Right}
|
||||||
bspc node -v {-20 0,0 20,0 -20,20 0}
|
bspc node -v {-20 0,0 20,0 -20,20 0}
|
||||||
|
|
||||||
|
# Mute
|
||||||
XF86AudioMute
|
XF86AudioMute
|
||||||
pactl set-sink-mute @DEFAULT_SINK@ toggle && \
|
pactl set-sink-mute @DEFAULT_SINK@ toggle && \
|
||||||
dunstify -h string:x-dunst-stack-tag:sink-mute "Sink muted" (pactl get-sink-mute @DEFAULT_SINK@ | cut -d ' ' -f 2)
|
dunstify -h string:x-dunst-stack-tag:sink-mute "Sink muted" (pactl get-sink-mute @DEFAULT_SINK@ | cut -d ' ' -f 2)
|
||||||
|
|
||||||
|
# Volume +
|
||||||
XF86AudioRaiseVolume
|
XF86AudioRaiseVolume
|
||||||
pactl set-sink-volume @DEFAULT_SINK@ +2% && \
|
pactl set-sink-volume @DEFAULT_SINK@ +2% && \
|
||||||
dunstify -h string:x-dunst-stack-tag:sink-volume "Sink volume" (pactl get-sink-volume @DEFAULT_SINK@ | sed -e 's,.* \([0-9][0-9]*\)%.*,\1,' | head -n 1)
|
dunstify -h string:x-dunst-stack-tag:sink-volume "Sink volume" (pactl get-sink-volume @DEFAULT_SINK@ | sed -e 's,.* \([0-9][0-9]*\)%.*,\1,' | head -n 1)
|
||||||
|
|
||||||
|
# Volume -
|
||||||
XF86AudioLowerVolume
|
XF86AudioLowerVolume
|
||||||
pactl set-sink-volume @DEFAULT_SINK@ -2% && \
|
pactl set-sink-volume @DEFAULT_SINK@ -2% && \
|
||||||
dunstify -h string:x-dunst-stack-tag:sink-volume "Sink volume" (pactl get-sink-volume @DEFAULT_SINK@ | sed -e 's,.* \([0-9][0-9]*\)%.*,\1,' | head -n 1)
|
dunstify -h string:x-dunst-stack-tag:sink-volume "Sink volume" (pactl get-sink-volume @DEFAULT_SINK@ | sed -e 's,.* \([0-9][0-9]*\)%.*,\1,' | head -n 1)
|
||||||
|
|
||||||
|
# Mute mic
|
||||||
XF86AudioMicMute
|
XF86AudioMicMute
|
||||||
pactl set-source-mute @DEFAULT_SOURCE@ toggle && \
|
pactl set-source-mute @DEFAULT_SOURCE@ toggle && \
|
||||||
dunstify -h string:x-dunst-stack-tag:source-mute "Source muted" (pactl get-source-mute @DEFAULT_SOURCE@ | cut -d ' ' -f 2)
|
dunstify -h string:x-dunst-stack-tag:source-mute "Source muted" (pactl get-source-mute @DEFAULT_SOURCE@ | cut -d ' ' -f 2)
|
||||||
|
|
||||||
|
# Brightness -
|
||||||
XF86MonBrightnessDown
|
XF86MonBrightnessDown
|
||||||
echo (math (cat /sys/class/backlight/amdgpu_bl0/brightness) - 5) > /sys/class/backlight/amdgpu_bl0/brightness
|
echo (math (cat /sys/class/backlight/amdgpu_bl0/brightness) - 5) > /sys/class/backlight/amdgpu_bl0/brightness
|
||||||
|
|
||||||
|
# Brightness +
|
||||||
XF86MonBrightnessUp
|
XF86MonBrightnessUp
|
||||||
echo (math (cat /sys/class/backlight/amdgpu_bl0/brightness) + 5) > /sys/class/backlight/amdgpu_bl0/brightness
|
echo (math (cat /sys/class/backlight/amdgpu_bl0/brightness) + 5) > /sys/class/backlight/amdgpu_bl0/brightness
|
||||||
|
|
||||||
|
# Screenshot fullscreen
|
||||||
Print
|
Print
|
||||||
set FILE_NAME "/home/louis/Pictures/Screenshots/Screeshot-"(date +'%d-%m-%Y-%H-%M-%S')".png" && import -window root ${FILE_NAME} && dunstify "Screenshot taken: ${FILE_NAME}"
|
set FILE_NAME "/home/louis/Pictures/Screenshots/Screeshot-"(date +'%d-%m-%Y-%H-%M-%S')".png" && import -window root ${FILE_NAME} && dunstify "Screenshot taken: ${FILE_NAME}"
|
||||||
|
|
||||||
|
# Screenshot with selecton
|
||||||
ctrl + Print
|
ctrl + Print
|
||||||
set FILE_NAME "/home/louis/Pictures/Screenshots/Screeshot-"(date +'%d-%m-%Y-%H-%M-%S')".png" && import ${FILE_NAME} && dunstify "Screenshot taken: ${FILE_NAME}"
|
set FILE_NAME "/home/louis/Pictures/Screenshots/Screeshot-"(date +'%d-%m-%Y-%H-%M-%S')".png" && import ${FILE_NAME} && dunstify "Screenshot taken: ${FILE_NAME}"
|
||||||
|
|
||||||
|
# Play
|
||||||
XF86AudioPlay
|
XF86AudioPlay
|
||||||
dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause
|
dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause
|
||||||
|
|
||||||
|
# Previous
|
||||||
XF86AudioPrev
|
XF86AudioPrev
|
||||||
dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous
|
dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous
|
||||||
|
|
||||||
|
# Next
|
||||||
XF86AudioNext
|
XF86AudioNext
|
||||||
dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next
|
dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next
|
||||||
|
|
||||||
|
# Alternate between windows, even across multiple desktops
|
||||||
|
super + Tab
|
||||||
|
bspc node last -f last.\!hidden -f last.\!same_class
|
||||||
|
Loading…
Reference in New Issue
Block a user