From aa1fbe12aec99cecd90f2e7ea21d8ab2110ac4ba Mon Sep 17 00:00:00 2001 From: Shubham Saini Date: Sat, 1 Aug 2020 15:57:02 +0530 Subject: added lemon --- sxhkd/.config/sxhkd/sxhkdrc | 106 +++++++++++--------------------------------- 1 file changed, 26 insertions(+), 80 deletions(-) (limited to 'sxhkd') diff --git a/sxhkd/.config/sxhkd/sxhkdrc b/sxhkd/.config/sxhkd/sxhkdrc index 2db257e..38b99a4 100644 --- a/sxhkd/.config/sxhkd/sxhkdrc +++ b/sxhkd/.config/sxhkd/sxhkdrc @@ -1,165 +1,111 @@ -# wm independent hotkeys -## terminal emulator super + Return urxvtc super + shift + Return bspc rule -a \* -o state=floating && urxvtc - -# program launcher super + @space - dmenu_run -l 10 -super + c - rofi -show calc -modi calc -no-show-match -no-sort -no-history -super + i - ~/.config/rofi/rofi-wifi.sh - -# cmus (I don't know why mpDris is not supported. Got it musl problem lol) -super + {u,n} - cmus-remote {-p,-n} -super + shift + {u,n} - cmus-remote {-u,-r} - - -# make sxhkd reload its configuration files: -super + Escape - pkill -USR1 -x sxhkd - -# -# bspwm hotkeys + dmenu_run -i -fn "JetBrains Mono Nerd Font Mono:style=medium:pixelsize=12.5" -nb "#f3f4f5" -nf "#2f2f2f" -sb "#626868" -sf "#ffffff" super + shift + w - firefox + chromium control + alt + l xset s activate super + shift + f - spacefm + urxvtc -e ranger Print - scrot -u + screenshot f +control + Print + screenshot w super + x /home/fd0e/.local/bin/shut super + shift + p /home/fd0e/.local/bin/passmenu -# +super + Escape + pkill -USR1 -x sxhkd + +# volume +XF86Audio{RaiseVolume,LowerVolume} + pulsemixer --change-volume {+5,-5} +XF86AudioMute + pulsemixer --toggle-mute + +# cmus +XF86Audio{Play,Next,Prev} + cmus-remote {-u,-n,-r} + +# brightness +XF86MonBrightnessDown + sudo ~/bin/light d +XF86MonBrightnessUp + sudo ~/bin/light u + +# bspwm hotkeys # quit/restart bspwm super + alt + {q,r} bspc {quit,wm -r} - # close and kill super + {_,shift + }w bspc node -{c,k} - # alternate between the tiled and monocle layout super + m bspc desktop -l next - # send the newest marked node to the newest preselected node super + y bspc node newest.marked.local -n newest.!automatic.local - # swap the current node and the biggest node super + g bspc node -s biggest - -# -# state/flags -# - # set the window state super + {t,shift + t,s,f} bspc node -t {tiled,pseudo_tiled,floating,fullscreen} - # set the node flags super + ctrl + {m,x,y,z} bspc node -g {marked,locked,sticky,private} - -# -# focus/swap -# - # focus the node in the given direction super + {_,shift + }{h,j,k,l} bspc node -{f,s} {west,south,north,east} - # focus the node for the given path jump super + {p,b,comma,period} bspc node -f @{parent,brother,first,second} - # focus the next/previous node in the current desktop alt + {_,shift + }Tab bspc node -f {next,prev}.local - # focus the next/previous desktop in the current monitor super + bracket{left,right} bspc desktop -f {prev,next}.local - # focus the last node/desktop super + {grave,Tab} bspc {node,desktop} -f last - # focus the older or newer node in the focus history super + {o,i} bspc wm -h off; \ bspc node {older,newer} -f; \ bspc wm -h on - # focus or send to the given desktop super + {_,shift + }{1-9,0} bspc {desktop -f,node -d} '^{1-9,10}' - -# -# preselect -# - #remove gaps super + minus bspc config window_gap 0 super + equal bspc config window_gap 8 - # preselect the direction super + ctrl + {h,j,k,l} bspc node -p {west,south,north,east} - # preselect the ratio super + ctrl + {1-9} bspc node -o 0.{1-9} - # cancel the preselection for the focused node super + ctrl + space bspc node -p cancel - # cancel the preselection for the focused desktop super + ctrl + shift + space bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel - -# -# move/resize -# - # expand a window by moving one of its side outward super + alt + {h,j,k,l} bspc node -z {left -20 0,bottom 0 20,top 0 -20,right 20 0} - # contract a window by moving one of its side inward super + alt + shift + {h,j,k,l} bspc node -z {right -20 0,top 0 20,bottom 0 -20,left 20 0} - # move a floating window super + {Left,Down,Up,Right} bspc node -v {-20 0,0 20,0 -20,20 0} - -#Volume -XF86Audio{RaiseVolume,LowerVolume} - pulsemixer --change-volume {+5,-5} -XF86AudioMute - pulsemixer --toggle-mute - -#Playerctl -XF86Audio{Play,Next,Prev} - cmus-remote {-u,-n,-r} - -#light -XF86MonBrightnessDown - sudo ~/bin/light d -XF86MonBrightnessUp - sudo ~/bin/light u -- cgit v1.2.3