From 7bad3080d2882b01ae89daaaba506b4f86dc53f0 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Thu, 23 Jan 2025 20:43:24 +0100 Subject: add brightness script --- .config/xbindkeys/main | 113 ++++++++++++++++++++++++++++++++++++ .config/xbindkeys/main##template | 121 --------------------------------------- 2 files changed, 113 insertions(+), 121 deletions(-) create mode 100644 .config/xbindkeys/main delete mode 100644 .config/xbindkeys/main##template (limited to '.config') diff --git a/.config/xbindkeys/main b/.config/xbindkeys/main new file mode 100644 index 0000000..4e27583 --- /dev/null +++ b/.config/xbindkeys/main @@ -0,0 +1,113 @@ +"lock" + Mod4 + Escape +"polybar-msg cmd toggle" + Mod4 + b +"rofi -show drun" + Mod4 + space +"rofi -modes window -show window -kb-accept-entry '!Alt-Tab' -kb-row-down 'Alt+Tab' -kb-row-up 'Alt+ISO_Left_Tab'" + Alt + Tab +"st" + Mod4 + Return +"st -T '[floating]'" + Mod4 + Mod1 + Return +"panic" + Mod4 + Mod1 + p +"rofi-pass" + Mod4 + p +"maim -usb 4 -c 0,0,0 | xclip -selection clipboard -t image/png" + Print +"addtoqueue" + Mod4 + a +"dunstctl close-all" + Mod4 + c + + + +"pactl set-sink-volume @DEFAULT_SINK@ -1%" + Mod1+Mod4+minus + XF86AudioLowerVolume +"pactl set-sink-volume @DEFAULT_SINK@ +1%" + Mod1+Mod4+equal + XF86AudioRaiseVolume + +"pactl set-sink-mute @DEFAULT_SINK@ toggle" + XF86AudioMute +"pactl set-source-mute @DEFAULT_SOURCE@ toggle" + XF86AudioMicMute + +"brightness -10" + Shift+Mod4 + minus + XF86MonBrightnessDown +"brightness +10" + Shift+Mod4 + equal + XF86MonBrightnessUp + +"playerctl play-pause" + XF86AudioPlay +"playerctl next" + XF86AudioNext +"playerctl previous" + XF86AudioPrev + +"mpc toggle" + Mod1+Mod4+k +"mpc next" + Mod1+Mod4+l +"mpc prev" + Mod1+Mod4+j + + + +"wacommode topleft" + Mod1 + Control + Mod4 + 1 +"wacommode bottomleft" + Mod1 + Control + Mod4 + 2 +"wacommode topright" + Mod1 + Control + Mod4 + 3 +"wacommode bottomright" + Mod1 + Control + Mod4 + 4 + + + +"i3-msg focus left" + Mod4 + h +"i3-msg focus down" + Mod4 + j +"i3-msg focus up" + Mod4 + k +"i3-msg focus right" + Mod4 + l + +"i3-msg move left" + Mod4 + Shift + h +"i3-msg move down" + Mod4 + Shift + j +"i3-msg move up" + Mod4 + Shift + k +"i3-msg move right" + Mod4 + Shift + l + +"i3-msg resize grow width 10 px" + Mod4 + period +"i3-msg resize shrink width 10 px" + Mod4 + comma +"i3-msg resize grow height 10 px" + Mod4 + bracketright +"i3-msg resize shrink height 10 px" + Mod4 + bracketleft + +"i3-msg kill" + Mod4 + q + +"i3-msg reload" + Mod4 + Shift + c +"i3-msg restart" + Mod4 + Shift + r + +"fcitx5-remote -s keyboard-us" + XF86Launch5 + Release +"fcitx5-remote -s keyboard-us-intl" + XF86Launch6 + Release +"fcitx5-remote -s mozc" + XF86Launch7 + Release + diff --git a/.config/xbindkeys/main##template b/.config/xbindkeys/main##template deleted file mode 100644 index a1b5251..0000000 --- a/.config/xbindkeys/main##template +++ /dev/null @@ -1,121 +0,0 @@ -"lock" - Mod4 + Escape -"polybar-msg cmd toggle" - Mod4 + b -"rofi -show drun" - Mod4 + space -"rofi -modes window -show window -kb-accept-entry '!Alt-Tab' -kb-row-down 'Alt+Tab' -kb-row-up 'Alt+ISO_Left_Tab'" - Alt + Tab -"st" - Mod4 + Return -"st -T '[floating]'" - Mod4 + Mod1 + Return -"panic" - Mod4 + Mod1 + p -"rofi-pass" - Mod4 + p -"maim -usb 4 -c 0,0,0 | xclip -selection clipboard -t image/png" - Print -"addtoqueue" - Mod4 + a -"dunstctl close-all" - Mod4 + c - - - -"pactl set-sink-volume @DEFAULT_SINK@ -1%" - Mod1+Mod4+minus -"pactl set-sink-volume @DEFAULT_SINK@ +1%" - Mod1+Mod4+equal - -"pactl set-sink-volume @DEFAULT_SINK@ +1%" - XF86AudioRaiseVolume -"pactl set-sink-volume @DEFAULT_SINK@ -1%" - XF86AudioLowerVolume - -"pactl set-sink-mute @DEFAULT_SINK@ toggle" - XF86AudioMute -"pactl set-source-mute @DEFAULT_SOURCE@ toggle" - XF86AudioMicMute - -{% if yadm.hostname == "thoncc" %} -"xbacklight -inc 10 -time 100 -fps 60" - XF86MonBrightnessUp -"xbacklight -dec 10 -time 100 -fps 60" - XF86MonBrightnessDown -{% else %} -"brightness - 20" - Shift+Mod4 + minus -"brightness + 20" - Shift+Mod4 + equal -{% endif %} - -"playerctl play-pause" - XF86AudioPlay -"playerctl next" - XF86AudioNext -"playerctl previous" - XF86AudioPrev - -"mpc toggle" - Mod1+Mod4+k -"mpc next" - Mod1+Mod4+l -"mpc prev" - Mod1+Mod4+j - - - -"wacommode topleft" - Mod1 + Control + Mod4 + 1 -"wacommode bottomleft" - Mod1 + Control + Mod4 + 2 -"wacommode topright" - Mod1 + Control + Mod4 + 3 -"wacommode bottomright" - Mod1 + Control + Mod4 + 4 - - - -"i3-msg focus left" - Mod4 + h -"i3-msg focus down" - Mod4 + j -"i3-msg focus up" - Mod4 + k -"i3-msg focus right" - Mod4 + l - -"i3-msg move left" - Mod4 + Shift + h -"i3-msg move down" - Mod4 + Shift + j -"i3-msg move up" - Mod4 + Shift + k -"i3-msg move right" - Mod4 + Shift + l - -"i3-msg resize grow width 10 px" - Mod4 + period -"i3-msg resize shrink width 10 px" - Mod4 + comma -"i3-msg resize grow height 10 px" - Mod4 + bracketright -"i3-msg resize shrink height 10 px" - Mod4 + bracketleft - -"i3-msg kill" - Mod4 + q - -"i3-msg reload" - Mod4 + Shift + c -"i3-msg restart" - Mod4 + Shift + r - -"fcitx5-remote -s keyboard-us" - XF86Launch5 + Release -"fcitx5-remote -s keyboard-us-intl" - XF86Launch6 + Release -"fcitx5-remote -s mozc" - XF86Launch7 + Release - -- cgit v1.2.3