X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=.config%2Fi3%2Fconfig;h=4d180adc9288f208509b635ece5031f048d55b13;hb=369aa7c59165ec409a36bcc7e0b63c757455001f;hp=0224718083da0b9d917597d4975e05b5cdd55ded;hpb=882931494724e5b2c6ff98ec1bb6bd9398c5074f;p=dotfiles.git diff --git a/.config/i3/config b/.config/i3/config index 0224718..4d180ad 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -11,47 +11,34 @@ set $mod Mod4 -exec xautolock -locker 'i3lock -c ccff00' +# lock the screen after 10 minutes +exec xautolock -locker 'i3lock -c ccff00; systemctl suspend' +# set a background exec convert -size 1600x900 plasma:fractal -modulate 20,100,10 png:- | display -window root +# set the backlight +exec xbacklight -set 50 +# set the network switcher exec netctltray -bindsym XF86AudioLowerVolume exec amixer set Master 5- -bindsym XF86AudioRaiseVolume exec amixer set Master 5+ -bindsym XF86AudioMute exec amixer set Master toggle +# Custom keybindings +bindsym $mod+l exec xautolock -locknow +bindsym $mod+p exec passmenu -# Font for window titles. Will also be used by the bar unless a different font -# is used in the bar {} block below. -# 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 for window titles. font pango:DejaVu Sans Mono 8 -# Before i3 v4.8, we used to recommend this one as the default: -# font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1 -# The font above is very space-efficient, that is, it looks good, sharp and -# clear in small sizes. However, its unicode glyph coverage is limited, the old -# X core fonts rendering does not support right-to-left and this being a bitmap -# font, it doesn’t scale on retina/hidpi displays. # Use Mouse+$mod to drag floating windows to their wanted position floating_modifier $mod +hide_edge_borders none # start a terminal bindsym $mod+Return exec i3-sensible-terminal -# start a browser -bindsym $mod+b exec uzbl-browser - -# lock the screen -bindsym $mod+l exec xautolock -locknow - # kill focused window bindsym $mod+Shift+quotedbl kill # start dmenu (a program launcher) -bindsym $mod+e exec dmenu_run -# There also is the (new) i3-dmenu-desktop which only displays applications -# shipping a .desktop file. It is a wrapper around dmenu, so you need that -# installed. -# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop +bindsym $mod+e exec dmenu_run -i -f -fn 'xft:DejaVu Sans Mono:style=Book:pixelsize=12' # change focus bindsym $mod+h focus left @@ -60,10 +47,10 @@ bindsym $mod+n focus up bindsym $mod+s focus right # 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 +bindsym $mod+Left exec xbacklight -dec 5 +bindsym $mod+Down exec amixer set Master 5- && kill -n 10 `pidof i3status` +bindsym $mod+Up exec amixer set Master 5+ && kill -n 10 `pidof i3status` +bindsym $mod+Right exec xbacklight -inc 5 # move focused window bindsym $mod+Shift+h move left @@ -135,33 +122,36 @@ bindsym $mod+Shift+p restart bindsym $mod+Shift+period exec i3-msg exit # resize window (you can also use the mouse for that) -mode "resize" { - # These bindings trigger as soon as you enter the resize mode - - # Pressing left will shrink the window’s width. - # Pressing right will grow the window’s width. - # Pressing up will shrink the window’s height. - # Pressing down will grow the window’s height. - bindsym h resize shrink width 10 px or 10 ppt - bindsym t resize grow height 10 px or 10 ppt - bindsym n resize shrink height 10 px or 10 ppt - bindsym s 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 - bindsym Down resize grow height 10 px or 10 ppt - 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 - bindsym Return mode "default" - bindsym Escape mode "default" -} - -bindsym $mod+p mode "resize" +#mode "resize" { +# # These bindings trigger as soon as you enter the resize mode +# +# # Pressing left will shrink the window’s width. +# # Pressing right will grow the window’s width. +# # Pressing up will shrink the window’s height. +# # Pressing down will grow the window’s height. +# bindsym h resize shrink width 10 px or 10 ppt +# bindsym t resize grow height 10 px or 10 ppt +# bindsym n resize shrink height 10 px or 10 ppt +# bindsym s 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 +# bindsym Down resize grow height 10 px or 10 ppt +# 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 +# bindsym Return mode "default" +# bindsym Escape mode "default" +#} +# +#bindsym $mod+p mode "resize" # Start i3bar to display a workspace bar (plus the system information i3status # finds out, if available) bar { - status_command ~/.config/i3/bar + status_command i3status + mode hide + modifier $mod + font pango:DejaVu Sans Mono 14 }