2023-12-14 20:07:58 +00:00
|
|
|
|
2023-03-07 18:15:21 +00:00
|
|
|
# Copy this to ~/.config/sway/config and edit it to your liking.
|
|
|
|
#
|
|
|
|
# Read `man 5 sway` for a complete reference.
|
|
|
|
|
|
|
|
set $mod Mod4
|
|
|
|
|
|
|
|
set $left h
|
|
|
|
set $down j
|
|
|
|
set $up k
|
|
|
|
set $right l
|
|
|
|
|
|
|
|
set $term alacritty
|
|
|
|
set $browser librewolf
|
|
|
|
# Note: pass the final command to swaymsg so that the resulting window can be opened
|
2024-01-25 01:32:03 +00:00
|
|
|
set $menu wofi -IS drun
|
2023-03-07 18:15:21 +00:00
|
|
|
|
2024-01-25 01:32:03 +00:00
|
|
|
exec --no-startup-id wmname LG3D
|
2023-03-07 18:15:21 +00:00
|
|
|
exec --no-startup-id ydotoold
|
|
|
|
exec --no-startup-id dunst -b
|
|
|
|
exec --no-startup-id rand-wallpaper
|
|
|
|
exec --no-startup-id webcord.sh
|
|
|
|
exec --no-startup-id autotiling
|
|
|
|
exec --no-startup-id nm-applet --indicator
|
2023-05-21 17:45:39 +00:00
|
|
|
exec --no-startup-id element.sh
|
2023-09-21 15:47:51 +00:00
|
|
|
exec --no-startup-id thunderbird
|
2024-01-25 01:32:03 +00:00
|
|
|
exec --no-startup-id qbittorrent
|
2023-03-07 18:15:21 +00:00
|
|
|
|
2023-09-21 15:47:51 +00:00
|
|
|
assign [app_id="thunderbird"] workspace number 9
|
|
|
|
assign [app_id="Element"] workspace number 9
|
2023-03-07 18:15:21 +00:00
|
|
|
|
2023-12-14 20:07:58 +00:00
|
|
|
workspace 1 output DP-3
|
2023-03-07 18:15:21 +00:00
|
|
|
workspace 9 output eDP-1
|
|
|
|
|
|
|
|
for_window [app_id="scratch_term"] move scratchpad, resize set 960 640
|
|
|
|
for_window [app_id="scratch_calc"] move scratchpad, resize set 960 640
|
|
|
|
for_window [app_id="scratch_cmus"] move scratchpad, resize set 960 640
|
|
|
|
for_window [app_id="scratch_htop"] move scratchpad, resize set 960 640
|
|
|
|
|
2023-09-21 15:47:51 +00:00
|
|
|
for_window [app_id="wofi"] opacity 0.8
|
|
|
|
|
2023-03-07 18:15:21 +00:00
|
|
|
# gnome time
|
|
|
|
set $gnome-schema org.gnome.desktop.interface
|
|
|
|
exec_always {
|
|
|
|
gsettings set $gnome-schema gtk-theme 'Adwaita-dark'
|
|
|
|
gsettings set $gnome-schema icon-theme 'Adwaita'
|
|
|
|
gsettings set $gnome-schema font-name 'Cantarell 11'
|
|
|
|
gsettings set org.gnome.desktop.default-applications.terminal exec $term
|
|
|
|
}
|
|
|
|
|
|
|
|
# swaymsg -t get_outputs
|
2023-05-21 17:45:39 +00:00
|
|
|
output eDP-1 resolution 3840x2400 position 2133,0
|
2023-12-14 20:07:58 +00:00
|
|
|
output DP-3 resolution 2560x1440 position 0,0 scale 1.2
|
2023-05-21 17:45:39 +00:00
|
|
|
#output eDP-1 resolution 3840x2400 position 1920,0
|
2023-12-14 20:07:58 +00:00
|
|
|
#output DP-3 resolution 1920x1080 position 0,0
|
2023-03-07 18:15:21 +00:00
|
|
|
|
|
|
|
input "type:keyboard" {
|
2023-09-21 15:47:51 +00:00
|
|
|
xkb_layout uscustom
|
2023-03-07 18:15:21 +00:00
|
|
|
xkb_options compose:menu,caps:escape
|
|
|
|
}
|
|
|
|
|
2023-12-14 20:07:58 +00:00
|
|
|
input "type:touchpad" {
|
2024-01-25 01:32:03 +00:00
|
|
|
#events disabled
|
2023-12-14 20:07:58 +00:00
|
|
|
tap enable
|
|
|
|
}
|
|
|
|
|
2023-03-07 18:15:21 +00:00
|
|
|
# Idle configuration
|
|
|
|
exec swayidle -w \
|
2024-01-25 01:32:03 +00:00
|
|
|
timeout 300 'swaylock -f' \
|
2023-03-07 18:15:21 +00:00
|
|
|
timeout 300 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
|
2024-01-25 01:32:03 +00:00
|
|
|
before-sleep 'swaylock -f'
|
2023-03-07 18:15:21 +00:00
|
|
|
|
|
|
|
floating_modifier $mod normal
|
2023-05-21 17:45:39 +00:00
|
|
|
gaps inner 14
|
2023-03-07 18:15:21 +00:00
|
|
|
default_border pixel 2
|
|
|
|
default_floating_border pixel 2
|
|
|
|
|
|
|
|
# Key bindings
|
|
|
|
bindsym $mod+Shift+Escape exit
|
|
|
|
bindsym Print exec screenshot
|
|
|
|
bindsym Shift+Print exec slurp -p | grim -g - - | convert - txt:- | tail -n 1 | awk '{print $3}' | wl-copy
|
|
|
|
bindsym $mod+Return exec $term
|
|
|
|
bindsym $mod+space focus mode_toggle
|
|
|
|
|
|
|
|
bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
|
|
|
|
bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
|
|
|
|
bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
|
|
|
|
bindsym XF86AudioMicMute exec pactl set-source-mute @DEFAULT_SOURCE@ toggle
|
|
|
|
bindsym XF86MonBrightnessDown exec brightnessctl set 5%-
|
|
|
|
bindsym XF86MonBrightnessUp exec brightnessctl set 5%+
|
|
|
|
bindsym XF86AudioPlay exec playerctl play-pause
|
|
|
|
bindsym XF86AudioNext exec playerctl next
|
|
|
|
bindsym XF86AudioPrev exec playerctl previous
|
|
|
|
bindsym XF86Search exec $menu
|
|
|
|
|
|
|
|
bindsym $mod+F5 reload
|
|
|
|
bindsym $mod+F2 exec mpv ~/videos/soviet.webm
|
|
|
|
|
|
|
|
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+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
|
|
|
|
|
|
|
|
# Kill focused window
|
|
|
|
bindsym $mod+q kill
|
|
|
|
bindsym $mod+Shift+q exec xkill
|
|
|
|
|
|
|
|
bindsym $mod+w exec $browser
|
|
|
|
|
|
|
|
bindsym $mod+e move workspace to output left
|
|
|
|
bindsym $mod+r move workspace to output right
|
|
|
|
bindsym $mod+t floating toggle
|
|
|
|
|
|
|
|
bindsym $mod+y exec ~/.config/sway/scratchpads.sh scratch_term zsh
|
|
|
|
bindsym $mod+u exec dmenu_specialchars
|
|
|
|
bindsym $mod+Shift+u exec dmenu_unicode
|
|
|
|
bindsym $mod+i exec ~/.config/sway/scratchpads.sh scratch_calc ~/.cargo/bin/complexpr
|
|
|
|
bindsym $mod+o exec ~/.config/sway/scratchpads.sh scratch_cmus cmus
|
|
|
|
bindsym $mod+p exec ~/.config/sway/scratchpads.sh scratch_htop htop
|
|
|
|
|
|
|
|
# Move focus to the parent container
|
|
|
|
bindsym $mod+a focus parent
|
|
|
|
bindsym $mod+s exec prismlauncher
|
|
|
|
|
|
|
|
# Start your launcher
|
|
|
|
bindsym $mod+d exec $menu
|
|
|
|
bindsym $mod+Shift+d exec dmenu_editconfig
|
|
|
|
bindsym $mod+f fullscreen
|
|
|
|
bindsym $mod+g exec vscodium --enable-features=UseOzonePlatform --ozone-platform=wayland
|
|
|
|
|
|
|
|
bindsym $mod+h focus left
|
|
|
|
bindsym $mod+Shift+h move left
|
|
|
|
bindsym $mod+Ctrl+h resize shrink width 10px
|
|
|
|
|
|
|
|
bindsym $mod+j focus down
|
|
|
|
bindsym $mod+Shift+j move down
|
|
|
|
bindsym $mod+Ctrl+j resize grow height 10px
|
|
|
|
|
|
|
|
bindsym $mod+k focus up
|
|
|
|
bindsym $mod+Shift+k move up
|
|
|
|
bindsym $mod+Ctrl+k resize shrink height 10px
|
|
|
|
|
|
|
|
bindsym $mod+l focus right
|
|
|
|
bindsym $mod+Shift+l move right
|
|
|
|
bindsym $mod+Ctrl+l resize grow width 10px
|
|
|
|
|
|
|
|
bindsym $mod+c exec dmenu_kblayout
|
2023-09-21 15:47:51 +00:00
|
|
|
bindsym $mod+Shift+c layout tabbed
|
2023-03-07 18:15:21 +00:00
|
|
|
bindsym $mod+v splitv
|
2023-09-21 15:47:51 +00:00
|
|
|
bindsym $mod+Shift+v layout splitv
|
|
|
|
bindsym $mod+b splith
|
|
|
|
bindsym $mod+Shift+b layout splith
|
2023-03-07 18:15:21 +00:00
|
|
|
|
|
|
|
bindsym $mod+n exec pkill -USR1 gammastep || gammastep -O 4000
|
|
|
|
bindsym $mod+Shift+n exec pkill -USR1 gammastep || gammastep -O 2500
|
|
|
|
|
|
|
|
bindgesture swipe:right workspace next
|
|
|
|
bindgesture swipe:left workspace prev
|
|
|
|
|
|
|
|
|
2023-09-21 15:47:51 +00:00
|
|
|
# class border backgr. text indicator child_border
|
|
|
|
client.background #14171d
|
|
|
|
client.focused #4d4754 #14171d #ffffff #ada0a8 #4d4754
|
|
|
|
client.focused_inactive #4d4754 #14171d #ffffff #4d4754 #14171d
|
|
|
|
client.focused_tab_title #4d4754 #14171d #ffffff
|
|
|
|
client.unfocused #14171d #14171d #ffffff #4d4754 #14171d
|
|
|
|
client.urgent #cc5c5c #a63a3a #ffffff #cc5c5c #a63a3a
|
2023-03-07 18:15:21 +00:00
|
|
|
|
|
|
|
# Status Bar:
|
2023-05-21 17:45:39 +00:00
|
|
|
bar swaybar_command waybar
|
2023-03-07 18:15:21 +00:00
|
|
|
|
2023-03-16 00:28:53 +00:00
|
|
|
# SwayFX
|
2023-12-14 20:07:58 +00:00
|
|
|
shadows enable
|
2023-05-21 17:45:39 +00:00
|
|
|
shadow_blur_radius 15
|
|
|
|
shadow_color #14171dff
|
|
|
|
blur enable
|
2023-09-21 15:47:51 +00:00
|
|
|
blur_radius 4
|
|
|
|
blur_passes 2
|
|
|
|
layer_effects "waybar" blur enable; shadows enable
|
|
|
|
layer_effects "wofi" blur enable; shadows enable
|
2023-03-16 00:28:53 +00:00
|
|
|
|
2024-01-25 01:32:03 +00:00
|
|
|
|
2023-03-07 18:15:21 +00:00
|
|
|
include /etc/sway/config.d/*
|