diff options
Diffstat (limited to 'utgard')
| -rw-r--r-- | utgard/config/i3/config | 217 |
1 files changed, 137 insertions, 80 deletions
diff --git a/utgard/config/i3/config b/utgard/config/i3/config index 54c8df5..608edd3 100644 --- a/utgard/config/i3/config +++ b/utgard/config/i3/config @@ -1,106 +1,157 @@ # vim:set syntax=i3: -set $pmod Mod4 -set $smod Mod1 -# ISO 10646 = Unicode -# font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1 +set $mod Mod4 + +# Font for window titles. Will also be used by the bar unless a different font +# is used in the bar {} block below. +#font pango:monospace 11 + +# This font is widely installed, provides lots of unicode glyphs, right-to-left +# text rendering and scalability on retina/hidpi displays (thanks to pango). +#font pango:DejaVu Sans Mono 11 font pango:DejaVu Sans Mono, Terminus Semi-Condensed 9 -# Use Mouse+Mod1 to drag floating windows to their wanted position -floating_modifier Mod1 +# The combination of xss-lock, nm-applet and pactl is a popular choice, so +# they are included here as an example. Modify as you see fit. -# temporary path during development -ipc-socket /tmp/nestedcons +# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the +# screen before suspend. Use loginctl lock-session to lock your screen. +#exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork -# Open empty container -#bindsym $pmod+Shift+Return open +# Use pactl to adjust volume in PulseAudio. +set $refresh_i3status killall -SIGUSR1 i3status +bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status +bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status +bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status +bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status + +# Use Mouse+$mod to drag floating windows to their wanted position +floating_modifier $mod + +# temporary path during development +#ipc-socket /tmp/nestedcons -# Start terminal ($pmod+Enter) -#bindsym $pmod+Return exec --no-startup-id /usr/bin/roxterm -bindsym $pmod+Return exec --no-startup-id /usr/bin/sakura +# start a terminal +#bindsym $mod+Return exec i3-sensible-terminal +bindsym $mod+Return exec --no-startup-id /usr/bin/sakura # Start rox -bindsym $pmod+r exec --no-startup-id /usr/bin/rox +#bindsym $mod+r exec --no-startup-id /usr/bin/rox -# Start dmenu ($pmod+p) -bindsym $pmod+v exec /usr/bin/dmenu_run +# kill focused window +bindsym $mod+Shift+q kill +bindsym $mod+BackSpace kill -# Horizontal orientation -bindsym $pmod+x split h +# start dmenu (a program launcher) +#bindsym $mod+v exec /usr/bin/dmenu_run +bindsym $mod+d exec --no-startup-id dmenu_run +bindsym $mod+Shift+d exec --no-startup-id i3-dmenu-desktop -# Vertical orientation -bindsym $pmod+c split v +# A more modern dmenu replacement is rofi: +# bindcode $mod+40 exec "rofi -modi drun,run -show drun" +# There also is i3-dmenu-desktop which only displays applications shipping a +# .desktop file. It is a wrapper around dmenu, so you need that installed. +# bindcode $mod+40 exec --no-startup-id i3-dmenu-desktop -# Fullscreen ($pmod+f) -bindsym $pmod+f fullscreen +# change focus +bindsym $mod+j focus left +bindsym $mod+k focus down +bindsym $mod+l focus up +bindsym $mod+odiaeresis focus right -# Stacking ($pmod+s) -bindsym $pmod+a layout stacking +# alternatively, you can use the cursor keys: +bindsym $mod+Left focus left +#bindsym $mod+Down focus down +#bindsym $mod+Up focus up +bindsym $mod+Right focus right -# Tabbed ($pmod+w) -bindsym $pmod+s layout tabbed +# move focused window +bindsym $mod+Shift+j move left +bindsym $mod+Shift+k move down +bindsym $mod+Shift+l move up +bindsym $mod+Shift+odiaeresis move right -# Default ($pmod+l) -bindsym $pmod+d layout default +# alternatively, you can use the cursor keys: +bindsym $mod+Shift+Left move left +bindsym $mod+Shift+Down move down +bindsym $mod+Shift+Up move up +bindsym $mod+Shift+Right move right -# toggle tiling / floating -bindsym $pmod+Shift+space floating toggle +# split in horizontal orientation +bindsym $mod+h split h + +# split in vertical orientation +bindsym $mod+v split v + +# enter fullscreen mode for the focused container +bindsym $mod+f fullscreen toggle +# change container layout (stacked, tabbed, toggle split) +bindsym $mod+s layout stacking +bindsym $mod+w layout tabbed +bindsym $mod+e layout toggle split + +# toggle tiling / floating +bindsym $mod+Shift+space floating toggle -# Kill current client ($pmod+Shift+q) -bindsym $pmod+Shift+q kill -bindsym $pmod+BackSpace kill +# change focus between tiling / floating windows +bindsym $mod+space focus mode_toggle # Restore saved JSON layout -bindsym $pmod+y restore /home/atsutane/.config/i3/layout.json +bindsym $mod+y restore /home/atsutane/.config/i3/layout.json -# Restart i3 -bindsym $pmod+Shift+r restart -# Reload i3 -bindsym $pmod+Shift+t reload -# Exit i3 -bindsym $pmod+Shift+e exit +# focus the parent container +bindsym $mod+a focus parent +bindsym $mod+Up focus parent -# Focus ($pmod+n/r/t/d) -bind $pmod+44 focus left -bind $pmod+45 focus down -bind $pmod+46 focus up -bind $pmod+47 focus right +# focus the child container +#bindsym $mod+d focus child +bindsym $mod+Down focus child -# Focus the parent or child container -bindsym $pmod+Up focus parent -bindsym $pmod+Down focus child +# Define names for default workspaces for which we configure key bindings later on. +# We use variables to avoid repeating the names in multiple places. +set $ws1 "1" +set $ws2 "2" +set $ws3 "3" +set $ws4 "4" +set $ws5 "5" +set $ws6 "6" +set $ws7 "7" +set $ws8 "8" +set $ws9 "9" +set $ws10 "10" -# Move -bind $pmod+Shift+44 move left -bind $pmod+Shift+45 move down -bind $pmod+Shift+46 move up -bind $pmod+Shift+47 move right +# switch to workspace +bindsym $mod+1 workspace number $ws1 +bindsym $mod+2 workspace number $ws2 +bindsym $mod+3 workspace number $ws3 +bindsym $mod+4 workspace number $ws4 +bindsym $mod+5 workspace number $ws5 +bindsym $mod+6 workspace number $ws6 +bindsym $mod+7 workspace number $ws7 +bindsym $mod+8 workspace number $ws8 +bindsym $mod+9 workspace number $ws9 +bindsym $mod+0 workspace number $ws10 -# Workspaces ($pmod+1/2/…) -bindsym $pmod+1 workspace 1 -bindsym $pmod+2 workspace 2 -bindsym $pmod+3 workspace 3 -bindsym $pmod+4 workspace 4 -bindsym $pmod+5 workspace 5 -bindsym $pmod+6 workspace 6 -bindsym $pmod+7 workspace 7 -bindsym $pmod+8 workspace 8 -bindsym $pmod+9 workspace 9 -bindsym $pmod+0 workspace 10 +# move focused container to workspace +bindsym $mod+Shift+1 move container to workspace number $ws1 +bindsym $mod+Shift+2 move container to workspace number $ws2 +bindsym $mod+Shift+3 move container to workspace number $ws3 +bindsym $mod+Shift+4 move container to workspace number $ws4 +bindsym $mod+Shift+5 move container to workspace number $ws5 +bindsym $mod+Shift+6 move container to workspace number $ws6 +bindsym $mod+Shift+7 move container to workspace number $ws7 +bindsym $mod+Shift+8 move container to workspace number $ws8 +bindsym $mod+Shift+9 move container to workspace number $ws9 +bindsym $mod+Shift+0 move container to workspace number $ws10 -# Move to Workspaces -bindsym $pmod+Shift+1 move workspace 1 -bindsym $pmod+Shift+2 move workspace 2 -bindsym $pmod+Shift+3 move workspace 3 -bindsym $pmod+Shift+4 move workspace 4 -bindsym $pmod+Shift+5 move workspace 5 -bindsym $pmod+Shift+6 move workspace 6 -bindsym $pmod+Shift+7 move workspace 7 -bindsym $pmod+Shift+8 move workspace 8 -bindsym $pmod+Shift+9 move workspace 9 -bindsym $pmod+Shift+0 move workspace 10 +# reload the configuration file +bindsym $mod+Shift+c reload +# restart i3 inplace (preserves your layout/session, can be used to upgrade i3) +bindsym $mod+Shift+r restart +# exit i3 (logs you out of your X session) +bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'" # assign windows to workspaces assign [class="Claws-mail"] 3 @@ -133,7 +184,8 @@ for_window [class="Bsvc.tk"] floating enable # bind i3lock -d to stop key (XF86AudioStop) -bind 174 exec /usr/bin/i3lock -d -i /home/atsutane/media/wallpaper/Motivation.png -e +bind 174 exec /usr/bin/i3lock -d -i /home/atsutane/media/wallpaper/Motivation.png +bindsym $mod+Shift+BackSpace exec /usr/bin/i3lock -d -c 555555 -e # resize window (you can also use the mouse for that) mode "resize" { @@ -146,7 +198,8 @@ mode "resize" { bindsym j resize shrink width 10 px or 10 ppt bindsym k resize grow height 10 px or 10 ppt bindsym l resize shrink height 10 px or 10 ppt - bindsym semicolon resize grow width 10 px or 10 ppt +# bindsym semicolon resize grow width 10 px or 10 ppt + bindsym odiaeresis resize grow width 10 px or 10 ppt # same bindings, but for the arrow keys bindsym Left resize shrink width 10 px or 10 ppt @@ -154,15 +207,19 @@ mode "resize" { bindsym Up resize shrink height 10 px or 10 ppt bindsym Right resize grow width 10 px or 10 ppt - # back to normal: Enter or Escape + # back to normal: Enter or Escape or $mod+r bindsym Return mode "default" bindsym Escape mode "default" + bindsym $mod+r mode "default" } -bindsym $pmod+space mode "resize" +#bindsym $mod+space mode "resize" +bindsym $mod+r mode "resize" +# Start i3bar to display a workspace bar (plus the system information i3status +# finds out, if available) bar { - status_command i3status + status_command i3status -c ~/.config/i3status/config mode hide position bottom tray_output LVDS1 |
