# i3 config file (v4) # # Please see https://i3wm.org/docs/userguide.html for a complete reference! # # This config file uses keycodes (bindsym) and was written for the QWERTY # layout. # # To get a config file with the same key positions, but for your current # layout, use the i3-config-wizard # # Font for window titles. Will also be used by the bar unless a different font # is used in the bar {} block below. font pango:DejaVu Sans Mono 11 default_border pixel 1 for_window [class=".*"] border pixel 0 # 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 # NetworkManager is the most popular way to manage wireless networks on Linux, # and nm-applet is a desktop environment-independent system tray GUI for it. #exec --no-startup-id "dunst" # in case multiple daemons are installed #exec --no-startup-id "nm-applet" #exec --no-startup-id "pasystray" #exec --no-startup-id "blueman-applet" #exec --no-startup-id "udiskie --tray --notify --automount" # Services exec --no-startup-id "mpd /home/lanxu/.config/mpd/mpd.conf" # Music Player Daemon exec --no-startup-id "xscreensaver -no-splash" # Screensaver exec --no-startup-id "./Scripts/xscreensaverstopper.sh" # Screensaver inhibitor exec --no-startup-id "compton -b" # Compositor exec --no-startup-id "nitrogen --restore" # Wallpaper exec --no-startup-id "udiskie --notify --automount" # Automounter # dunst is used for notifications # Background software exec --no-startup-id "blueman-manager" # Bluetooth exec --no-startup-id "cantata" exec --no-startup-id "boincmgr" exec --no-startup-id "nextcloud" exec --no-startup-id "pavucontrol" exec --no-startup-id "keepassxc" # Password manager # Applications exec --no-startup-id "telegram-desktop" # Set manual layout for tray workspace exec --no-startup-id "i3-msg 'workspace 10:tray; append_layout /home/lanxu/.config/i3/tray.json'" set $refresh_i3status killall -SIGUSR1 i3status bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5% && $refresh_i3status bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -5% && $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 bindsym XF86AudioStop exec --no-startup-id mpc stop bindsym XF86AudioPlay exec --no-startup-id mpc play bindsym XF86AudioPause exec --no-startup-id mpc pause bindsym XF86AudioNext exec --no-startup-id mpc next bindsym XF86AudioPrev exec --no-startup-id mpc prev # Print screen bindsym Print exec --no-startup-id flameshot gui # use these keys for focus, movement, and resize directions when reaching for # the arrows is not convenient set $up l set $down k set $left j set $right semicolon # use Mouse+Mod4 to drag floating windows to their wanted position floating_modifier Mod4 # start a terminal bindsym Mod4+Return exec i3-sensible-terminal # kill focused window bindsym Mod4+Shift+q kill # start dmenu (a program launcher) bindsym Mod4+d exec --no-startup-id "rofi -theme Arc -modi power:'/home/lanxu/.config/rofi/scripts/powermenu.sh',combi -combi-modi 'window,power,run,ssh' -show combi" bindsym Mod4+F12 exec --no-startup-id "xscreensaver-command -lock" # 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 Mod4+d exec --no-startup-id i3-dmenu-desktop # change focus bindsym Mod4+$left focus left bindsym Mod4+$down focus down bindsym Mod4+$up focus up bindsym Mod4+$right focus right # alternatively, you can use the cursor keys: bindsym Mod4+Left focus left bindsym Mod4+Down focus down bindsym Mod4+Up focus up bindsym Mod4+Right focus right # move focused window bindsym Mod4+Shift+$left move left bindsym Mod4+Shift+$down move down bindsym Mod4+Shift+$up move up bindsym Mod4+Shift+$right move right # alternatively, you can use the cursor keys: bindsym Mod4+Shift+Left move left bindsym Mod4+Shift+Down move down bindsym Mod4+Shift+Up move up bindsym Mod4+Shift+Right move right # split in horizontal orientation bindsym Mod4+h split h # split in vertical orientation bindsym Mod4+v split v # enter fullscreen mode for the focused container bindsym Mod4+f fullscreen toggle # change container layout (stacked, tabbed, toggle split) bindsym Mod4+s layout stacking bindsym Mod4+w layout tabbed bindsym Mod4+e layout toggle split # toggle tiling / floating bindsym Mod4+Shift+space floating toggle # change focus between tiling / floating windows bindsym Mod4+space focus mode_toggle # focus the parent container bindsym Mod4+a focus parent # focus the child container #bindsym Mod4+d focus child # move the currently focused window to the scratchpad bindsym Mod4+Shift+minus move scratchpad # Show the next scratchpad window or hide the focused scratchpad window. # If there are multiple scratchpad windows, this command cycles through them. bindsym Mod4+minus scratchpad show # 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:term" set $ws2 "2:irc" set $ws3 "3:net" set $ws4 "4:gfx" set $ws5 "5:steam" set $ws6 "6:lutris" set $ws7 "7" set $ws8 "8" set $ws9 "9:pw" set $ws10 "10:tray" # switch to workspace bindsym Mod4+1 workspace $ws1 bindsym Mod4+2 workspace $ws2 bindsym Mod4+3 workspace $ws3 bindsym Mod4+4 workspace $ws4 bindsym Mod4+5 workspace $ws5 bindsym Mod4+6 workspace $ws6 bindsym Mod4+7 workspace $ws7 bindsym Mod4+8 workspace $ws8 bindsym Mod4+9 workspace $ws9 bindsym Mod4+0 workspace $ws10 # move focused container to workspace bindsym Mod4+Shift+1 move container to workspace $ws1 bindsym Mod4+Shift+2 move container to workspace $ws2 bindsym Mod4+Shift+3 move container to workspace $ws3 bindsym Mod4+Shift+4 move container to workspace $ws4 bindsym Mod4+Shift+5 move container to workspace $ws5 bindsym Mod4+Shift+6 move container to workspace $ws6 bindsym Mod4+Shift+7 move container to workspace $ws7 bindsym Mod4+Shift+8 move container to workspace $ws8 bindsym Mod4+Shift+9 move container to workspace $ws9 bindsym Mod4+Shift+0 move container to workspace $ws10 # reload the configuration file bindsym Mod4+Shift+c reload # restart i3 inplace (preserves your layout/session, can be used to upgrade i3) bindsym Mod4+Shift+r restart # exit i3 (logs you out of your X session) bindsym Mod4+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 $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 # 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 Mod4+r bindsym Return mode "default" bindsym Escape mode "default" bindsym Mod4+r mode "default" } bindsym Mod4+r mode "resize" bindsym Mod4+o move workspace to output left ####################################################################### # automatically start i3-config-wizard to offer the user to create a # keysym-based config which used their favorite modifier (alt or windows) # # in ~/.config/i3/config (or $XDG_CONFIG_HOME/i3/config if set) or # ~/.i3/config. # # Please remove the following exec line: ####################################################################### #exec i3-config-wizard for_window [class="Arandr"] floating enable for_window [title="^Telegram$"] floating enable, move scratchpad for_window [class="itch"] floating enable # for_window [class="Wine"] floating enable for_window [class="mpv"] floating enable, move position center for_window [class="vlc"] floating enable for_window [class="Mumble"] floating enable, move position center for_window [class="Sxiv"] floating enable for_window [class="Lutris"] move container to workspace $ws6 for_window [class="Gimp"] move container to workspace $ws4 for_window [class="Blender"] move container to workspace $ws4 for_window [class="krita"] move container to workspace $ws4 for_window [class="firefox"] move container to workspace $ws3 # services for_window [class="Nextcloud"] floating disable, move container to workspace $ws10 for_window [class="Blueman-manager"] move container to workspace $ws10 for_window [class="Pavucontrol"] move container to workspace $ws10e for_window [class="cantata"] floating disable, move container to workspace $ws10 for_window [class="boincmgr"] floating disable, move container to workspace $ws10 for_window [class="KeePassXC"] move container to workspace $ws9 # Games for_window [class="kfgame.exe"] floating enable for_window [class="Wine"] floating enable # Steam # https://github.com/ValveSoftware/steam-for-linux/issues/1040 for_window [class="^Steam$" title="^Friends$"] floating enable for_window [class="^Steam$" title="Steam - News"] floating enable for_window [class="^Steam$" title=".* - Chat"] floating enable for_window [class="^Steam$" title="^Settings$"] floating enable for_window [class="^Steam$" title=".* - event started"] floating enable for_window [class="^Steam$" title=".* CD key"] floating enable for_window [class="^Steam$" title="^Steam - Self Updater$"] floating enable for_window [class="^Steam$" title="^Screenshot Uploader$"] floating enable for_window [class="^Steam$" title="^Steam Guard - Computer Authorization Required$"] floating enable for_window [title="^Steam Keyboard$"] floating enable for_window [class="^Steam$"] move container to workspace $ws5 # for_window [title="^Friends List$"] move container to workspace $ws5, resize set width 400px mouse_warping none # Special keysyms bindsym Mod4+t [class="TelegramDesktop"] scratchpad show # gaps smart_borders on smart_gaps on gaps outer 0 gaps inner 10 # https://github.com/khamer/base16-i3/tree/master/colors ## Base16 Solarized Light # Author: Ethan Schoonover (modified by aramisgithub) # # You can use these variables anywhere in the i3 configuration file. #set $base00 #fdf6e3 #set $base01 #eee8d5 #set $base02 #93a1a1 #set $base03 #839496 #set $base04 #657b83 #set $base05 #586e75 #set $base06 #073642 #set $base07 #002b36 #set $base08 #dc322f #set $base09 #cb4b16 #set $base0A #b58900 #set $base0B #859900 #set $base0C #2aa198 #set $base0D #268bd2 #set $base0E #6c71c4 #set $base0F #d33682 ## Base16 Solarized Dark # Author: Ethan Schoonover (modified by aramisgithub) # # You can use these variables anywhere in the i3 configuration file. set $base00 #002b36 set $base01 #073642 set $base02 #586e75 set $base03 #657b83 set $base04 #839496 set $base05 #93a1a1 set $base06 #eee8d5 set $base07 #fdf6e3 set $base08 #dc322f set $base09 #cb4b16 set $base0A #b58900 set $base0B #859900 set $base0C #2aa198 set $base0D #268bd2 set $base0E #6c71c4 set $base0F #d33682 # Basic bar configuration using the Base16 variables. bar { font pango: DejaVu Sans Mono Bold 11 mode dock status_command py3status position top i3bar_command i3bar -t tray_output none separator_symbol ❰ colors { background $base00 separator $base03 statusline $base04 # State Border BG Text focused_workspace $base05 $base0D $base00 active_workspace $base05 $base03 $base00 inactive_workspace $base03 $base01 $base05 urgent_workspace $base08 $base08 $base00 binding_mode $base00 $base0A $base00 } } # Basic color configuration using the Base16 variables for windows and borders. # Property Name Border BG Text Indicator Child Border client.focused $base05 $base0D $base00 $base0D $base0C client.focused_inactive $base01 $base01 $base05 $base03 $base01 client.unfocused $base01 $base00 $base05 $base01 $base01 client.urgent $base08 $base08 $base00 $base08 $base08 client.placeholder $base00 $base00 $base05 $base00 $base00 client.background $base07