myconfig

my config files
git clone https://a3nm.net/git/myconfig/
Log | Files | Refs | README

config (5748B)


      1 # This file has been auto-generated by i3-config-wizard(1).
      2 # It will not be overwritten, so edit it as you like.
      3 #
      4 # Should you change your keyboard layout somewhen, delete
      5 # this file and re-run i3-config-wizard(1).
      6 #
      7 
      8 # i3 config file (v4)
      9 #
     10 # Please see http://i3wm.org/docs/userguide.html for a complete reference!
     11 
     12 # exec compton -CGb
     13 
     14 set $mod Mod4
     15 
     16 # font for window titles. ISO 10646 = Unicode
     17 font -*-Terminus*-*-*-*-*-*-*-*-*-*-*-*
     18 #font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
     19 
     20 client.background #000000
     21 
     22 # Use Mouse+$mod to drag floating windows to their wanted position
     23 floating_modifier $mod
     24 
     25 focus_follows_mouse yes
     26 
     27 bindsym $mod+shift+Return exec "~/bin/urxvtcdfont"
     28 bindsym $mod+Return exec "urxvtpwd ~/bin/urxvtcdfont"
     29 bindsym $mod+b exec "~/bin/sandboxed-browser"
     30 bindsym $mod+Shift+b exec "/usr/bin/firefox"
     31 bindsym $mod+o exec "urxvtcdfont -e ~/bin/my-mutt"
     32 bindsym $mod+i exec "urxvtcdfont -e ~/bin_private/weechat"
     33 bindsym $mod+Shift+t exec "scrot"
     34 bindsym $mod+Shift+s exec ~/bin/xpass
     35 bindsym $mod+Shift+y exec ~/bin/my-rofi -show ssh
     36 bindsym $mod+Shift+f exec ~/bin/xpapers
     37 bindsym $mod+y [urgent=latest] focus
     38 
     39 bindsym $mod+Shift+a move container to workspace back_and_forth; workspace back_and_forth
     40 
     41 workspace_auto_back_and_forth yes
     42 
     43 # kill focused window
     44 bindsym $mod+Shift+c kill
     45 bindsym $mod+q kill
     46 
     47 # start dmenu (a program launcher)
     48 bindsym $mod+e exec ~/bin/my-rofi -show run
     49 bindsym $mod+shift+e exec ~/bin/my-rofi -show window
     50 bindsym $mod+Shift+w exec "wen=`~/bin/my-rofi -dmenu` && exec ~/bin/wwen $wen"
     51 bindsym $mod+m exec "urxvtcdfont -e ~/bin/msr"
     52 bindsym $mod+Shift+m exec "music=`~/bin/my-rofi -dmenu` && exec ~/bin/ytmusic $music"
     53 
     54 # change focus
     55 bindsym $mod+h focus left
     56 bindsym $mod+j focus down
     57 bindsym $mod+k focus up
     58 bindsym $mod+l focus right
     59 
     60 # move focused window
     61 bindsym $mod+Shift+H move left
     62 bindsym $mod+Shift+J move down
     63 bindsym $mod+Shift+K move up
     64 bindsym $mod+Shift+L move right
     65 
     66 # split in horizontal orientation
     67 bindsym $mod+w split h
     68 
     69 # split in vertical orientation
     70 bindsym $mod+v split v
     71 
     72 # enter fullscreen mode for the focused container
     73 bindsym $mod+f fullscreen
     74 
     75 # change container layout (stacked, tabbed, default)
     76 bindsym $mod+s layout stacking
     77 bindsym $mod+t layout tabbed
     78 bindsym $mod+d layout default
     79 
     80 # toggle tiling / floating
     81 bindsym $mod+Shift+space floating toggle
     82 
     83 # change focus between tiling / floating windows
     84 bindsym $mod+space focus mode_toggle
     85 
     86 bindsym $mod+Tab exec todo
     87 
     88 # focus the parent container
     89 bindsym $mod+u focus parent
     90 
     91 bindsym $mod+a workspace back_and_forth
     92 # assuming that there are at most two outputs
     93 # bindsym $mod+Shift+a move workspace to output right
     94 
     95 # focus the child container
     96 #bindcode $mod+d fo****cus child
     97 
     98 # switch to workspace
     99 bindsym $mod+1 workspace 1
    100 bindsym $mod+2 workspace 2
    101 bindsym $mod+3 workspace 3
    102 bindsym $mod+4 workspace 4
    103 bindsym $mod+5 workspace 5
    104 bindsym $mod+6 workspace 6
    105 bindsym $mod+7 workspace 7
    106 bindsym $mod+8 workspace 8
    107 bindsym $mod+9 workspace 9
    108 bindsym $mod+0 workspace 10
    109 
    110 # move focused container to workspace
    111 bindsym $mod+Shift+exclam move container to workspace 1
    112 bindsym $mod+Shift+at move container to workspace 2
    113 bindsym $mod+Shift+numbersign move container to workspace 3
    114 bindsym $mod+Shift+dollar move container to workspace 4
    115 bindsym $mod+Shift+percent move container to workspace 5
    116 bindsym $mod+Shift+asciicircum move container to workspace 6
    117 bindsym $mod+Shift+ampersand move container to workspace 7
    118 bindsym $mod+Shift+asterisk move container to workspace 8
    119 bindsym $mod+Shift+parenleft move container to workspace 9
    120 bindsym $mod+Shift+parenright move container to workspace 10
    121 
    122 bindsym $mod+p workspace prev
    123 bindsym $mod+n workspace next
    124 bindsym $mod+Shift+p move container to output left
    125 bindsym $mod+Shift+n move container to output right
    126 
    127 
    128 # reload the configuration file
    129 bindsym $mod+Shift+D reload
    130 # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
    131 bindsym $mod+Shift+R restart
    132 # exit i3 (logs you out of your X session)
    133 bindsym $mod+Shift+greater exit
    134 
    135 bindsym $mod+x exec ~/bin/afk
    136 bindsym $mod+Shift+x exec ~/bin/dodo
    137 
    138 # resize window (you can also use the mouse for that)
    139 mode "resize" {
    140         # These bindings trigger as soon as you enter the resize mode
    141 
    142         # Pressing left will shrink the window’s width.
    143         # Pressing right will grow the window’s width.
    144         # Pressing up will shrink the window’s height.
    145         # Pressing down will grow the window’s height.
    146         bindsym h resize shrink width 10 px or 10 ppt
    147         bindsym j resize grow height 10 px or 10 ppt
    148         bindsym k resize shrink height 10 px or 10 ppt
    149         bindsym l resize grow width 10 px or 10 ppt
    150         bindsym Shift+h resize shrink width 1 px or 1 ppt
    151         bindsym Shift+j resize grow height 1 px or 1 ppt
    152         bindsym Shift+k resize shrink height 1 px or 1 ppt
    153         bindsym Shift+l resize grow width 1 px or 1 ppt
    154 
    155 
    156         # back to normal: Enter or Escape
    157         bindsym Return mode "default"
    158         bindsym Escape mode "default"
    159         bindsym $mod+r mode "default"
    160 }
    161 
    162 bindsym $mod+r mode "resize"
    163 
    164 workspace_layout stacking
    165 
    166 # Start i3bar to display a workspace bar (plus the system information i3status
    167 # finds out, if available)
    168 bar {
    169   status_command i3status
    170   mode hide
    171   position bottom
    172   font -*-Terminus*-*-*-*-*-*-*-*-*-*-*-*
    173 }
    174 
    175 bindsym XF86AudioLowerVolume exec pavol '-5%'
    176 bindsym XF86AudioRaiseVolume exec pavol '+5%'
    177 bindsym XF86AudioMute exec /usr/bin/pactl set-sink-volume 0 0
    178 bindsym XF86MonBrightnessUp exec /usr/bin/xbacklight -inc 10
    179 bindsym XF86MonBrightnessDown exec /usr/bin/xbacklight -dec 5
    180 
    181 #TODO default split ratio 2/3
    182 #TODO default veritcal split is stacked
    183 
    184 exec ~/bin/startup_i3