X-Git-Url: https://git.xandkar.net/?a=blobdiff_plain;f=home%2F.xbindkeysrc;h=c9c1d5160906c700b83e84a97276eec4d94de03c;hb=ab32f98a2226acf25dfa0288468a23070f1877ca;hp=52c193a2c580a2aa89efbc6f9e359e86f7c24814;hpb=f602582aaacdf4319f24b913e2004ff744695752;p=khome.git diff --git a/home/.xbindkeysrc b/home/.xbindkeysrc index 52c193a..c9c1d51 100644 --- a/home/.xbindkeysrc +++ b/home/.xbindkeysrc @@ -1,3 +1,5 @@ +# (Mod4 is Windows key) + "xbindkeys_show" control+shift + q @@ -14,15 +16,19 @@ # ---------- # Backlight # ---------- -"sudo /home/siraaj/bin/backlight_adjust +5" +"sudo ~/bin/backlight_adjust +5" XF86MonBrightnessUp -"sudo /home/siraaj/bin/backlight_adjust -5" +"sudo ~/bin/backlight_adjust +1" + shift + XF86MonBrightnessUp +"sudo ~/bin/backlight_adjust -5" XF86MonBrightnessDown +"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 # ------------------- @@ -46,19 +52,18 @@ XF86AudioPlay "mpc stop" XF86AudioStop -"mpc prev" +"mpc prev && notify_mpc" XF86AudioPrev -"mpc next" +"mpc next && notify_mpc" XF86AudioNext # Otherwise use combinations: -# (Mod4 is Windows key) "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 @@ -75,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 # ---------------- @@ -115,7 +127,7 @@ "st -e htop" Mod4 + h "st -e ncmpcpp" - Mod4 + n + Mod4 + m "st -e ranger" Mod4 + r @@ -127,8 +139,62 @@ "video-catalog-play" Mod4 + v -# Edit specific files -"gvim ~/TODO.md" # .md filetype is already set to activate spell check - alt + shift + t -"gvim -c 'set spell' ~/Documents/Drafts.md" - alt + shift + d +# Editors +"gvim" + Mod4 + e +"emacs" + Mod4 + Shift + e + + +### Edit specific files + +"today.launch.sh" + Mod4 + t + +"cd ~/doc/ideas && gvim ideas.md" + Mod4 + i +#"cd ~/doc/drafts && drafts_prepend && gvim -c NERDTreeFind drafts.md" +"cd ~/doc/drafts && drafts_prepend && gvim drafts.md" + Mod4 + d + Shift +"cd ~/doc/drafts && gvim $(draft)" + Mod4 + d +"cd ~/doc/notes && notes_prepend && gvim -c NERDTreeFind notes.md" + Mod4 + n +"cd ~/doc/bookmarks && gvim bookmarks.md" + Mod4 + b +"cd ~/doc/quotations && gvim quotations.md" + Mod4 + q + + +# File browser +"pcmanfm" + Mod4 + f + +# 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" + Mod4 + c + +# Status +"notify_status" + Mod4 + s + +"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