1
0
forked from extern/nix-config

sxhkd: Change fn keys to super + F1-F12

This change has 3 main benefits:

1. We no longer have to worry about switching between the fn keys and
   F1-F12 keys, and can benefit from both keybinds at the same time.
2. Keys that don't return anything under xev (such as the chat icon and
   telephone icons) can now be customized.
3. We no longer have to worry about accidentally pressing the networking
   key that disables the internet connection.
This commit is contained in:
Donovan Glover 2022-05-24 16:38:14 -04:00
parent c59984ac06
commit 8613af7d85
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -94,30 +94,40 @@ super + c
# ======= fn keys ======= # ======= fn keys =======
# ======================= # =======================
XF86AudioMute super + F1
pactl set-sink-mute @DEFAULT_SINK@ toggle && notify-send -t 2000 "Changed muted to" "$(pamixer --get-mute)" pactl set-sink-mute @DEFAULT_SINK@ toggle && notify-send -t 2000 "Changed muted to" "$(pamixer --get-mute)"
XF86AudioLowerVolume super + F2
pactl set-sink-volume @DEFAULT_SINK@ -5% && notify-send -t 2000 "Lowered volume to" "$(pamixer --get-volume)%" pactl set-sink-volume @DEFAULT_SINK@ -5% && notify-send -t 2000 "Lowered volume to" "$(pamixer --get-volume)%"
XF86AudioRaiseVolume super + F3
pactl set-sink-volume @DEFAULT_SINK@ +5% && notify-send -t 2000 "Raised volume to" "$(pamixer --get-volume)%" pactl set-sink-volume @DEFAULT_SINK@ +5% && notify-send -t 2000 "Raised volume to" "$(pamixer --get-volume)%"
XF86AudioMicMute super + F4
pactl set-source-mute @DEFAULT_SOURCE@ toggle pactl set-source-mute @DEFAULT_SOURCE@ toggle
XF86MonBrightnessDown super + F5
brightnessctl set 5%- brightnessctl set 5%-
XF86MonBrightnessUp super + F6
brightnessctl set +5% brightnessctl set +5%
XF86Display super + F7
notify-send -t 2000 "XF86Display" "No command defined." notify-send -t 2000 "F7" "No command defined."
XF86WLAN super + F8
notify-send -t 2000 "XF86WLAN" "No command defined." notify-send -t 2000 "F8" "No command defined."
super + F9
notify-send -t 2000 "F9" "No command defined."
super + F10
notify-send -t 2000 "F10" "No command defined."
super + F11
notify-send -t 2000 "F11" "No command defined."
super + F12
notify-send -t 2000 "F12" "No command defined."
XF86Favorites
notify-send -t 2000 "XF86Favorites" "No command defined."
# vim:ft=sxhkdrc # vim:ft=sxhkdrc