X-Git-Url: https://git.xandkar.net/?a=blobdiff_plain;f=home%2F.xbindkeysrc;h=bb34e7a992c0c69202f0acee137a5ad2751cce79;hb=HEAD;hp=2ee1024aa120005781416814169a30d152946b5b;hpb=88551c6e29d3a475a9369c74d071efa6992202f9;p=khome.git diff --git a/home/.xbindkeysrc b/home/.xbindkeysrc index 2ee1024..e8216ec 100644 --- a/home/.xbindkeysrc +++ b/home/.xbindkeysrc @@ -16,19 +16,19 @@ # ---------- # Backlight # ---------- -"sudo /home/siraaj/bin/backlight_adjust +5" +"sudo ~/bin/backlight_adjust +5" XF86MonBrightnessUp -"sudo /home/siraaj/bin/backlight_adjust +1" +"sudo ~/bin/backlight_adjust +1" shift + XF86MonBrightnessUp -"sudo /home/siraaj/bin/backlight_adjust -5" +"sudo ~/bin/backlight_adjust -5" XF86MonBrightnessDown -"sudo /home/siraaj/bin/backlight_adjust -1" +"sudo ~/bin/backlight_adjust -1" shift + XF86MonBrightnessDown # Workaround: XF86MonBrightness(Up|Down) keys stopped working on Librem 15v4 :( -"sudo /home/siraaj/bin/backlight_adjust +5" +"sudo ~/bin/backlight_adjust +5" shift+XF86AudioRaiseVolume -"sudo /home/siraaj/bin/backlight_adjust -5" +"sudo ~/bin/backlight_adjust -5" shift+XF86AudioLowerVolume # ------------------- @@ -52,18 +52,18 @@ XF86AudioPlay "mpc stop" XF86AudioStop -"mpc prev" +"mpc prev && notify_mpc" XF86AudioPrev -"mpc next" +"mpc next && notify_mpc" XF86AudioNext # Otherwise use combinations: "mpc toggle" Mod4 + Down "mpc stop" Mod4 + Up -"mpc prev" +"mpc prev && notify_mpc" Mod4 + Left -"mpc next" +"mpc next && notify_mpc" Mod4 + Right ## cmus-remote @@ -110,9 +110,16 @@ # ------------------------ # Screenshot # ------------------------ -"scrot --select --freeze 'screen--%Y-%m-%d--%H-%M-%S.png' -e 'mv $f ~/arc/img/Screenshots/'" +"scrot --freeze --select 'screen--%Y-%m-%d--%H-%M-%S.png' -e 'mv $f ~/arc/img/Screenshots/'" Print +"scrot --select 'screen--%Y-%m-%d--%H-%M-%S.png' -e 'mv $f ~/arc/img/Screenshots/'" + Shift + Print + +# Screencast +"st -c screencast -e ~/bin/screencast" + Control + Print + # ---------------- # App launchers # ---------------- @@ -138,20 +145,32 @@ "emacs" Mod4 + Shift + e -# Edit specific files -"cd ~/doc/TODO && gvim TODO.md" + +### Edit specific files + +"today.launch.sh" Mod4 + t + "cd ~/doc/ideas && gvim ideas.md" Mod4 + i + "cd ~/doc/drafts && drafts_prepend && gvim drafts.md" + Mod4 + d + Shift +"cd ~/doc/drafts && gvim $(draft ~/doc/drafts/adhoc)" Mod4 + d -"cd ~/doc/notes && notes_prepend && gvim notes.md" + +"cd ~/doc/notes && notes_prepend && gvim -c NERDTreeFind notes.md" + Mod4 + n + Shift +"cd ~/doc/notes && gvim $(draft ~/doc/notes/adhoc)" Mod4 + n + "cd ~/doc/bookmarks && gvim bookmarks.md" Mod4 + b + "cd ~/doc/quotations && gvim quotations.md" Mod4 + q + # File browser "pcmanfm" Mod4 + f @@ -159,7 +178,7 @@ # Weather "notify_weather" Mod4 + w -"xdg-open 'https://forecast.weather.gov/MapClick.php?lat=40.61&lon=-73.92&lg=english&&FcstType=graphical&menu=1'" +"xdg-open 'https://forecast.weather.gov/MapClick.php?lat=42.9581&lon=-71.4856'" Mod4 + Shift + w # Calendar @@ -176,3 +195,11 @@ # MPD "notify_mpc" Mod4 + Shift + m + +# dunst +"dunstctl close" + control + space +"dunstctl close-all" + control + shift + space +"dunstctl history-pop" + control + grave