myconfig

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

config (5892B)


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