set $mod Mod4 set $sup Mod4 # Screen setup # Turn on screen connected to AMD card exec_always /home/emamaker/.screenlayout/layout.sh #exec --no-startup-id xrandr --output DisplayPort-0 --primary --mode 1920x1080 --pos 1920x0 --rotate normal --output HDMI-0 --mode 1920x1080 --pos 0x0 --rotate normal --output DVI-0 --off --output DVI-1 --off set $screen2 HDMI-0 set $screen1 DisplayPort-0 ######### Basic I3 Behaviour Config ######### # keyboard layout exec --no-startup-id setxkbmap -layout it # 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 12 # 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 8 # 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. # 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 # Use Mouse+$mod to drag floating windows to their wanted position floating_modifier $mod # start a terminal bindsym $mod+Return exec alacritty bindsym $mod+Shift+Return prime-run exec alacritty # kill focused window bindsym $mod+Shift+q kill # 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 in horizontal orientation bindsym $mod+b split h # split in vertical orientation bindsym $mod+v split v # enter fullscreen mode for the focused container bindsym $mod+f fullscreen toggle #fullscreen options popup_during_fullscreen smart # change container layout (stacked, tabbed, toggle split) bindsym $mod+Shift+s layout stacking bindsym $mod+t layout tabbed bindsym $mod+Alt+e layout toggle split # toggle tiling / floating bindsym $mod+Shift+space floating toggle # change focus between tiling / floating windows #bindsym $mod+space focus mode_toggle # focus the parent container # bindsym $mod+a focus parent # focus the child container #bindsym $mod+d focus child # 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'" # 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 k resize grow height 10 px or 10 ppt bindsym j 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 # 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" # Disable window titlebars entirely #for_window [class="^.*"] border pixel 0 #start in opposite orientation from your monitor default_orientation vertical exec_always --no-startup-id i3altlayout bindsym Mod1+Tab workspace back_and_forth bindsym Shift+F2 exec i3-input -F 'rename workspace to "%s"' -P 'New name for this workspace: ' ############### gaps ############### # gaps gaps inner 10 default_border pixel 3 default_floating_border pixel 3 # Smart borders (draw borders around container only if it is not the only container on this workspace) # on|no_gaps (on=always activate and no_gaps=only activate if the gap size to the edge of the screen is 0) #smart_borders on # Press $mod+Shift+g to enter the gap mode. Choose o or i for modifying outer/inner gaps. Press one of + / - (in-/decrement for current workspace) or 0 (remove gaps for current workspace). If you also press Shift with these keys, the change will be global for all workspaces. set $mode_gaps Gaps: (o) outer, (i) inner set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global) set $mode_gaps_inner Inner Gaps: +|-|0 (local), Shift + +|-|0 (global) bindsym $mod+Shift+g mode "$mode_gaps" mode "$mode_gaps" { bindsym o mode "$mode_gaps_outer" bindsym i mode "$mode_gaps_inner" bindsym Return mode "default" bindsym Escape mode "default" } mode "$mode_gaps_inner" { bindsym plus gaps inner current plus 5 bindsym minus gaps inner current minus 5 bindsym 0 gaps inner current set 0 bindsym Shift+plus gaps inner all plus 5 bindsym Shift+minus gaps inner all minus 5 bindsym Shift+0 gaps inner all set 0 bindsym Return mode "default" bindsym Escape mode "default" } mode "$mode_gaps_outer" { bindsym plus gaps outer current plus 5 bindsym minus gaps outer current minus 5 bindsym 0 gaps outer current set 0 bindsym Shift+plus gaps outer all plus 5 bindsym Shift+minus gaps outer all minus 5 bindsym Shift+0 gaps outer all set 0 bindsym Return mode "default" bindsym Escape mode "default" } ############## end of gaps ############### client.focused #555555 #555555 #ffffff #2e9ef4 #CC0000 # mouse mouse_warping output focus_follows_mouse no # polybar # exec_always --no-startup-id $HOME/.config/polybar/launch.sh # picom exec_always picom --config $HOME/.config/picom/picom.conf # Applets / System-tray exec --no-startup-id nm-applet #exec --no-startup-id volctl # wallpaper set $bg "/home/emamaker/Pictures/Wallpapers/wp11058332-gruvbox-wallpapers.png" exec_always --no-startup-id feh --bg-fill $bg; #rofi #running with prime so that applications launched from rofi use the dedicated gpu bindsym $mod+e exec --no-startup-id $HOME/.config/rofi/launchers/type-1/launcher.sh bindsym Mod1+e exec --no-startup-id prime-run $HOME/.config/rofi/launchers/type-1/launcher.sh # rofi power-menu bindsym $mod+p exec --no-startup-id $HOME/.config/rofi/powermenu/type-1/powermenu.sh bindsym $mod+x exec --no-startup-id $HOME/.config/rofi/applets/bin/screenshot.sh bindsym $mod+o exec --no-startup-id $HOME/.config/rofi/applets/bin/volume.sh bindsym $mod+i exec --no-startup-id $HOME/.config/rofi/applets/bin/brightness.sh bindsym $mod+u exec --no-startup-id $HOME/.config/rofi/applets/bin/battery.sh #scratchpad bindsym $mod+minus move scratchpad ############### workspaces mapping ############### # 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" set $ws11 "11" set $ws12 "12" set $ws13 "13" set $ws14 "14" set $ws15 "15" set $ws16 "16" set $ws17 "17" set $ws18 "18" set $ws19 "19" set $ws20 "20" # 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 bindsym Mod1+1 workspace number $ws11 bindsym Mod1+2 workspace number $ws12 bindsym Mod1+3 workspace number $ws13 bindsym Mod1+4 workspace number $ws14 bindsym Mod1+5 workspace number $ws15 bindsym Mod1+6 workspace number $ws16 bindsym Mod1+7 workspace number $ws17 bindsym Mod1+8 workspace number $ws18 bindsym Mod1+9 workspace number $ws19 bindsym Mod1+0 workspace number $ws20 # 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 bindsym Mod1+Shift+1 move container to workspace number $ws11 bindsym Mod1+Shift+2 move container to workspace number $ws12 bindsym Mod1+Shift+3 move container to workspace number $ws13 bindsym Mod1+Shift+4 move container to workspace number $ws14 bindsym Mod1+Shift+5 move container to workspace number $ws15 bindsym Mod1+Shift+6 move container to workspace number $ws16 bindsym Mod1+Shift+7 move container to workspace number $ws17 bindsym Mod1+Shift+8 move container to workspace number $ws18 bindsym Mod1+Shift+9 move container to workspace number $ws19 bindsym Mod1+Shift+0 move container to workspace number $ws20 #map workspace to screen workspace $ws1 output $screen1 workspace $ws2 output $screen1 workspace $ws3 output $screen1 workspace $ws4 output $screen1 workspace $ws5 output $screen1 workspace $ws6 output $screen1 workspace $ws7 output $screen1 workspace $ws8 output $screen1 workspace $ws9 output $screen1 workspace $ws10 output $screen1 workspace $ws11 output $screen2 workspace $ws12 output $screen2 workspace $ws13 output $screen2 workspace $ws14 output $screen2 workspace $ws15 output $screen2 workspace $ws16 output $screen2 workspace $ws17 output $screen2 workspace $ws18 output $screen2 workspace $ws19 output $screen2 workspace $ws20 output $screen2 ############### end of workspace mapping ############### ############### i3 resurrect ############### set $i3_resurrect /home/emamaker/.local/bin/i3-resurrect exec --no-startup-id i3_resurrect restore -w $ws10; sleep 1; $i3_resurrect restore -w $ws20 # Save workspace mode. mode "save" { bindsym 1 exec $i3_resurrect save -w $ws1 bindsym 2 exec $i3_resurrect save -w $ws2 bindsym 3 exec $i3_resurrect save -w $ws3 bindsym 4 exec $i3_resurrect save -w $ws4 bindsym 5 exec $i3_resurrect save -w $ws5 bindsym 6 exec $i3_resurrect save -w $ws6 bindsym 7 exec $i3_resurrect save -w $ws7 bindsym 8 exec $i3_resurrect save -w $ws8 bindsym 9 exec $i3_resurrect save -w $ws9 bindsym 0 exec $i3_resurrect save -w $ws10 bindsym q exec $i3_resurrect save -w $ws11 bindsym w exec $i3_resurrect save -w $ws12 bindsym e exec $i3_resurrect save -w $ws13 bindsym r exec $i3_resurrect save -w $ws14 bindsym t exec $i3_resurrect save -w $ws15 bindsym y exec $i3_resurrect save -w $ws16 bindsym u exec $i3_resurrect save -w $ws17 bindsym i exec $i3_resurrect save -w $ws18 bindsym o exec $i3_resurrect save -w $ws19 bindsym p exec $i3_resurrect save -w $ws20 # Back to normal: Enter, Escape, or s bindsym Return mode "default" bindsym Escape mode "default" bindsym s mode "default" bindsym $mod+s mode "default" } bindsym $mod+s mode "save" # Restore workspace mode. mode "restore" { bindsym 1 exec $i3_resurrect restore -w $ws1 bindsym 2 exec $i3_resurrect restore -w $ws2 bindsym 3 exec $i3_resurrect restore -w $ws3 bindsym 4 exec $i3_resurrect restore -w $ws4 bindsym 5 exec $i3_resurrect restore -w $ws5 bindsym 6 exec $i3_resurrect restore -w $ws6 bindsym 7 exec $i3_resurrect restore -w $ws7 bindsym 8 exec $i3_resurrect restore -w $ws8 bindsym 9 exec $i3_resurrect restore -w $ws9 bindsym 0 exec $i3_resurrect restore -w $ws10 bindsym q exec $i3_resurrect restore -w $ws11 bindsym w exec $i3_resurrect restore -w $ws12 bindsym e exec $i3_resurrect restore -w $ws13 bindsym r exec $i3_resurrect restore -w $ws14 bindsym t exec $i3_resurrect restore -w $ws15 bindsym y exec $i3_resurrect restore -w $ws16 bindsym u exec $i3_resurrect restore -w $ws17 bindsym i exec $i3_resurrect restore -w $ws18 bindsym o exec $i3_resurrect restore -w $ws19 bindsym p exec $i3_resurrect restore -w $ws20 # Back to normal: Enter, Escape, or n bindsym Return mode "default" bindsym Escape mode "default" bindsym n mode "default" bindsym $mod+n mode "default" } bindsym $mod+n mode "restore" ############### end of i3-resurrect ############### exec /usr/lib/polkit-1/polkitd --no-debug exec /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 & bindsym XF86AudioRaiseVolume exec amixer -q set Master 2dB+ unmute bindsym XF86AudioLowerVolume exec amixer -q set Master 2dB- unmute bindsym XF86AudioMute exec amixer -q set Master toggle && amixer -q set Speaker toggle bindsym XF86AudioMicMute exec amixer -q set Capture toggle bindsym XF86MonBrightnessUp exec xbacklight -inc 10 bindsym XF86MonBrightnessDown exec xbacklight -dec 10 for_window [class="Viewnior"] floating enable # assign to workspaces assign [class="TelegramDesktop"] $ws10 assign [class="Whatsapp-for-linux"] $ws10 assign [class="discord"] $ws10 assign [class="Whatstux"] $ws10 assign [class="UXTerm"] $ws20 for_window [class="Gnome-screenshot"] floating enable # autostart exec --no-startup-id telegram-desktop exec --no-startup-id xfce4-power-manager exec --no-startup-id whatstux exec --no-startup-id touchegg exec --no-startup-id guake exec --no-startup-id xfce4-panel --disable-wm-check exec --no-startup-id nm-applet exec_always killall ruby; watch_table & exec_always killall rot8; rot8 -d eDP1 --touchscreen "Wacom Pen and multitouch sensor Finger" "Wacom Pen and multitouch sensor Pen Pen (0x9b1338a9)" "Wacom Pen and multitouch sensor Pen Eraser (0x9b1338a9)" &