dotfiles

My dotfiles used for LARBS
Log | Files | Refs | README | LICENSE

config (6686B)


      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 
     17 # #---Dropdown Windows---# #
     18 # General dropdown window traits. The order can matter.
     19 for_window [instance="dropdown_*"] floating enable
     20 for_window [instance="dropdown_*"] move scratchpad
     21 for_window [instance="dropdown_*"] sticky enable
     22 for_window [instance="dropdown_*"] scratchpad show
     23 for_window [instance="dropdown_tmuxdd"] resize set 625 450
     24 for_window [instance="dropdown_dropdowncalc"] resize set 800 300
     25 for_window [instance="dropdown_tmuxdd"] border pixel 3
     26 for_window [instance="dropdown_dropdowncalc"] border pixel 2
     27 for_window [instance="dropdown_*"] move position center
     28 
     29 bar {
     30 	font pango:mono 10
     31 	status_command i3blocks
     32 	position top
     33 	mode dock
     34 	modifier None
     35 }
     36 
     37 # #---Basic Bindings---# #
     38 bindsym $mod+Shift+space 	floating toggle
     39 bindsym $mod+space		focus mode_toggle
     40 
     41 bindsym $mod+Escape		workspace prev
     42 bindsym $mod+Shift+Escape 	exec --no-startup-id prompt "Exit i3?" "i3-msg exit"
     43 
     44 #STOP/HIDE EVERYTHING:
     45 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
     46 
     47 # #---Letter Key Bindings---# #
     48 bindsym $mod+q			[con_id="__focused__" instance="^(?!dropdown_).*$"] kill
     49 bindsym $mod+Shift+q		[con_id="__focused__" instance="^(?!dropdown_).*$"] exec --no-startup-id kill -9 `xdotool getwindowfocus getwindowpid`
     50 
     51 bindsym $mod+Shift+r		exec --no-startup-id winresize
     52 
     53 bindsym $mod+t			split toggle
     54 bindsym $mod+Shift+t		gaps inner current set 15; gaps outer current set 15
     55 
     56 bindsym $mod+Shift+y		exec --no-startup-id i3resize left
     57 
     58 bindsym $mod+u			exec --no-startup-id ddspawn tmuxdd
     59 bindsym $mod+Shift+u		exec --no-startup-id i3resize down
     60 
     61 bindsym $mod+Shift+i		exec --no-startup-id i3resize up
     62 
     63 bindsym $mod+o			sticky toggle
     64 bindsym $mod+Shift+o		exec --no-startup-id i3resize right
     65 
     66 bindsym $mod+a			exec --no-startup-id ddspawn dropdowncalc -f mono:pixelsize=24
     67 
     68 bindsym $mod+s			gaps inner current plus 5
     69 bindsym $mod+Shift+s		gaps inner current minus 5
     70 
     71 bindsym $mod+Shift+d		gaps inner current set 0; gaps outer current set 0
     72 
     73 set $freeze Distraction-free mode (super+shift+f to reactivate bindings)
     74 mode "$freeze" { bindsym $mod+Shift+f mode "default"
     75 }
     76 
     77 bindsym $mod+f			fullscreen toggle
     78 bindsym $mod+Shift+f		mode "$freeze" ;; exec --no-startup-id notify-send "Distraction-free mode activated." "Press Super+Shift+f to return."
     79 
     80 bindsym $mod+g			workspace prev
     81 
     82 bindsym $mod+h			focus left
     83 bindsym $mod+Shift+h		move left 30
     84 bindsym $mod+Ctrl+h		move workspace to output left
     85 
     86 bindsym $mod+j			focus down
     87 bindsym $mod+Shift+j		move down 30
     88 bindsym $mod+Ctrl+j		move workspace to output down
     89 
     90 bindsym $mod+k			focus up
     91 bindsym $mod+Shift+k		move up 30
     92 bindsym $mod+Ctrl+k		move workspace to output up
     93 
     94 bindsym $mod+l			focus right
     95 bindsym $mod+Shift+l		move right 30
     96 bindsym $mod+Ctrl+l		move workspace to output right
     97 
     98 bindsym $mod+z			gaps outer current plus 5
     99 bindsym $mod+Shift+z		gaps outer current minus 5
    100 
    101 bindsym $mod+b			bar mode toggle
    102 bindsym $mod+Shift+b		floating toggle; sticky toggle; exec --no-startup-id hover left
    103 
    104 bindsym $mod+Shift+n		floating toggle; sticky toggle; exec --no-startup-id hover right
    105 
    106 # #---Workspace Bindings---# #
    107 bindsym $mod+Home		workspace $ws1
    108 bindsym $mod+Shift+Home		move container to workspace $ws1
    109 bindsym $mod+End		workspace $ws10
    110 bindsym $mod+Shift+End		move container to workspace $ws10
    111 bindsym $mod+Prior		workspace prev
    112 bindsym $mod+Shift+Prior	move container to workspace prev
    113 bindsym $mod+Next		workspace next
    114 bindsym $mod+Shift+Next		move container to workspace next
    115 bindsym $mod+Tab		workspace back_and_forth
    116 bindsym $mod+XF86Back		workspace prev
    117 bindsym $mod+Shift+XF86Back	move container to workspace prev
    118 bindsym $mod+XF86Forward	workspace next
    119 bindsym $mod+Shift+XF86Forward	move container to workspace next
    120 bindsym $mod+semicolon		workspace next
    121 bindsym $mod+apostrophe		split horizontal ;; exec $term
    122 bindsym $mod+slash		split vertical ;; exec $term
    123 bindsym $mod+Shift+slash	kill
    124 bindsym $mod+backslash		workspace back_and_forth
    125 
    126 set $ws1 "1"
    127 set $ws2 "2"
    128 set $ws3 "3"
    129 set $ws4 "4"
    130 set $ws5 "5"
    131 set $ws6 "6"
    132 set $ws7 "7"
    133 set $ws8 "8"
    134 set $ws9 "9"
    135 set $ws10 "10"
    136 
    137 # switch to workspace
    138 bindsym $mod+1		workspace $ws1
    139 bindsym $mod+2		workspace $ws2
    140 bindsym $mod+3		workspace $ws3
    141 bindsym $mod+4		workspace $ws4
    142 bindsym $mod+5		workspace $ws5
    143 bindsym $mod+6		workspace $ws6
    144 bindsym $mod+7		workspace $ws7
    145 bindsym $mod+8		workspace $ws8
    146 bindsym $mod+9		workspace $ws9
    147 bindsym $mod+0		workspace $ws10
    148 
    149 # move focused container to workspace
    150 bindsym $mod+Shift+1	move container to workspace $ws1
    151 bindsym $mod+Shift+2	move container to workspace $ws2
    152 bindsym $mod+Shift+3	move container to workspace $ws3
    153 bindsym $mod+Shift+4	move container to workspace $ws4
    154 bindsym $mod+Shift+5	move container to workspace $ws5
    155 bindsym $mod+Shift+6	move container to workspace $ws6
    156 bindsym $mod+Shift+7	move container to workspace $ws7
    157 bindsym $mod+Shift+8	move container to workspace $ws8
    158 bindsym $mod+Shift+9	move container to workspace $ws9
    159 bindsym $mod+Shift+0	move container to workspace $ws10
    160 
    161 for_window [class="Pinentry"] sticky enable
    162 for_window [class="sent"] border pixel 0px
    163 for_window [title="GIMP Startup"] move workspace $ws5
    164 for_window [class="Gimp"] move workspace $ws5
    165 for_window [window_role="GtkFileChooserDialog"] resize set 800 600
    166 for_window [window_role="GtkFileChooserDialog"] move position center
    167 for_window [title="Default - Wine desktop"] floating enable
    168 
    169 # Bindings to make the webcam float and stick.
    170 for_window [title="mpvfloat"] floating enable
    171 for_window [title="mpvfloat"] sticky enable
    172 for_window [title="mpvfloat"] border pixel 0
    173 no_focus [title="mpvfloat"]
    174 
    175 # #---Function Buttons---# #
    176 bindsym $mod+F2		restart
    177 
    178 # #---Arrow Keys---# #
    179 bindsym $mod+Left		focus left
    180 bindsym $mod+Ctrl+Left		move workspace to output left
    181 bindsym $mod+Down		focus down
    182 bindsym $mod+Ctrl+Down		move workspace to output down
    183 bindsym $mod+Up			focus up
    184 bindsym $mod+Ctrl+Up		move workspace to output up
    185 bindsym $mod+Right 		focus right
    186 bindsym $mod+Ctrl+Right		move workspace to output right
    187 bindsym $mod+Shift+Left		move left
    188 bindsym $mod+Shift+Down		move down
    189 bindsym $mod+Shift+Up		move up
    190 bindsym $mod+Shift+Right 	move right