# 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 pango:Noto Sans Regular 10 # set the mod key to the winkey: set $mod Mod4 ##################### # workspace layout: # ##################### # default i3 tiling mode: workspace_layout default ############################## # extra options for windows: # ############################## #border indicator on windows: default_border none for_window [class="^.*"] border pixel 2 # thin borders #hide_edge_borders both # Set inner/outer gaps gaps inner 15 gaps outer 5 # Use Mouse+$mod to drag floating windows to their wanted position floating_modifier $mod # 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 # switch to workspace with numlock numpad keys bindcode $mod+Mod2+87 workspace $ws1 bindcode $mod+Mod2+88 workspace $ws2 bindcode $mod+Mod2+89 workspace $ws3 bindcode $mod+Mod2+83 workspace $ws4 bindcode $mod+Mod2+84 workspace $ws5 bindcode $mod+Mod2+85 workspace $ws6 bindcode $mod+Mod2+79 workspace $ws7 bindcode $mod+Mod2+80 workspace $ws8 bindcode $mod+Mod2+81 workspace $ws9 bindcode $mod+Mod2+90 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 # move focused container to workspace with numpad keys bindcode $mod+Shift+87 move container to workspace $ws1 bindcode $mod+Shift+88 move container to workspace $ws2 bindcode $mod+Shift+89 move container to workspace $ws3 bindcode $mod+Shift+83 move container to workspace $ws4 bindcode $mod+Shift+84 move container to workspace $ws5 bindcode $mod+Shift+85 move container to workspace $ws6 bindcode $mod+Shift+79 move container to workspace $ws7 bindcode $mod+Shift+80 move container to workspace $ws8 bindcode $mod+Shift+81 move container to workspace $ws9 bindcode $mod+Shift+90 move container to workspace $ws10 # resize window (you can also use the mouse for that): mode "resize" { # 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+r mode "resize" ###################################### # keybindings for different actions: # ###################################### # start a terminal bindsym $mod+Return exec st # kill focused window bindsym $mod+q kill # exit-menu bindsym $mod+Shift+e exec rofi -show power-menu -modi power-menu:$HOME/.local/bin/powermenu # Lock the system # lock with a picture: #bindsym $mod+l exec i3lock -i ~/.config/i3/i3-lock-screen.png -p default|win -t # lock by blurring the screen: bindsym $mod+l exec ~/.config/i3/scripts/blur-lock # reload the configuration file bindsym $mod+Shift+c reload # restart i3 inplace (preserves your layout/session, can be used to update i3) bindsym $mod+Shift+r restart # change focus bindsym $mod+j focus left bindsym $mod+k focus down bindsym $mod+b focus up bindsym $mod+o 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+j move left bindsym $mod+Shift+k move down bindsym $mod+Shift+b move up bindsym $mod+Shift+o 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+h 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+g layout tabbed bindsym $mod+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 ## Multimedia Keys # volume bindsym XF86AudioRaiseVolume exec amixer -D pulse sset Master 5%+ && pkill -RTMIN+1 i3blocks bindsym XF86AudioLowerVolume exec amixer -D pulse sset Master 5%- && pkill -RTMIN+1 i3blocks bindsym XF86AudioMute exec amixer sset Master toggle && killall -USR1 i3blocks bindsym XF86AudioPlay exec playerctl play bindsym XF86AudioPause exec playerctl pause bindsym XF86AudioNext exec playerctl next bindsym XF86AudioPrev exec playerctl previous # Redirect sound to headphones bindsym $mod+p exec /usr/local/bin/switch-audio-port ## App shortcuts bindsym $mod+w exec /usr/bin/firefox bindsym $mod+Shift+s exec kazam ########################################## # configuration for workspace behaviour: # ########################################## # 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:base" set $ws2 "2:launchpad" set $ws3 "3:web" set $ws4 "4:other" set $ws5 "5:music" set $ws6 "6" set $ws7 "7" set $ws8 "8" set $ws9 "9" set $ws10 "10" # bind program to workspace and focus to them on startup: assign [class="st"] $ws2 assign [class="(?i)firefox"] $ws3 # then the current: ############################################# # autostart applications/services on login: # ############################################# exec --no-startup-id gnome-keyring-daemon # num lock activated exec --no-startup-id numlockx on # start conky: exec_always --no-startup-id conky # start blueberry app for managing bluetooth devices from tray: #exec --no-startup-id blueberry-tray # transparency exec --no-startup-id picom -b # networkmanager-applet exec --no-startup-id nm-applet # set wallpaper exec --no-startup-id nitrogen --restore # set powersavings for display: exec --no-startup-id xset s 480 dpms 600 600 600 # Desktop notifications exec --no-startup-id dbus-launch dunst --config ~/.config/dunst/dunstrc # set focus upon starting for_window [class="Firefox" instance="firefox"] focus for_window [title="Firefox"] focus # set floating (nontiling) for special apps for_window [class="Xsane" instance="xsane"] floating enable for_window [class="Pavucontrol" instance="pavucontrol"] floating enable for_window [class="Blueberry.py" instance="blueberry.py"] floating enable for_window [class="Bluetooth-sendto" instance="bluetooth-sendto"] floating enable for_window [class="Pamac-manager"] floating enable for_window [class="vlc"] sticky enable ###################################### # color settings for bar and windows # ###################################### # Define colors variables: set $rosewater #f5e0dc set $flamingo #f2cdcd set $pink #f5c2e7 set $mauve #cba6f7 set $red #f38ba8 set $maroon #eba0ac set $peach #fab387 set $green #a6e3a1 set $teal #94e2d5 set $sky #89dceb set $sapphire #74c7ec set $blue #89b4fa set $lavender #b4befe set $text #cdd6f4 set $subtext1 #bac2de set $subtext0 #a6adc8 set $overlay2 #9399b2 set $overlay1 #7f849c set $overlay0 #6c7086 set $surface2 #585b70 set $surface1 #45475a set $surface0 #313244 set $base #1e1e2e set $mantle #181825 set $crust #11111b # define colors for windows: # target title bg text indicator border client.focused $pink $base $text $rosewater $pink client.focused_inactive $mauve $base $text $rosewater $mauve client.unfocused $mauve $base $text $rosewater $mauve client.urgent $peach $base $peach $overlay0 $peach client.placeholder $overlay0 $base $text $overlay0 $overlay0 client.background $base ############################################ # bar settings (input comes from i3blocks) # ############################################ # Start i3bar to display a workspace bar bar { font pango:Fira Sans 16 status_command i3blocks -c ~/.config/i3/i3blocks.conf position bottom tray_output primary tray_padding 0 # When strip_workspace_numbers is set to yes, # any workspace that has a name of the form # “[n][:][NAME]” will display only the name. strip_workspace_numbers no colors { separator $base background $base statusline $white # border bg txt indicator focused_workspace $pink $base $text $rosewater active_workspace $pink $base $text $rosewater inactive_workspace $mauve $base $text $rosewater urgent_workspace $peach $base $peach $peach } } ##################################### # Application menu handled by rofi: # ##################################### ## rofi bindings fancy application menu d+d /F9 optional disabled) bindsym $mod+d exec rofi -modi drun -show drun bindsym $mod+shift+d exec rofimoji -f all ## rofi bindings for window menu ($mod+t /F10 optional disabled) bindsym $mod+x exec rofi -show window