diff options
author | Benjamin Chausse <benjamin@chausse.xyz> | 2023-11-01 16:36:43 -0400 |
---|---|---|
committer | Benjamin Chausse <benjamin@chausse.xyz> | 2023-11-01 16:36:43 -0400 |
commit | 7c6065774adcc5adee9fd3220314ed149e4c1668 (patch) | |
tree | 93655262e224fd0f98da81d250abc3389899655b | |
parent | ead615283a4302bba0dc10bec90a5e7625af60dc (diff) |
Migrate from nvim-todoist to orgmode in sxhkd
-rw-r--r-- | .config/sxhkd/sxhkdrc | 4 | ||||
-rwxr-xr-x | .local/bin/dwmbar/dwmb-layout | 10 | ||||
-rwxr-xr-x | .local/bin/layouttoggle | 28 |
3 files changed, 18 insertions, 24 deletions
diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc index 2ff1a2b..c6e1387 100644 --- a/.config/sxhkd/sxhkdrc +++ b/.config/sxhkd/sxhkdrc @@ -148,9 +148,9 @@ XF86WLAN ## TUI Audio Mixer (alsamixer) super + p flameshot gui -## TODOs (Todoist.nvim) +## TODOs (orgmode-nvim) super + space - dropdowntoggle todoist nvim +Todoist + dropdowntoggle orgmode nvim $HOME/Dropbox/org/home.org ## Terminal Calculator super + a dropdowntoggle calc tmux-r diff --git a/.local/bin/dwmbar/dwmb-layout b/.local/bin/dwmbar/dwmb-layout index e0cf446..26b62c5 100755 --- a/.local/bin/dwmbar/dwmb-layout +++ b/.local/bin/dwmbar/dwmb-layout @@ -1,11 +1,3 @@ #!/bin/sh -# echo " $(cat $HOME/.cache/layout) " -echo " $(cat $HOME/.cache/layout) " -case $BLOCK_BUTTON in - 1) layouttoggle ;; - 2) remaps && Capslock remaps reinitialized;; - 3) notify-send -a " Keyboard" "Click this widget to toggle the keyboard layout between french and english. -Middle click it to remap Capslock to super (and escape when tapped) if it somehow gets unmapped.";; - 6) "$TERMINAL" -e "$EDITOR" "$0" ;; -esac +echo " $(cat $HOME/.cache/layout) " diff --git a/.local/bin/layouttoggle b/.local/bin/layouttoggle index 139ceb9..d1ceba5 100755 --- a/.local/bin/layouttoggle +++ b/.local/bin/layouttoggle @@ -1,18 +1,20 @@ #!/bin/sh -layout=$(cat $HOME/.cache/layout) +layout=$(cat "$HOME/.cache/layout") case "$layout" in - ca) setxkbmap -model pc104 -layout us -variant ,, - echo us > $HOME/.cache/layout - ;; - us) setxkbmap -model pc104 -layout ca -variant ,, - echo ca > $HOME/.cache/layout - ;; - *) setxkbmap -model pc104 -layout us -variant ,, - echo us > $HOME/.cache/layout - ;; - esac - -kill -38 $(pidof dwmblocks) +ca) + setxkbmap -model pc104 -layout us -variant ,, + echo us >"$HOME/.cache/layout" + ;; +us) + setxkbmap -model pc104 -layout ca -variant ,, + echo ca >"$HOME/.cache/layout" + ;; +*) + setxkbmap -model pc104 -layout us -variant ,, + echo us >"$HOME/.cache/layout" + ;; +esac +kill -38 "$(pidof dwmblocks)" |