Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- font pango:SFNS Display 10, FontAwesome 10
- #Global color
- set $bg-color #2f343f
- set $inactive-bg-color #2f343f
- set $text-color #f3f4f5
- set $inactive-text-color #676E7D
- set $urgent-bg-color #E53935
- # Define button
- set $super Mod4
- #Following mouse
- focus_follows_mouse no
- #No Title bar
- for_window [class="^.*"] border pixel 0
- #Reload the configuration file
- bindsym $super+Shift+c reload
- #Restart i3 inplace
- bindsym $super+Shift+r restart
- #Name Workspace
- set $WS1 1·
- set $WS2 2·
- set $WS3 3·
- set $WS4 4·
- set $WS5 5·
- set $WS6 6·
- set $WS7 7·
- set $WS8 8·
- # Define other scren
- workspace $WS1 output eDP1
- workspace $WS2 output eDP1
- workspace $WS3 output eDP1
- workspace $WS4 output eDP1
- workspace $WS5 output eDP1
- workspace $WS6 output HDMI2
- workspace $WS7 output HDMI2
- workspace $WS8 output HDMI2
- #Switch to workspace
- bindsym $super+1 workspace $WS1
- bindsym $super+2 workspace $WS2
- bindsym $super+3 workspace $WS3
- bindsym $super+4 workspace $WS4
- bindsym $super+5 workspace $WS5
- bindsym $super+6 workspace $WS6
- bindsym $super+7 workspace $WS7
- bindsym $super+8 workspace $WS8
- #Move focused container to workspace
- bindsym $super+Shift+1 move container to workspace $WS1
- bindsym $super+Shift+2 move container to workspace $WS2
- bindsym $super+Shift+3 move container to workspace $WS3
- bindsym $super+Shift+4 move container to workspace $WS4
- bindsym $super+Shift+5 move container to workspace $WS5
- bindsym $super+Shift+6 move container to workspace $WS6
- bindsym $super+Shift+7 move container to workspace $WS7
- bindsym $super+Shift+8 move container to workspace $WS8
- #Use Mouse+$super to drag floating windows to their wanted position
- floating_modifier mod1
- #Enable/disable sticky
- bindsym $super+space sticky toggle
- #Kill focused window
- bindsym mod1+F4 kill
- #Start launcher
- bindsym $super+d exec --no-startup-id rofi -show run -opacity "80" -width "100" -lines "5" -font "SFNS Display 15" -padding 452 -terminal "terminator" -dpi "96"
- bindsym $super+Shift+d exec --no-startup-id rofi -show ssh -opacity "80" -width "100" -lines "5" -font "SFNS Display 15" -padding 452 -terminal "terminator" -dpi "96"
- bindsym mod1+Tab exec --no-startup-id rofi -show window -opacity "80" -width "100" -lines "5" -font "SFNS Display 15" -padding 452 -terminal "terminator" -dpi "96"
- #Change focus
- bindsym $super+Left focus left
- bindsym $super+Down focus down
- bindsym $super+Up focus up
- bindsym $super+Right focus right
- #Move focused window
- bindsym Mod1+Shift+Left move Left
- bindsym Mod1+Shift+Down move down
- bindsym Mod1+Shift+Up move up
- bindsym Mod1+Shift+Right move right
- #Split in horizontal orientation
- bindsym $super+h split h
- #Split in vertical orientation
- bindsym $super+v split v
- #Fullscreen
- bindsym $super+f fullscreen toggle
- #Tiling / floating
- bindsym mod1+space floating toggle
- #Focus all container
- bindsym $super+a focus parent
- mode "resize" {
- 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
- bindsym Return mode "default"
- bindsym Escape mode "default"
- }
- #Resize mode
- bindsym $super+r mode "resize"
- #i3 bar
- bar {
- font pango:SFNS Display 10, FontAwesome 10
- position bottom
- tray_output eDP1
- separator_symbol " "
- colors {
- background $bg-color
- # border background text
- focused_workspace $bg-color $bg-color $text-color
- inactive_workspace $inactive-bg-color $inactive-bg-color $inactive-text-color
- urgent_workspace $urgent-bg-color $urgent-bg-color $text-color
- }
- status_command i3blocks
- }
- #exec --no-startup-id $HOME/.config/i3/lemonbar.sh;
- #Lock screen
- set $Locker i3lock -i ~/.config/i3/lock.png
- bindsym $super+l exec --no-startup-id $Locker
- #System menu with mod-i
- set $supere_system (l) lock, (e) logout, (h) hibernate, (r) reboot, (Shift+s) shutdown
- mode "$supere_system" {
- bindsym l exec --no-startup-id $Locker, mode "default"
- bindsym e exec --no-startup-id "i3-msg exit", mode "default"
- bindsym h exec --no-startup-id $Locker && systemctl suspend, mode "default"
- bindsym r exec --no-startup-id systemctl reboot, mode "default"
- bindsym Shift+s exec --no-startup-id systemctl poweroff, mode "default"
- # back to normal: Enter or Escape
- bindsym Return mode "default"
- bindsym Escape mode "default"
- }
- bindsym $super+i mode "$supere_system"
- #MULTI-MONITOR
- set $supere_monitor VGA (v) HDMI (h)
- set $supere_positionVGA Left (j) Right (k)
- set $supere_positionHDMI Left (j) Right (k)
- set $supere_monitorKILL VGA(v) HDMI(h)
- mode "$supere_positionVGA" {
- bindsym j exec --no-startup-id xrandr --output VGA1 --auto --left-of eDP1, mode "default"
- bindsym k exec --no-startup-id xrandr --output VGA1 --auto --right-of eDP1, mode "default"
- bindsym Return mode "default"
- bindsym Escape mode "default"
- }
- mode "$supere_positionHDMI" {
- bindsym j exec --no-startup-id xrandr --output HDMI2 --auto --left-of eDP1, mode "default"
- bindsym k exec --no-startup-id xrandr --output HDMI2 --auto --right-of eDP1, mode "default"
- bindsym Return mode "default"
- bindsym Escape mode "default"
- }
- mode "$supere_monitorKILL" {
- bindsym v exec --no-startup-id xrandr --output VGA1 --off, mode "default"
- bindsym h exec --no-startup-id xrandr --output HDMI2 --off, mode "default"
- #default
- bindsym Return mode "default"
- bindsym Escape mode "default"
- }
- mode "$supere_monitor" {
- bindsym v mode "$supere_positionVGA"
- bindsym h mode "$supere_positionHDMI"
- #default
- bindsym Return mode "default"
- bindsym Escape mode "default"
- }
- bindsym $super+p mode "$supere_monitor"
- bindsym $super+Shift+p mode "$supere_monitorKILL"
- # Move Workspaceo
- bindsym mod1+l move workspace to output right
- bindsym mod1+h move workspace to output left
- # Toggle touchpad
- bindsym $super+t exec --no-startup-id $HOME/.config/i3/scripts/toggleTouchPad
- # SCreenshot
- bindsym Print exec scrot '%Y-%m-%d_%H-%M_$wx$h_screenshot.png' -e 'mv $f ~/Pictures/Screenshots/'
- bindsym Shift+Print --release exec scrot -s '%Y-%m-%d_%H-%M_select_$wx$h_screenshot.png' -e 'mv $f ~/Pictures/Screenshots/'
- #Start a terminal
- bindsym $super+Return exec "i3-msg 'workspace $WS3; exec terminator'"
- bindsym $super+Shift+Return exec terminator
- #Custom launcher application
- bindsym $super+w exec "firefox"
- bindsym $super+Shift+w exec "google-chrome"
- bindsym $super+Shift+n exec "terminator -x nmtui"
- bindsym $super+e exec nautilus
- bindsym mod1+v exec gvim
- #Assign
- assign [class="Firefox"] $WS1
- assign [class="google-chrome"] $WS2
- assign [class="IBM Notes"] $WS4
- assign [class="Sametime"] $WS8
- assign [class="Remmina"] $WS5
- assign [class="LibreOffice"] $WS6
- assign [class="Evince"] $WS6
- #Default Floating
- for_window [class="Nautilus"] floating enable sticky enable
- #Startup
- exec --no-startup-id $HOME/.config/i3/startup.sh
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement