X-Git-Url: https://git.xandkar.net/?a=blobdiff_plain;f=home%2F.xbindkeysrc;h=bb34e7a992c0c69202f0acee137a5ad2751cce79;hb=HEAD;hp=5c7a51caad114d42a20512ce35d8a57f39c53ebc;hpb=a42aa7f8f5339e4231aa4a3c79a2038450b94178;p=khome.git diff --git a/home/.xbindkeysrc b/home/.xbindkeysrc index 5c7a51c..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 @@ -80,39 +80,46 @@ # -------------------- # Transparency adjust # -------------------- -"compton-trans 40" +"picom-trans 40" Mod4 + 4 -"compton-trans 45" +"picom-trans 45" Mod4 + Shift + 4 -"compton-trans 50" +"picom-trans 50" Mod4 + 5 -"compton-trans 55" +"picom-trans 55" Mod4 + Shift + 5 -"compton-trans 60" +"picom-trans 60" Mod4 + 6 -"compton-trans 65" +"picom-trans 65" Mod4 + Shift + 6 -"compton-trans 70" +"picom-trans 70" Mod4 + 7 -"compton-trans 75" +"picom-trans 75" Mod4 + Shift + 7 -"compton-trans 80" +"picom-trans 80" Mod4 + 8 -"compton-trans 85" +"picom-trans 85" Mod4 + Shift + 8 -"compton-trans 90" +"picom-trans 90" Mod4 + 9 -"compton-trans 95" +"picom-trans 95" Mod4 + Shift + 9 -"compton-trans 100" +"picom-trans 100" Mod4 + 0 # ------------------------ # Screenshot # ------------------------ -"screengrab -r" +"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 # ---------------- @@ -120,7 +127,7 @@ "st -e htop" Mod4 + h "st -e ncmpcpp" - Mod4 + n + Mod4 + m "st -e ranger" Mod4 + r @@ -132,22 +139,38 @@ "video-catalog-play" Mod4 + v -# Editor +# Editors "gvim" Mod4 + e +"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 && gvim drafts.md" + +"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 -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 @@ -155,6 +178,8 @@ # Weather "notify_weather" Mod4 + w +"xdg-open 'https://forecast.weather.gov/MapClick.php?lat=42.9581&lon=-71.4856'" + Mod4 + Shift + w # Calendar "notify_cal" @@ -166,3 +191,15 @@ "notify_time-in-zones" Mod4 + z + +# MPD +"notify_mpc" + Mod4 + Shift + m + +# dunst +"dunstctl close" + control + space +"dunstctl close-all" + control + shift + space +"dunstctl history-pop" + control + grave