numlockx befor screen locking + some var name fix for vimwiki

This commit is contained in:
Von Random 2017-11-28 13:55:22 +03:00
parent 710a9fb71e
commit 69ce90c5ff
2 changed files with 3 additions and 2 deletions

View file

@ -1,4 +1,4 @@
#!/usr/bin/bash #!/usr/bin/bash
vim_wiki_dir="$HOME/vimwiki/index.wiki" vim_wiki="$HOME/vimwiki/index.wiki"
# vim wiki to scratchpad # vim wiki to scratchpad
default-terminal-emulator -name vimwiki -e flock -w0 ${vim_wiki_dir} vim ${vim_wiki_dir} default-terminal-emulator -name vimwiki -e flock -w0 ${vim_wiki} vim ${vim_wiki}

View file

@ -6,6 +6,7 @@ function parse_actions
case $action in case $action in
(LOCK|BLANK) (LOCK|BLANK)
/usr/bin/setxkbmap us -option /usr/bin/setxkbmap us -option
/usr/bin/numlockx off
/usr/bin/notify-send DUNST_COMMAND_PAUSE /usr/bin/notify-send DUNST_COMMAND_PAUSE
;; ;;
(UNBLANK) (UNBLANK)