sxhkd: First config with bluetooth bindings
This commit is contained in:
parent
10c5d5a89a
commit
eb66005800
@ -16,6 +16,7 @@ polybar &
|
|||||||
feh --no-fehbg --bg-center ~/.cache/randomwallpaper@iflow.space/wallpapers/wallpaper.png
|
feh --no-fehbg --bg-center ~/.cache/randomwallpaper@iflow.space/wallpapers/wallpaper.png
|
||||||
pcloud &
|
pcloud &
|
||||||
dunst &
|
dunst &
|
||||||
|
sxhkd &
|
||||||
|
|
||||||
xset r rate 260 60
|
xset r rate 260 60
|
||||||
|
|
||||||
@ -32,7 +33,7 @@ hc keybind $Mod-Shift-r reload
|
|||||||
hc keybind $Mod-Shift-q close
|
hc keybind $Mod-Shift-q close
|
||||||
hc keybind $Mod-Return spawn kitty # use your $TERMINAL with xterm as fallback
|
hc keybind $Mod-Return spawn kitty # use your $TERMINAL with xterm as fallback
|
||||||
hc keybind $Mod-v spawn emacsclient -nc -e "(joe/vterm-here)"
|
hc keybind $Mod-v spawn emacsclient -nc -e "(joe/vterm-here)"
|
||||||
hc keybind $Mod-space spawn emacsclient -cF "((visibility . nil))" -e "(emacs-run-launcher)"
|
hc keybind $Mod-space spawn emacsclient -w 2 -a "" -e "(emacs-run-launcher)"
|
||||||
|
|
||||||
# basic movement in tiling and floating mode
|
# basic movement in tiling and floating mode
|
||||||
# focusing clients
|
# focusing clients
|
||||||
@ -106,7 +107,7 @@ hc keybind $Mod-t pseudotile toggle
|
|||||||
hc keybind $Mod-w \
|
hc keybind $Mod-w \
|
||||||
or , and . compare tags.focus.curframe_wcount = 2 \
|
or , and . compare tags.focus.curframe_wcount = 2 \
|
||||||
. cycle_layout +1 max horizontal \
|
. cycle_layout +1 max horizontal \
|
||||||
, cycle_layout +1 max grid
|
, cycle_layout +1 max horizontal grid
|
||||||
|
|
||||||
# mouse
|
# mouse
|
||||||
hc mouseunbind --all
|
hc mouseunbind --all
|
||||||
@ -116,29 +117,20 @@ hc mousebind $Mod-Button3 resize
|
|||||||
|
|
||||||
# media
|
# media
|
||||||
vol_sound=/usr/share/sounds/freedesktop/stereo/audio-volume-change.oga
|
vol_sound=/usr/share/sounds/freedesktop/stereo/audio-volume-change.oga
|
||||||
hc keybind XF86AudioRaiseVolume spawn bash -c "paplay $vol_sound; amixer sset Master 4%+"
|
hc keybind XF86AudioRaiseVolume chain \
|
||||||
hc keybind XF86AudioLowerVolume spawn bash -c "paplay $vol_sound; amixer sset Master 4%-"
|
'|>' spawn paplay $vol_sound \
|
||||||
|
'|>' spawn amixer sset Master 4%+
|
||||||
|
|
||||||
|
hc keybind XF86AudioLowerVolume chain \
|
||||||
|
'|>' spawn paplay $vol_sound \
|
||||||
|
'|>' spawn amixer sset Master 4%-
|
||||||
|
|
||||||
play_sound=/usr/share/sounds/freedesktop/stereo/dialog-warning.oga
|
play_sound=/usr/share/sounds/freedesktop/stereo/dialog-warning.oga
|
||||||
hc keybind XF86AudioPlay spawn bash -c "playerctl -a play-pause; paplay $play_sound"
|
hc keybind XF86AudioPlay chain \
|
||||||
|
'|>' spawn playerctl play-pause \
|
||||||
|
'|>' spawn paplay $play_sound
|
||||||
|
|
||||||
|
|
||||||
# bluetooth
|
|
||||||
icon=/usr/share/icons/Adwaita/16x16/status/bluetooth-active-symbolic.symbolic.png
|
|
||||||
|
|
||||||
hc keybind $Mod-b chain \
|
|
||||||
'->' spawn bluetoothctl connect F8:5B:6E:2A:6A:CF \
|
|
||||||
'->' spawn notify-send -t 2000 -i $icon "Bluetooth" "Connecting Galaxy Buds"
|
|
||||||
|
|
||||||
hc keybind $Mod-Alt-b chain \
|
|
||||||
'->' spawn bluetoothctl disconnect F8:5B:6E:2A:6A:CF \
|
|
||||||
'->' spawn notify-send -t 2000 -i $icon "Bluetooth" "Disconnecting Galaxy Buds"
|
|
||||||
|
|
||||||
hc keybind $Mod-Shift-b chain \
|
|
||||||
'->' spawn sudo systemctl restart bluetooth.service \
|
|
||||||
'->' spawn notify-send -t 2000 -i $icon "Bluetooth" "Restarting systemd service"
|
|
||||||
|
|
||||||
hc keybind $Mod-Ctrl-b spawn toggle-bt-codec
|
|
||||||
|
|
||||||
# Lock
|
# Lock
|
||||||
hc keybind $Mod-Ctrl-Shift-l spawn bash -c 'slock | systemctl suspend'
|
hc keybind $Mod-Ctrl-Shift-l spawn bash -c 'slock | systemctl suspend'
|
||||||
|
|
||||||
|
17
.config/sxhkd/sxhkdrc
Normal file
17
.config/sxhkd/sxhkdrc
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
mod4 + b ; c
|
||||||
|
set icon /usr/share/icons/Adwaita/16x16/status/bluetooth-active-symbolic.symbolic.png; \
|
||||||
|
notify-send -t 2000 -i $icon "Bluetooth" "Connecting Galaxy Buds"; \
|
||||||
|
bluetoothctl connect F8:5B:6E:2A:6A:CF &>/dev/null
|
||||||
|
|
||||||
|
mod4 + b ; d
|
||||||
|
set icon /usr/share/icons/Adwaita/16x16/status/bluetooth-active-symbolic.symbolic.png; \
|
||||||
|
notify-send -t 2000 -i $icon "Bluetooth" "Disconnecting Galaxy Buds"; \
|
||||||
|
bluetoothctl disconnect F8:5B:6E:2A:6A:CF &>/dev/null
|
||||||
|
|
||||||
|
mod4 + b ; r
|
||||||
|
set icon /usr/share/icons/Adwaita/16x16/status/bluetooth-active-symbolic.symbolic.png; \
|
||||||
|
notify-send -t 2000 -i $icon "Bluetooth" "Restarting systemd service"; \
|
||||||
|
sudo systemctl restart bluetooth.service
|
||||||
|
|
||||||
|
mod4 + b ; a
|
||||||
|
toggle-bt-codec
|
Loading…
x
Reference in New Issue
Block a user