This commit is contained in:
David Chen 2019-09-13 09:14:01 +08:00
parent 3707d2c3d5
commit 354d23f3f8
8 changed files with 25 additions and 6 deletions

View file

@ -38,6 +38,10 @@ bindsym $mod+s exec --no-startup-id dmenu_recency
# launch categorized menu
bindsym $mod+z exec --no-startup-id morc_menu
# screenkey
bindsym $mod+ctrl+s exec bash ~/.config/i3/sk.sh
bindsym $mod+shift+ctrl+s exec killall screenkey
################################################################################################
## sound-section - DO NOT EDIT if you wish to automatically upgrade Alsa -> Pulseaudio later! ##
################################################################################################
@ -372,7 +376,7 @@ bindsym $mod+m bar mode toggle
#############################
# Set inner/outer gaps
gaps inner 14
gaps inner 17
gaps outer -2
# Additionally, you can issue commands with the following syntax. This is useful to bind keys to changing the gap size.

6
i3/sk.sh Executable file
View file

@ -0,0 +1,6 @@
result=$(ps ax|grep -v grep|grep screenkey)
if [ "$result" == "" ]; then
eval "screenkey --bg-color white --font-color black &"
else
eval "killall screenkey"
fi