Fcitx and hotkey cleanup

This commit is contained in:
agryphus 2023-08-25 18:23:52 -04:00
parent e0ed730e2c
commit 70b1078f94
4 changed files with 29 additions and 10 deletions

View file

@ -1,28 +1,47 @@
#!/bin/sh
# Using super as the main modifier key, so remember to check if a key conflicts with a DWM keybinding.
# Reload sxhkdrc configuration
super + shift + r
pkill -usr1 -x sxhkd; notify-send 'sxhkd' 'Reloaded config'
# Running dmenu scripts
super + d super + d
dmenu_run dmenu_run
super + D super + D
passmenu passmenu
super + Return super + S
$TERMINAL sinkmenu
super + grave super + grave
dmenuunicode dmenuunicode
super + m
layoutmenu
# Spawn programs
super + Return
$TERMINAL
super + w super + w
$BROWSER $BROWSER
# Implementing basic control hotkeys
super + Control_L
fcitx-remote -t
super + l
xsecurelock
super + Print super + Print
dmenu -p "Screenshot filename:" < /dev/null | xargs -I "name" maim -s ~/name dmenu -p "Screenshot filename:" < /dev/null | xargs -I "name" maim -s ~/name
super + shift + Print super + shift + Print
dmenu -p "Screenshot filename:" < /dev/null | xargs -I "name" maim ~/name dmenu -p "Screenshot filename:" < /dev/null | xargs -I "name" maim ~/name
super + minus super + minus
wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-; kill -44 $(pidof dwmblocks) wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%-; kill -44 $(pidof dwmblocks)
super + shift + minus super + shift + minus
wpctl set-volume @DEFAULT_AUDIO_SINK@ 15%-; kill -44 $(pidof dwmblocks) wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-; kill -44 $(pidof dwmblocks)
super + equal super + equal
wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+; kill -44 $(pidof dwmblocks) wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%+; kill -44 $(pidof dwmblocks)
super + shift + equal super + shift + equal
wpctl set-volume @DEFAULT_AUDIO_SINK@ 15%+; kill -44 $(pidof dwmblocks) wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+; kill -44 $(pidof dwmblocks)
XF86MonBrightnessUp XF86MonBrightnessUp
change-brightness up change-brightness up
XF86MonBrightnessDown XF86MonBrightnessDown
change-brightness down change-brightness down

View file

@ -1,3 +0,0 @@
#!/bin/sh
autorandr --list | dmenu | xargs -I "layout" autorandr layout && feh --bg-scale --no-fehbg "$HOME/.config/wallpaper" && xset r rate 300 50

3
.local/bin/layoutmenu Executable file
View file

@ -0,0 +1,3 @@
#!/bin/sh
autorandr --list | dmenu -i -l 30 | xargs -I "layout" autorandr layout && feh --bg-scale --no-fehbg "$HOME/.config/wallpaper" && xset r rate 300 50