2022-11-23 20:18:02 +00:00
|
|
|
# SWAY CONFIG
|
|
|
|
|
|
|
|
|
|
|
|
# Variables
|
|
|
|
|
|
|
|
set $mod Mod4
|
2022-12-01 02:37:51 +00:00
|
|
|
set $menu wofi --show drun -i -H 500 -W 450
|
2022-11-23 20:18:02 +00:00
|
|
|
set $term foot
|
|
|
|
|
2022-12-01 02:37:51 +00:00
|
|
|
set $WOBSOCK $XDG_RUNTIME_DIR/wob.sock
|
|
|
|
|
2022-11-23 20:18:02 +00:00
|
|
|
floating_modifier $mod normal
|
2022-11-29 13:45:17 +00:00
|
|
|
default_border pixel 2
|
2022-12-02 02:34:44 +00:00
|
|
|
client.focused #1c81e6 #1c81e6 #771cb7 #bf1541
|
|
|
|
client.unfocused #3436a7 #3436a7 #ffffff
|
|
|
|
client.focused_inactive #3436a7 #3436a7 #ffffff
|
2022-11-29 13:45:17 +00:00
|
|
|
gaps inner 10
|
2022-11-23 20:18:02 +00:00
|
|
|
gaps outer 0
|
|
|
|
font pango: Fira Code 12
|
|
|
|
|
|
|
|
# No gaps if there's only 1 window
|
|
|
|
smart_gaps on
|
|
|
|
|
|
|
|
# Hides the borders if theres only 1 window
|
|
|
|
hide_edge_borders smart
|
|
|
|
|
|
|
|
# Output configuration
|
|
|
|
output * {
|
|
|
|
bg ~/.config/sway/background.png fill
|
|
|
|
}
|
2022-11-24 00:39:35 +00:00
|
|
|
|
2022-12-25 03:27:56 +00:00
|
|
|
output LVDS-1 pos 0 1080
|
|
|
|
output DP-1 pos 0 0
|
|
|
|
|
2022-11-23 20:18:02 +00:00
|
|
|
# Input configuration
|
2022-11-24 00:39:35 +00:00
|
|
|
input type:touchpad {
|
|
|
|
dwt disabled
|
|
|
|
}
|
2022-11-23 20:18:02 +00:00
|
|
|
|
|
|
|
# Key bindings
|
|
|
|
bindsym $mod+Return exec $term
|
|
|
|
bindsym $mod+Shift+Return exec $term -a float
|
|
|
|
bindsym $mod+q kill
|
|
|
|
bindsym $mod+F4 wkill
|
|
|
|
bindsym $mod+d exec $menu
|
|
|
|
bindsym $mod+Shift+c reload
|
|
|
|
bindsym mod1+shift+w exec setbg -s
|
2022-12-01 02:37:51 +00:00
|
|
|
bindsym $mod+m exec pulsemixer --toggle-mute
|
2022-11-23 20:18:02 +00:00
|
|
|
bindsym $mod+Shift+l exec ~/.local/bin/lock
|
|
|
|
bindsym $mod+Shift+q exec ~/.local/bin/logout-wofi
|
|
|
|
|
|
|
|
# Moving around:
|
|
|
|
|
|
|
|
# Move your focus around
|
|
|
|
bindsym $mod+Left focus left
|
|
|
|
bindsym $mod+Down focus down
|
|
|
|
bindsym $mod+Up focus up
|
|
|
|
bindsym $mod+Right focus right
|
|
|
|
|
|
|
|
# Move the focused window with the same, but add Shift
|
|
|
|
bindsym $mod+Shift+Left move left
|
|
|
|
bindsym $mod+Shift+Down move down
|
|
|
|
bindsym $mod+Shift+Up move up
|
|
|
|
bindsym $mod+Shift+Right move right
|
|
|
|
|
|
|
|
#resize
|
2022-11-28 19:41:14 +00:00
|
|
|
bindsym $mod+mod1+Left exec swaymsg resize shrink right 10px || swaymsg resize grow left 10px
|
|
|
|
bindsym $mod+mod1+Down exec swaymsg resize grow down 10px || swaymsg resize shrink up 10px
|
|
|
|
bindsym $mod+mod1+Up exec swaymsg resize shrink down 10px || swaymsg resize grow up 10px
|
|
|
|
bindsym $mod+mod1+Right exec swaymsg resize grow right 10px || swaymsg resize shrink left 10px
|
2022-11-23 20:18:02 +00:00
|
|
|
|
|
|
|
# Workspaces:
|
|
|
|
|
|
|
|
# Switch to workspace
|
|
|
|
bindsym $mod+1 workspace number 1
|
|
|
|
bindsym $mod+2 workspace number 2
|
|
|
|
bindsym $mod+3 workspace number 3
|
|
|
|
bindsym $mod+4 workspace number 4
|
|
|
|
bindsym $mod+5 workspace number 5
|
|
|
|
bindsym $mod+6 workspace number 6
|
|
|
|
bindsym $mod+7 workspace number 7
|
|
|
|
bindsym $mod+8 workspace number 8
|
|
|
|
bindsym $mod+9 workspace number 9
|
|
|
|
bindsym $mod+0 workspace number 10
|
|
|
|
# Move focused container to workspace
|
|
|
|
bindsym $mod+Shift+1 move container to workspace number 1
|
|
|
|
bindsym $mod+Shift+2 move container to workspace number 2
|
|
|
|
bindsym $mod+Shift+3 move container to workspace number 3
|
|
|
|
bindsym $mod+Shift+4 move container to workspace number 4
|
|
|
|
bindsym $mod+Shift+5 move container to workspace number 5
|
|
|
|
bindsym $mod+Shift+6 move container to workspace number 6
|
|
|
|
bindsym $mod+Shift+7 move container to workspace number 7
|
|
|
|
bindsym $mod+Shift+8 move container to workspace number 8
|
|
|
|
bindsym $mod+Shift+9 move container to workspace number 9
|
|
|
|
bindsym $mod+Shift+0 move container to workspace number 10
|
|
|
|
|
|
|
|
# Layout stuff:
|
|
|
|
bindsym $mod+b splith
|
|
|
|
bindsym $mod+v splitv
|
|
|
|
|
|
|
|
# Switch the current container between different layout styles
|
|
|
|
bindsym $mod+t layout toggle split
|
|
|
|
bindsym $mod+Shift+t layout tabbed
|
|
|
|
bindsym $mod+Shift+s layout stacking
|
|
|
|
|
|
|
|
# Make the current focus fullscreen
|
|
|
|
bindsym $mod+f fullscreen
|
|
|
|
|
|
|
|
# Toggle the current focus between tiling and floating mode
|
|
|
|
bindsym $mod+space floating toggle
|
|
|
|
|
|
|
|
# Swap focus between the tiling area and the floating area
|
|
|
|
bindsym $mod+Shift+space focus mode_toggle
|
|
|
|
|
|
|
|
# Move focus to the parent container
|
|
|
|
bindsym $mod+a focus parent
|
|
|
|
|
|
|
|
# Sticky
|
|
|
|
bindsym $mod+s sticky toggle
|
|
|
|
# Scratchpad:
|
|
|
|
|
|
|
|
bindsym $mod+bracketleft move scratchpad
|
2022-12-01 02:37:51 +00:00
|
|
|
bindsym $mod+bracketright scratchpad show
|
2022-11-23 20:18:02 +00:00
|
|
|
|
2022-11-24 16:36:52 +00:00
|
|
|
# Tor Browser
|
|
|
|
bindsym $mod+w exec ~/.local/bin/torbrowser
|
|
|
|
|
2022-11-23 20:18:02 +00:00
|
|
|
|
|
|
|
# Resizing containers:
|
|
|
|
|
|
|
|
mode "resize" {
|
|
|
|
bindsym Left resize shrink width 10px
|
|
|
|
bindsym Down resize grow height 10px
|
|
|
|
bindsym Up resize shrink height 10px
|
|
|
|
bindsym Right resize grow width 10px
|
|
|
|
|
|
|
|
# Return to default mode
|
|
|
|
bindsym Return mode "default"
|
|
|
|
bindsym Escape mode "default"
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
# Media Keys
|
2022-11-29 13:45:17 +00:00
|
|
|
bindsym XF86AudioLowerVolume exec pamixer -d 5 && pamixer --get-volume > $WOBSOCK
|
|
|
|
bindsym XF86AudioRaiseVolume exec pamixer -i 5 && pamixer --get-volume > $WOBSOCK
|
2022-11-23 20:18:02 +00:00
|
|
|
|
|
|
|
bindsym XF86MonBrightnessUp exec brightnessctl s +5%
|
|
|
|
bindsym XF86MonBrightnessDown exec brightnessctl s 5%-
|
|
|
|
|
2022-11-25 04:15:31 +00:00
|
|
|
bindsym XF86AudioStop exec playerctl stop
|
|
|
|
bindsym XF86AudioPlay exec playerctl play-pause
|
2022-12-01 02:37:51 +00:00
|
|
|
bindsym XF86AudioNext exec playerctl next
|
|
|
|
bindsym XF86AudioPrev exec playerctl previous
|
2022-11-23 20:18:02 +00:00
|
|
|
|
2022-11-25 02:21:50 +00:00
|
|
|
bindsym XF86Launch1 exec ~/.local/bin/fss
|
2022-11-24 00:22:01 +00:00
|
|
|
bindsym XF86ScreenSaver exec ~/.local/bin/lock
|
|
|
|
bindsym Print exec ~/.local/bin/screenshot -w
|
|
|
|
bindsym Pause exec ~/.local/bin/logout-wofi
|
2022-11-23 20:18:02 +00:00
|
|
|
|
|
|
|
# Rules
|
|
|
|
for_window [app_id="float"] floating enable;
|
|
|
|
|
2022-12-01 02:37:51 +00:00
|
|
|
exec autotiling
|
2022-11-23 20:18:02 +00:00
|
|
|
exec swayidle -w timeout 240 '~/.local/bin/lock' before-sleep '~/.local/bin/lock'
|
2022-11-29 13:45:17 +00:00
|
|
|
exec rm -f $WOBSOCK && mkfifo $WOBSOCK && tail -f $WOBSOCK | wob
|
2022-12-01 02:37:51 +00:00
|
|
|
exec i2pd
|
2022-11-27 13:08:04 +00:00
|
|
|
bindswitch --reload --locked lid:on exec sudo ~/.local/bin/__suspend
|
2022-11-23 20:18:02 +00:00
|
|
|
|
|
|
|
bar {
|
|
|
|
swaybar_command waybar
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
include /etc/sway/config.d/*
|