myconfig

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

config (5811B)


      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 Terminus 10
     19 #font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
     20 
     21 client.background #000000
     22 
     23 # Use Mouse+$mod to drag floating windows to their wanted position
     24 floating_modifier $mod
     25 
     26 focus_follows_mouse yes
     27 
     28 #bindsym $mod+shift+Return exec "~/bin/urxvtcdfont"
     29 bindsym $mod+Return exec gnome-terminal
     30 #bindsym $mod+Return exec "urxvtpwd ~/bin/urxvtcdfont"
     31 bindsym $mod+b exec "~/bin/sandboxed-browser"
     32 bindsym $mod+o exec "gnome-terminal -e ~/bin/my-mutt"
     33 bindsym $mod+i exec "gnome-terminal -e ~/bin_private/weechat"
     34 bindsym $mod+Shift+t exec "~/bin/screenshot_sway"
     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 "gnome-terminal -e ~/bin/msr"
     53 bindsym $mod+Shift+m exec "music=`~/bin/my-rofi -dmenu` && exec ~/bin/ytmusic $music"
     54 
     55 # change focus
     56 bindsym $mod+h focus left
     57 bindsym $mod+j focus down
     58 bindsym $mod+k focus up
     59 bindsym $mod+l focus right
     60 
     61 # move focused window
     62 bindsym $mod+Shift+H move left
     63 bindsym $mod+Shift+J move down
     64 bindsym $mod+Shift+K move up
     65 bindsym $mod+Shift+L move right
     66 
     67 # split in horizontal orientation
     68 bindsym $mod+w split h
     69 
     70 # split in vertical orientation
     71 bindsym $mod+v split v
     72 
     73 # enter fullscreen mode for the focused container
     74 bindsym $mod+f fullscreen
     75 
     76 # change container layout (stacked, tabbed, default)
     77 bindsym $mod+s layout stacking
     78 bindsym $mod+t layout tabbed
     79 bindsym $mod+d layout default
     80 
     81 # toggle tiling / floating
     82 bindsym $mod+Shift+space floating toggle
     83 
     84 # change focus between tiling / floating windows
     85 bindsym $mod+space focus mode_toggle
     86 
     87 bindsym $mod+Tab exec todo
     88 
     89 # focus the parent container
     90 bindsym $mod+u focus parent
     91 
     92 bindsym $mod+a workspace back_and_forth
     93 # assuming that there are at most two outputs
     94 # bindsym $mod+Shift+a move workspace to output right
     95 
     96 # focus the child container
     97 #bindcode $mod+d fo****cus child
     98 
     99 # switch to workspace
    100 bindsym $mod+1 workspace 1
    101 bindsym $mod+2 workspace 2
    102 bindsym $mod+3 workspace 3
    103 bindsym $mod+4 workspace 4
    104 bindsym $mod+5 workspace 5
    105 bindsym $mod+6 workspace 6
    106 bindsym $mod+7 workspace 7
    107 bindsym $mod+8 workspace 8
    108 bindsym $mod+9 workspace 9
    109 bindsym $mod+0 workspace 10
    110 
    111 # move focused container to workspace
    112 bindsym $mod+Shift+1 move container to workspace 1
    113 bindsym $mod+Shift+2 move container to workspace 2
    114 bindsym $mod+Shift+3 move container to workspace 3
    115 bindsym $mod+Shift+4 move container to workspace 4
    116 bindsym $mod+Shift+5 move container to workspace 5
    117 bindsym $mod+Shift+6 move container to workspace 6
    118 bindsym $mod+Shift+7 move container to workspace 7
    119 bindsym $mod+Shift+8 move container to workspace 8
    120 bindsym $mod+Shift+9 move container to workspace 9
    121 bindsym $mod+Shift+0 move container to workspace 10
    122 
    123 bindsym $mod+p workspace prev
    124 bindsym $mod+n workspace next
    125 bindsym $mod+Shift+p move container to output left
    126 bindsym $mod+Shift+n move container to output right
    127 
    128 
    129 # reload the configuration file
    130 bindsym $mod+Shift+D reload
    131 # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
    132 bindsym $mod+Shift+R restart
    133 # exit i3 (logs you out of your X session)
    134 bindsym $mod+Shift+greater exit
    135 
    136 bindsym $mod+x exec ~/bin/afk_sway
    137 bindsym $mod+Shift+x exec ~/bin/dodo_sway
    138 
    139 # resize window (you can also use the mouse for that)
    140 mode "resize" {
    141         # These bindings trigger as soon as you enter the resize mode
    142 
    143         # Pressing left will shrink the window’s width.
    144         # Pressing right will grow the window’s width.
    145         # Pressing up will shrink the window’s height.
    146         # Pressing down will grow the window’s height.
    147         bindsym h resize shrink width 10 px or 10 ppt
    148         bindsym j resize grow height 10 px or 10 ppt
    149         bindsym k resize shrink height 10 px or 10 ppt
    150         bindsym l resize grow width 10 px or 10 ppt
    151         bindsym Shift+h resize shrink width 1 px or 1 ppt
    152         bindsym Shift+j resize grow height 1 px or 1 ppt
    153         bindsym Shift+k resize shrink height 1 px or 1 ppt
    154         bindsym Shift+l resize grow width 1 px or 1 ppt
    155 
    156 
    157         # back to normal: Enter or Escape
    158         bindsym Return mode "default"
    159         bindsym Escape mode "default"
    160         bindsym $mod+r mode "default"
    161 }
    162 
    163 bindsym $mod+r mode "resize"
    164 
    165 workspace_layout stacking
    166 
    167 # Start i3bar to display a workspace bar (plus the system information i3status
    168 # finds out, if available)
    169 bar {
    170   status_command i3status
    171   mode hide
    172   position bottom
    173   #font -*-Terminus*-*-*-*-*-*-*-*-*-*-*-*
    174   font Terminus
    175 }
    176 
    177 input * {
    178   repeat_delay 250
    179   repeat_rate 50
    180   xkb_layout a3nm
    181 }
    182 
    183 bindsym XF86AudioLowerVolume exec pavol '-5%'
    184 bindsym XF86AudioRaiseVolume exec pavol '+5%'
    185 bindsym XF86AudioMute exec /usr/bin/pactl set-sink-volume 0 0
    186 bindsym XF86MonBrightnessUp exec /usr/bin/xbacklight -inc 10
    187 bindsym XF86MonBrightnessDown exec /usr/bin/xbacklight -dec 5
    188 
    189 #TODO default split ratio 2/3
    190 #TODO default veritcal split is stacked
    191 
    192 exec ~/bin/startup