set $mod Mod4 #GET THOSE FUCKING GAPS YOU SPENT 2 HOURS OF YOUR LIFE BUILDING FROM SOURCE gaps inner 12 gaps outer 10 #compton for shadows exec compton #dunst for notifications exec dunst #screenshots bindsym Print exec "scrot /tmp/screenshot-$(date +%F_%T).png -e 'xclip -selection c -t image/png < $f'" #set keyboard layout to german: exec --no-startup-id "setxkbmap -layout de" #Set cool colors #CLIENT BORDER BACKGR. TEXT INDICATOR CHILD_BORDER client.focused #b5e5cf #1c1c1c #ffffff #81abbc #b5e5cf client.background #ffffff #merge xrdb on startup #exec --no-startup-id xrdb -merge ~/.Xresources #set feh background to last ran fehbg picture: exec --no-startup-id "sh .fehbg" #disable titlebars (and create medium borders) for_window [class="^.*"] border pixel 5 #font for i3bar and stuff font pango:monospace 12 # Use Mouse+$mod to drag floating windows to their wanted position floating_modifier $mod # start a terminal (kitty) bindsym $mod+Return exec kitty # kill focused window bindsym $mod+q kill # start dmenu (a program launcher) bindsym $mod+Tab exec rofi -show drun #bindsym $mod+Tab exec --no-startup-id dmenu_run # change focus bindsym $mod+h focus left bindsym $mod+j focus down bindsym $mod+k focus up bindsym $mod+l 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 # move focused window bindsym $mod+Shift+h move left bindsym $mod+Shift+j move down bindsym $mod+Shift+k move up bindsym $mod+Shift+l move right # 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 # split horizontally bindsym $mod+t 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+space floating toggle # change focus between tiling / floating windows bindsym $mod+shift+space focus mode_toggle # focus the parent container bindsym $mod+a focus parent # focus the child container #bindsym $mod+d 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" # switch to workspace bindsym $mod+1 workspace $ws1 bindsym $mod+2 workspace $ws2 bindsym $mod+3 workspace $ws3 bindsym $mod+4 workspace $ws4 bindsym $mod+5 workspace $ws5 bindsym $mod+6 workspace $ws6 bindsym $mod+7 workspace $ws7 bindsym $mod+8 workspace $ws8 bindsym $mod+9 workspace $ws9 bindsym $mod+0 workspace $ws10 # move focused container to workspace bindsym $mod+Shift+1 move container to workspace $ws1 bindsym $mod+Shift+2 move container to workspace $ws2 bindsym $mod+Shift+3 move container to workspace $ws3 bindsym $mod+Shift+4 move container to workspace $ws4 bindsym $mod+Shift+5 move container to workspace $ws5 bindsym $mod+Shift+6 move container to workspace $ws6 bindsym $mod+Shift+7 move container to workspace $ws7 bindsym $mod+Shift+8 move container to workspace $ws8 bindsym $mod+Shift+9 move container to workspace $ws9 bindsym $mod+Shift+0 move container to workspace $ws10 # 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'" # MOVE FLOATING WINDOW WITH CUSTOM MODE! bindsym $mod+m mode "move" focus floating mode "move" { #move distance set $distance 30 set $empowered_distance 90 #move bindsym l move right $distance px bindsym k move up $distance px bindsym j move down $distance px bindsym h move left $distance px bindsym Right move right $distance px bindsym Up move up $distance px bindsym Down move down $distance px bindsym Left move left $distance px #empowered move bindsym Shift+l move right $empowered_distance px bindsym Shift+k move up $empowered_distance px bindsym Shift+j move down $empowered_distance px bindsym Shift+h move left $empowered_distance px bindsym Shift+Right move right $empowered_distance px bindsym Shift+Up move up $empowered_distance px bindsym Shift+Down move down $empowered_distance px bindsym Shift+Left move left $empowered_distance px #back to normal mode bindsym Escape mode "default" bindsym Return mode "default" bindsym $mod+m mode "default" bindsym Space mode "default" } # resize window (you can also use the mouse for that) mode "resize" { set $empowered_amount 50 bindsym h resize shrink width 10 px or 10 ppt bindsym j resize grow height 10 px or 10 ppt bindsym k resize shrink height 10 px or 10 ppt bindsym l 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 # empowered resize: bindsym Shift+h resize shrink width $empowered_amount px bindsym Shift+j resize grow height $empowered_amount px bindsym Shift+k resize shrink height $empowered_amount px bindsym Shift+l resize grow width $empowered_amount px # back to normal: Enter or Escape or $mod+r bindsym Return mode "default" bindsym Escape mode "default" bindsym $mod+r mode "default" } bindsym $mod+r mode "resize" # exec POLYBAR LAUNCH-SCRIPT on startup: exec_always --no-startup-id $HOME/.config/polybar/launch_polybar.sh # Start i3bar to display a workspace bar (plus the system information i3status # finds out, if available) #bar { # position top # status_command i3status # # #change the font and fontsize of i3bar # font -misc-fixed-*-r-normal--18-120-100-100-c-90-iso10646-1 # font pango: Hack 12 # # colors { # separator #99545d # background #1c1c1c # focused_workspace #b5e5cf #b5e5cf #1c1c1c # active_workspace #313e61 #1c1c1c #1c1c1c # inactive_workspace #1c1c1c #1c1c1c #ffffff # urgent_workspace #b99095 #b99095 #1c1c1c # } #} #make popups floating: for_window [window_role="pop-up"] floating enable #MULTIMEDIA KEYS: #Audio control: bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5% bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle #toggle mute #Screen brightness: bindsym XF86MonbrigthnessUp exec "" #increase brightness (virtual) bindsym XF86MonbrigthnessDown exec "" #decrease brightness (virtual)