dotfiles

My collection of dotfiles
git clone git://git.noxz.tech/dotfiles
Log | Files | Refs

sxhkdrc (4130B)


      1 # --- dwm ---------------------------------------------------------------------
      2 # :restart dwm
      3 super + shift + r
      4 	echo quit > /tmp/dwm.fifo
      5 # :toggle between layouts
      6 super + space
      7 	echo toggle layout > /tmp/dwm.fifo
      8 # :toggle fullscreen/monocle
      9 super + f
     10 	echo toggle monocle > /tmp/dwm.fifo
     11 # :toggle floating client
     12 super + shift + space
     13 	echo toggle floating > /tmp/dwm.fifo
     14 # :toggle sticky client
     15 super + s
     16 	echo toggle sticky > /tmp/dwm.fifo
     17 # :toggle bar visibillity
     18 super + b
     19 	echo toggle bar > /tmp/dwm.fifo
     20 # :change client focus in stack
     21 super + {j,k}
     22 	echo focus stack {+,-} > /tmp/dwm.fifo
     23 # :move client in stack
     24 super + shift + {j,k}
     25 	echo move stack {+,-} > /tmp/dwm.fifo
     26 # :increase/decrease  change mfact
     27 super + {h,l}
     28 	echo set mfact {+,-} > /tmp/dwm.fifo
     29 # :rotate stack
     30 super + shift + {h,l}
     31 	echo rotate stack {+,-} > /tmp/dwm.fifo
     32 # :increase/decrease nmaster
     33 super + {equal,minus}
     34 	echo inc nmaster {+,-} > /tmp/dwm.fifo
     35 # :rotate through latouts
     36 super + {_,shift} z
     37 	echo rotate layout {+,-} > /tmp/dwm.fifo
     38 # :toggle between views
     39 super + Tab
     40 	echo view > /tmp/dwm.fifo
     41 # :change monitor focus
     42 super + {comma,period}
     43 	echo focus mon {+,-} > /tmp/dwm.fifo
     44 # :move client to monitor
     45 super + shift + {comma,period}
     46 	echo tag mon {+,-} > /tmp/dwm.fifo
     47 # :show all tags
     48 super + 0
     49 	echo view all > /tmp/dwm.fifo
     50 # :show client on all tags
     51 super + shift 0
     52 	echo tag all > /tmp/dwm.fifo
     53 # :show view
     54 super + {1-9}
     55 	echo view {0-8} > /tmp/dwm.fifo
     56 # :toggle view
     57 super + control + {1-9}
     58 	echo toggle view {0-8} > /tmp/dwm.fifo
     59 # :send client to view
     60 super + shift + {1-9}
     61 	echo tag {0-8} > /tmp/dwm.fifo
     62 # :toggle client on view
     63 super + control + shift + {1-9}
     64 	echo toggle tag {0-8} > /tmp/dwm.fifo
     65 # :spawn terminal (with tmux)
     66 super + Return
     67 	echo spawn $HOME/.local/bin/tmux-term > /tmp/dwm.fifo
     68 # :spawn terminal
     69 super + shift + Return
     70 	echo spawn $TERMINAL > /tmp/dwm.fifo
     71 
     72 # --- browsers ----------------------------------------------------------------
     73 # :vimb tabbed
     74 super + shift + w; {b,v,f}
     75 	{~/.local/bin/brave-browser,~/.local/bin/alias/vimb-tabbed,firefox}
     76 
     77 # --- dmenus ------------------------------------------------------------------
     78 # :run menu
     79 super + o
     80 	$HOME/.local/bin/dmenu_run
     81 # :main menu
     82 super + p
     83 	dmenu_main
     84 # :layouts menu
     85 super + grave
     86 	dmenu_layouts
     87 # :mount menu
     88 super + m
     89 	dmenu_mount
     90 # :umount menu
     91 super + shift + m
     92 	dmenu_umount
     93 # :themes menu
     94 super + shift + t
     95 	dmenu_themes
     96 # :kill menu
     97 super + q
     98 	dmenu_confirm "Are you sure you want to close this client?" \
     99 	-w $(xdo id)                                                \
    100 	&& xdo kill
    101 # :YouTube search menu
    102 super + y
    103 	dmenu_yt_search
    104 # :power menu
    105 super + F4
    106 	dmenu_power
    107 
    108 # --- operations --------------------------------------------------------------
    109 # :sync email
    110 super + shift + e
    111 	operations sync-mail
    112 
    113 # --- mpv controler -----------------------------------------------------------
    114 # :mute volume
    115 super + XF86AudioMute
    116 	mpvc mute
    117 # :lower volume
    118 super + XF86AudioLowerVolume
    119 	mpvc lower
    120 # :raise volume
    121 super + XF86AudioRaiseVolume
    122 	mpvc raise
    123 # :mute alsa volume
    124 super + shift + XF86AudioMute
    125 	mpvc amute
    126 # :lower alsa volume
    127 super + shift + XF86AudioLowerVolume
    128 	mpvc alower
    129 # :raise alsa volume
    130 super + shift + XF86AudioRaiseVolume
    131 	mpvc araise
    132 # :toggle play/pause playback
    133 super + XF86AudioPlay
    134 	mpvc toggle
    135 # :stop playback
    136 super + shift + XF86AudioPlay
    137 	mpvc stop
    138 # :seek 5 seconds backwards
    139 super + XF86AudioRewind
    140 	mpvc seek -5
    141 # :seek 5 seconds forward
    142 super + XF86AudioForward
    143 	mpvc seek 5
    144 # :goto previous track
    145 super + XF86AudioPrev
    146 	mpvc prev
    147 # :goto next track
    148 super + XF86AudioNext
    149 	mpvc next
    150 
    151 # --- synaptic ----------------------------------------------------------------
    152 # :toggle touchpad
    153 XF86TouchpadToggle
    154 	synclient TouchpadOff="$(synclient -l | grep -c 'TouchpadOff.*=.*0')"
    155 
    156 # --- misc --------------------------------------------------------------------
    157 # :record screen region
    158 shift + Print
    159 	screenrec
    160 # :print screen region
    161 Print
    162 	screenshot
    163 # :grab pixel color
    164 super + F5
    165 	printf "#%02x%02x%02x" $(stint) | xclip -sel clip -f | xclip
    166 # :restart sxhkd
    167 super + F10
    168 	killall -SIGUSR1 sxhkd