plugfiles

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

configMINE (13907B)


      1 # vim: filetype=i3
      2 # File originally by Luke Smith <https://lukesmith.xyz>
      3 
      4 # This config file will use environmental variables such as $BROWSER and $TERMINAL.
      5 # You can set these variables in ~/.profile or ~/.bash_profile if you have it as below:
      6 #
      7 # export FILE="ranger"
      8 # export TERMINAL="st"
      9 
     10 # #---Basic Definitions---# #
     11 for_window [class="^.*"] border pixel 2
     12 gaps inner 15
     13 gaps outer 15
     14 set $term --no-startup-id $TERMINAL
     15 set $mod Mod4 
     16 set $stoprec --no-startup-id dmenurecord kill
     17 set $shutdown sudo -A shutdown -h now
     18 set $reboot sudo -A reboot
     19 set $netrefresh --no-startup-id sudo -A systemctl restart NetworkManager
     20 set $hibernate sudo -A systemctl suspend
     21 
     22 # #---Dropdown Windows---# #
     23 # General dropdown window traits. The order can matter.
     24 for_window [instance="dropdown_*"] floating enable
     25 for_window [instance="dropdown_*"] move scratchpad
     26 for_window [instance="dropdown_*"] sticky enable
     27 for_window [instance="dropdown_*"] scratchpad show
     28 for_window [instance="dropdown_tmuxdd"] resize set 625 450
     29 for_window [instance="dropdown_dropdowncalc"] resize set 800 300
     30 for_window [instance="dropdown_tmuxdd"] border pixel 3
     31 for_window [instance="dropdown_dropdowncalc"] border pixel 2
     32 for_window [instance="dropdown_*"] move position center
     33 
     34 # #---Starting External Scripts---# #
     35 # mpd startup
     36 exec --no-startup-id mpd
     37 # Setting the background:
     38 exec --no-startup-id setbg
     39 # Starts dunst for notifications:
     40 exec --no-startup-id dunst
     41 # Composite manager:
     42 exec --no-startup-id xcompmgr
     43 # Runs the key remapping scripts
     44 exec --no-startup-id remaps
     45 # Unclutter makes the mouse invisible after a brief period
     46 exec --no-startup-id unclutter
     47 # Run the script to update the mpd i3block on change.
     48 exec_always --no-startup-id mpdupdate
     49 # Podboat automatic queue and download
     50 exec_always --no-startup-id podentr
     51 
     52 bar {
     53 	font pango:mono 10
     54 	status_command i3blocks
     55 	position top
     56 	mode dock
     57 	modifier None
     58 }
     59 
     60 # #---Basic Bindings---# #
     61 bindsym $mod+Return 		exec $term
     62 bindsym $mod+Shift+Return	exec --no-startup-id samedir
     63 
     64 bindsym $mod+Shift+space 	floating toggle
     65 bindsym $mod+space		focus mode_toggle
     66 
     67 bindsym $mod+Escape		workspace prev
     68 bindsym $mod+Shift+Escape 	exec --no-startup-id prompt "Exit i3?" "i3-msg exit"
     69 
     70 # bindsym $mod+BackSpace
     71 bindsym $mod+Shift+BackSpace	exec --no-startup-id prompt "Reboot computer?" "$reboot"
     72 
     73 bindsym $mod+grave		exec --no-startup-id dmenuunicode
     74 ##bindsym $mod+asciitilde
     75 
     76 #STOP/HIDE EVERYTHING:
     77 bindsym $mod+Shift+Delete	exec --no-startup-id lmc truemute ; exec --no-startup-id lmc pause ; exec --no-startup-id pauseallmpv; workspace 0; exec $term -e htop ; exec $term -e $FILE
     78 
     79 # Show selection:
     80 bindsym $mod+Insert		exec --no-startup-id showclip
     81 ##bindsym $mod+Pause
     82 
     83 # #---Letter Key Bindings---# #
     84 bindsym $mod+q			[con_id="__focused__" instance="^(?!dropdown_).*$"] kill
     85 bindsym $mod+Shift+q		[con_id="__focused__" instance="^(?!dropdown_).*$"] exec --no-startup-id kill -9 `xdotool getwindowfocus getwindowpid`
     86 
     87 bindsym $mod+w			exec $term -e nmtui
     88 bindsym $mod+Shift+w		exec --no-startup-id $BROWSER
     89 
     90 bindsym $mod+e			exec $term -e neomutt && pkill -RTMIN+12 i3blocks
     91 bindsym $mod+Shift+e		exec --no-startup-id tutorialvids
     92 
     93 bindsym $mod+r 			exec $term -e $FILE
     94 bindsym $mod+Shift+r		exec --no-startup-id winresize
     95 
     96 bindsym $mod+t			split toggle
     97 bindsym $mod+Shift+t		gaps inner current set 15; gaps outer current set 15
     98 
     99 bindsym $mod+y			exec $term -e calcurse -D ~/.config/calcurse
    100 bindsym $mod+Shift+y		exec --no-startup-id i3resize left
    101 
    102 bindsym $mod+u			exec --no-startup-id ddspawn tmuxdd
    103 bindsym $mod+Shift+u		exec --no-startup-id i3resize down
    104 
    105 bindsym $mod+i 			exec $term -e htop
    106 bindsym $mod+Shift+i		exec --no-startup-id i3resize up
    107 
    108 bindsym $mod+o			sticky toggle
    109 bindsym $mod+Shift+o		exec --no-startup-id i3resize right
    110 
    111 bindsym $mod+p			exec --no-startup-id lmc toggle
    112 bindsym $mod+Shift+p		exec --no-startup-id lmc pause
    113 
    114 bindsym $mod+a			exec --no-startup-id ddspawn dropdowncalc -f mono:pixelsize=24
    115 bindsym $mod+Shift+a		exec $term -e pulsemixer
    116 
    117 bindsym $mod+s			gaps inner current plus 5
    118 bindsym $mod+Shift+s		gaps inner current minus 5
    119 
    120 bindsym $mod+d			exec --no-startup-id dmenu_run
    121 bindsym $mod+Shift+d		gaps inner current set 0; gaps outer current set 0
    122 
    123 set $freeze Distraction-free mode (super+shift+f to reactivate bindings)
    124 mode "$freeze" { bindsym $mod+Shift+f mode "default"
    125 }
    126 
    127 bindsym $mod+f			fullscreen toggle
    128 bindsym $mod+Shift+f		mode "$freeze" ;; exec --no-startup-id notify-send "Distraction-free mode activated." "Press Super+Shift+f to return."
    129 
    130 bindsym $mod+g			workspace prev
    131 bindsym $mod+Shift+g		exec --no-startup-id gimp; workspace $ws5
    132 
    133 bindsym $mod+h			focus left
    134 bindsym $mod+Shift+h		move left 30
    135 
    136 bindsym $mod+j			focus down
    137 bindsym $mod+Shift+j		move down 30
    138 
    139 bindsym $mod+k			focus up
    140 bindsym $mod+Shift+k		move up 30
    141 
    142 bindsym $mod+l			focus right
    143 bindsym $mod+Shift+l		move right 30
    144 
    145 bindsym $mod+z			gaps outer current plus 5
    146 bindsym $mod+Shift+z		gaps outer current minus 5
    147 
    148 bindsym $mod+x			exec --no-startup-id mpc pause; exec --no-startup-id pauseallmpv ; exec --no-startup-id i3lock -e -f -c 1d2021 ; exec --no-startup-id xset dpms force off
    149 bindsym $mod+Shift+x		exec --no-startup-id prompt "Shutdown computer?" "$shutdown"
    150 
    151 bindsym $mod+c			exec --no-startup-id cabl
    152 bindsym $mod+Shift+c		exec --no-startup-id camtoggle
    153 
    154 bindsym $mod+v			exec --no-startup-id $term -e $EDITOR -c "VimwikiIndex"
    155 #bindsym $mod+Shift+v
    156 
    157 bindsym $mod+b			bar mode toggle
    158 bindsym $mod+Shift+b		floating toggle; sticky toggle; exec --no-startup-id hover left
    159 
    160 bindsym $mod+n			exec $term -e newsboat && pkill -RTMIN+6 i3blocks
    161 bindsym $mod+Shift+n		floating toggle; sticky toggle; exec --no-startup-id hover right
    162 
    163 bindsym $mod+m 			exec --no-startup-id $term -e ncmpcpp
    164 bindsym $mod+Shift+m		exec --no-startup-id lmc mute
    165 
    166 # #---Workspace Bindings---# #
    167 bindsym $mod+Home		workspace $ws1
    168 bindsym $mod+Shift+Home		move container to workspace $ws1
    169 bindsym $mod+End		workspace $ws10
    170 bindsym $mod+Shift+End		move container to workspace $ws10
    171 bindsym $mod+Prior		workspace prev
    172 bindsym $mod+Shift+Prior	move container to workspace prev
    173 bindsym $mod+Next		workspace next
    174 bindsym $mod+Shift+Next		move container to workspace next
    175 bindsym $mod+Tab		workspace back_and_forth
    176 bindsym $mod+XF86Back		workspace prev
    177 bindsym $mod+Shift+XF86Back	move container to workspace prev
    178 bindsym $mod+XF86Forward	workspace next
    179 bindsym $mod+Shift+XF86Forward	move container to workspace next
    180 bindsym $mod+semicolon		workspace next
    181 bindsym $mod+apostrophe		split horizontal ;; exec $term
    182 bindsym $mod+slash		split vertical ;; exec $term
    183 bindsym $mod+Shift+slash	kill
    184 bindsym $mod+backslash		workspace back_and_forth
    185 
    186 set $ws1 "1"
    187 set $ws2 "2"
    188 set $ws3 "3"
    189 set $ws4 "4"
    190 set $ws5 "5"
    191 set $ws6 "6"
    192 set $ws7 "7"
    193 set $ws8 "8"
    194 set $ws9 "9"
    195 set $ws10 "10"
    196 
    197 # switch to workspace
    198 bindsym $mod+1		workspace $ws1
    199 bindsym $mod+2		workspace $ws2
    200 bindsym $mod+3		workspace $ws3
    201 bindsym $mod+4		workspace $ws4
    202 bindsym $mod+5		workspace $ws5
    203 bindsym $mod+6		workspace $ws6
    204 bindsym $mod+7		workspace $ws7
    205 bindsym $mod+8		workspace $ws8
    206 bindsym $mod+9		workspace $ws9
    207 bindsym $mod+0		workspace $ws10
    208 
    209 # move focused container to workspace
    210 bindsym $mod+Shift+1	move container to workspace $ws1
    211 bindsym $mod+Shift+2	move container to workspace $ws2
    212 bindsym $mod+Shift+3	move container to workspace $ws3
    213 bindsym $mod+Shift+4	move container to workspace $ws4
    214 bindsym $mod+Shift+5	move container to workspace $ws5
    215 bindsym $mod+Shift+6	move container to workspace $ws6
    216 bindsym $mod+Shift+7	move container to workspace $ws7
    217 bindsym $mod+Shift+8	move container to workspace $ws8
    218 bindsym $mod+Shift+9	move container to workspace $ws9
    219 bindsym $mod+Shift+0	move container to workspace $ws10
    220 
    221 for_window [class="Pinentry"] sticky enable
    222 for_window [class="sent"] border pixel 0px
    223 for_window [title="GIMP Startup"] move workspace $ws5
    224 for_window [class="Gimp"] move workspace $ws5
    225 for_window [window_role="GtkFileChooserDialog"] resize set 800 600
    226 for_window [window_role="GtkFileChooserDialog"] move position center
    227 for_window [title="Default - Wine desktop"] floating enable
    228 
    229 # Bindings to make the webcam float and stick.
    230 for_window [title="mpvfloat"] floating enable
    231 for_window [title="mpvfloat"] sticky enable
    232 for_window [title="mpvfloat"] border pixel 0
    233 no_focus [title="mpvfloat"]
    234 
    235 # #---Function Buttons---# #
    236 bindsym $mod+F1		exec --no-startup-id groff -mom ~/.local/share/larbs/readme.mom -Tpdf | zathura -
    237 bindsym $mod+F2		restart
    238 bindsym $mod+F3		exec --no-startup-id displayselect
    239 bindsym $mod+F4		exec --no-startup-id prompt "Hibernate computer?" "$hibernate"
    240 bindsym $mod+F5		exec --no-startup-id $netrefresh
    241 bindsym $mod+F6		exec --no-startup-id torwrap
    242 bindsym $mod+F7		exec --no-startup-id td-toggle
    243 bindsym $mod+F8		exec --no-startup-id mailsync
    244 bindsym $mod+F9		exec --no-startup-id dmenumount
    245 bindsym $mod+F10	exec --no-startup-id dmenuumount
    246 bindsym $mod+F11	exec --no-startup-id ducksearch
    247 bindsym $mod+F12	exec $term -e nmtui
    248 
    249 # #---Arrow Keys---# #
    250 bindsym $mod+Left		focus left
    251 bindsym $mod+Down		focus down
    252 bindsym $mod+Up			focus up
    253 bindsym $mod+Right 		focus right
    254 bindsym $mod+Shift+Left		move left
    255 bindsym $mod+Shift+Down		move down
    256 bindsym $mod+Shift+Up		move up
    257 bindsym $mod+Shift+Right 	move right
    258 
    259 # #---Media Keys---# #
    260 # Volume keys
    261 bindsym $mod+plus		exec --no-startup-id lmc up 5
    262 bindsym $mod+Shift+plus		exec --no-startup-id lmc up 15
    263 bindsym $mod+minus 		exec --no-startup-id lmc down 5
    264 bindsym $mod+Shift+minus	exec --no-startup-id lmc down 15
    265 bindsym $mod+less 		exec --no-startup-id lmc prev
    266 bindsym $mod+Shift+less		exec --no-startup-id lmc replay
    267 bindsym $mod+greater		exec --no-startup-id lmc next
    268 bindsym $mod+Shift+greater	exec --no-startup-id lmc next
    269 
    270 # For advancing forward/backward in an mpd song
    271 bindsym $mod+bracketleft 	exec --no-startup-id lmc back 10
    272 bindsym $mod+Shift+bracketleft 	exec --no-startup-id lmc back 120
    273 bindsym $mod+bracketright 	exec --no-startup-id lmc forward 10
    274 bindsym $mod+Shift+bracketright exec --no-startup-id lmc forward 120
    275 
    276 # For screenshots and recording
    277 bindsym Print 			exec --no-startup-id maim pic-full-"$(date '+%y%m%d-%H%M-%S').png"
    278 bindsym Shift+Print 		exec --no-startup-id maimpick
    279 bindsym $mod+Print		exec --no-startup-id dmenurecord
    280 bindsym $mod+Scroll_Lock	exec --no-startup-id "killall screenkey || screenkey"
    281 bindsym $mod+Delete		exec $stoprec
    282 bindsym XF86Launch1		exec --no-startup-id xset dpms force off
    283 
    284 # #---Extra XF86 Keys---# #
    285 bindsym XF86AudioMute		exec --no-startup-id lmc mute
    286 bindsym XF86AudioLowerVolume	exec --no-startup-id lmc down 5
    287 bindsym Shift+XF86AudioLowerVolume	exec --no-startup-id lmc down 10
    288 bindsym Control+XF86AudioLowerVolume	exec --no-startup-id lmc down 1
    289 bindsym XF86AudioRaiseVolume	exec --no-startup-id lmc up 5
    290 bindsym Shift+XF86AudioRaiseVolume	exec --no-startup-id lmc up 10
    291 bindsym Control+XF86AudioRaiseVolume	exec --no-startup-id lmc up 1
    292 bindsym XF86PowerOff		exec --no-startup-id prompt "Shutdown computer?" "$shutdown"
    293 ##bindsym XF86Copy		exec
    294 ##bindsym XF86Open		exec
    295 ##bindsym XF86Paste		exec
    296 ##bindsym XF86Cut		exec
    297 ##bindsym XF86MenuKB		exec
    298 bindsym XF86Calculator		exec --no-startup-id ddspawn dropdowncalc -f mono:pixelsize=24
    299 ##bindsym XF86Sleep		This binding is typically mapped by systemd automatically.
    300 ##bindsym XF86WakeUp		exec
    301 bindsym XF86Explorer		exec $term -e $FILE
    302 ##bindsym XF86Send		exec
    303 ##bindsym XF86Xfer		exec
    304 bindsym XF86WWW			exec --no-startup-id $BROWSER
    305 ##bindsym XF86DOS		exec
    306 bindsym XF86ScreenSaver		exec exec --no-startup-id lockscreen
    307 ##bindsym XF86RotateWindows	exec
    308 ##bindsym XF86TaskPane		exec
    309 ##bindsym XF86Favorites		exec
    310 bindsym XF86MyComputer		exec $term -e $FILE
    311 ##bindsym XF86Back		exec
    312 ##bindsym XF86Forward		exec
    313 bindsym XF86Eject		exec --no-startup-id dmenuumount
    314 bindsym XF86AudioNext		exec --no-startup-id lmc next
    315 bindsym XF86AudioPlay		exec --no-startup-id lmc toggle
    316 bindsym XF86AudioPrev		exec --no-startup-id lmc prev
    317 bindsym XF86AudioStop		exec --no-startup-id lmc toggle
    318 ##bindsym XF86AudioRecord
    319 bindsym XF86AudioRewind		exec --no-startup-id lmc back 10
    320 bindsym XF86AudioForward	exec --no-startup-id lmc forward 10
    321 ##bindsym XF86Phone		exec
    322 ##bindsym XF86Tools		exec
    323 bindsym XF86HomePage		exec $BROWSER https://lukesmith.xyz
    324 bindsym XF86Reload		restart
    325 ##bindsym XF86ScrollUp		exec
    326 ##bindsym XF86ScrollDown		exec
    327 ##bindsym XF86New		exec
    328 ##bindsym XF86LaunchA		exec
    329 ##bindsym XF86LaunchB		exec
    330 ##bindsym XF86Launch2		exec
    331 ##bindsym XF86Launch3		exec
    332 ##bindsym XF86Launch4		exec
    333 ##bindsym XF86Launch5		exec
    334 ##bindsym XF86Launch6		exec
    335 ##bindsym XF86Launch7		exec
    336 ##bindsym XF86Launch8		exec
    337 ##bindsym XF86Launch9		exec
    338 #bindsym XF86AudioMicMute	exec $micmute
    339 bindsym XF86TouchpadToggle	exec --no-startup-id toggletouchpad
    340 bindsym XF86TouchpadOn		exec --no-startup-id synclient TouchpadOff=0
    341 bindsym XF86TouchpadOff		exec --no-startup-id synclient TouchpadOff=1
    342 bindsym XF86Suspend		exec --no-startup-id lockscreen
    343 bindsym XF86Close		kill
    344 bindsym XF86WebCam		exec --no-startup-id camtoggle
    345 bindsym XF86Mail		exec $term -e neomutt && pkill -RTMIN+12 i3blocks
    346 bindsym XF86Messenger		exec $term -e weechat
    347 bindsym XF86Search		exec $BROWSER https://duckduckgo.com
    348 ##bindsym XF86Go			exec
    349 ##bindsym XF86Finance		exec
    350 ##bindsym XF86Game		exec
    351 bindsym XF86Shop		exec $BROWSER https://ebay.com
    352 bindsym XF86MonBrightnessDown	exec --no-startup-id xbacklight -dec 15
    353 bindsym XF86MonBrightnessUp	exec --no-startup-id xbacklight -inc 15
    354 bindsym XF86AudioMedia		exec --no-startup-id $term -e ncmpcpp
    355 bindsym XF86Display		exec --no-startup-id displayselect
    356 #bindsym XF86KbdLightOnOff	exec
    357 #bindsym XF86KbdBrightnessDown	exec
    358 #bindsym XF86KbdBrightnessUp	exec
    359 ##bindsym XF86Reply		exec
    360 ##bindsym XF86MailForward	exec
    361 ##bindsym XF86Save		exec
    362 bindsym XF86Documents		exec $term -e $FILE ~/Documents
    363 ##bindsym XF86Battery		exec
    364 ##bindsym XF86Bluetooth		exec
    365 bindsym XF86WLAN		exec $netrefresh