234 lines
6.6 KiB
Plaintext
234 lines
6.6 KiB
Plaintext
# Catppuccin color scheme
|
|
set $rosewater #f5e0dc
|
|
set $flamingo #f2cdcd
|
|
set $pink #f5c2e7
|
|
set $mauve #cba6f7
|
|
set $red #f38ba8
|
|
set $maroon #eba0ac
|
|
set $peach #fab387
|
|
set $yellow #f9e2af
|
|
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
|
|
|
|
# Window colors
|
|
# target title bg text indicator border
|
|
client.focused $lavender $crust $text $rosewater $lavender
|
|
client.focused_inactive $overlay0 $base $text $rosewater $overlay0
|
|
client.unfocused $overlay0 $base $text $rosewater $overlay0
|
|
client.urgent $peach $base $peach $overlay0 $peach
|
|
client.placeholder $overlay0 $base $text $overlay0 $overlay0
|
|
client.background $base
|
|
|
|
# Set mod key (Mod4 = Windows key)
|
|
set $mod Mod4
|
|
|
|
# Window title settings
|
|
for_window [class="^.*"] title_format "%title"
|
|
title_align center
|
|
|
|
# General window behavior
|
|
# Set the default orientation for new windows (horizontal, vertical, or auto)
|
|
default_orientation auto
|
|
# Disable focus wrapping (moving focus past the edge of the screen)
|
|
focus_wrapping no
|
|
# Handle popups during fullscreen mode (leave fullscreen, display popup on current workspace, or ignore)
|
|
popup_during_fullscreen smart
|
|
# Show urgent workspace for 1000 milliseconds when a window requests attention
|
|
force_display_urgency_hint 1000 ms
|
|
# Determine how to handle focus when a window is activated (smart, urgent, focus, or none)
|
|
focus_on_window_activation urgent
|
|
# Enable quick switching between current and previous workspace
|
|
workspace_auto_back_and_forth yes
|
|
|
|
# Font for window titles and bar
|
|
font pango:FiraCode Nerd Font Mono Regular 10
|
|
|
|
# Border settings
|
|
default_border pixel 4
|
|
default_floating_border pixel 4
|
|
smart_borders on
|
|
|
|
# Gaps settings
|
|
gaps inner 8
|
|
gaps outer 0
|
|
smart_gaps on
|
|
|
|
hide_edge_borders none
|
|
|
|
# Floating windows
|
|
for_window [window_role="(?i)(?:pop-up|setup)"] floating enable
|
|
for_window [class="zoom"] floating enable
|
|
|
|
# Disable mouse warping
|
|
mouse_warping none
|
|
|
|
# Startup applications
|
|
exec_always --no-startup-id $HOME/.config/polybar/launch.sh
|
|
|
|
# XDG desktop portal
|
|
exec --no-startup-id /usr/lib/xdg-desktop-portal &
|
|
exec --no-startup-id /usr/lib/xdg-desktop-portal-gtk &
|
|
|
|
# Start XDG autostart .desktop files using dex
|
|
exec --no-startup-id dex --autostart --environment i3
|
|
|
|
# Use Mouse+$mod to drag floating windows
|
|
floating_modifier $mod
|
|
|
|
# Allow dragging tiling windows by holding down $mod and left mouse button
|
|
tiling_drag modifier titlebar
|
|
|
|
# Keybindings
|
|
|
|
# Start a terminal
|
|
bindsym $mod+Return exec kitty
|
|
|
|
# Start a brave browser
|
|
bindsym $mod+b exec brave
|
|
|
|
bindsym $mod+c exec cursor
|
|
|
|
# Kill focused window
|
|
bindsym $mod+a kill
|
|
|
|
# Start rofi (a program launcher)
|
|
bindsym $mod+d exec --no-startup-id rofi -show run
|
|
bindsym $mod+Tab exec --no-startup-id rofi -show window
|
|
|
|
# Change focus
|
|
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+Left move left
|
|
bindsym $mod+Shift+Down move down
|
|
bindsym $mod+Shift+Up move up
|
|
bindsym $mod+Shift+Right move right
|
|
|
|
# Split orientation
|
|
bindsym $mod+h split h
|
|
bindsym $mod+v split v
|
|
|
|
# Enter fullscreen mode for the focused container
|
|
bindsym $mod+f fullscreen toggle
|
|
|
|
# Change container layout
|
|
bindsym $mod+s layout stacking
|
|
bindsym $mod+z 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+q focus parent
|
|
|
|
# Workspace names
|
|
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"
|
|
|
|
# Assign workspaces to specific outputs
|
|
workspace $ws1 output DP-0
|
|
workspace $ws2 output DP-0
|
|
workspace $ws3 output DP-0
|
|
workspace $ws4 output DP-2
|
|
workspace $ws5 output DP-2
|
|
workspace $ws6 output DP-2
|
|
workspace $ws7 output DP-1-3
|
|
workspace $ws8 output DP-1-3
|
|
workspace $ws9 output DP-1-3
|
|
workspace $ws10 output DP-1-3
|
|
|
|
# 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
|
|
|
|
# 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
|
|
|
|
# Reload the configuration file
|
|
bindsym $mod+Shift+c reload
|
|
|
|
# Restart i3 inplace
|
|
bindsym $mod+Shift+r restart
|
|
|
|
# Exit i3
|
|
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'"
|
|
|
|
# Lock screen
|
|
bindsym $mod+l exec betterlockscreen -l dimblur --display 1 --off 10
|
|
|
|
# Resize window mode
|
|
bindsym $mod+r mode "resize"
|
|
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"
|
|
bindsym $mod+r mode "default"
|
|
}
|
|
|
|
# Screenshot
|
|
bindsym $mod+p --release exec scrot -s ~/Pictures/Screenshots/scrot_%F.png -e 'xclip -selection clipboard -t image/png -i $f'
|
|
|
|
# Assign applications to specific workspaces
|
|
assign [class="Brave-browser"] $ws4
|
|
assign [class="thunderbird"] $ws9
|
|
assign [class="Jellyfin Media Player"] $ws8
|
|
assign [class="ZapZap"] $ws7
|
|
|
|
# Autostart applications
|
|
exec --no-startup-id deadd-notification-center
|
|
exec --no-startup-id brave
|
|
exec --no-startup-id thunderbird
|
|
exec --no-startup-id jellyfinmediaplayer
|
|
exec --no-startup-id zapzap |