This commit is contained in:
DeveloperDurp 2025-05-05 05:34:33 -05:00
parent 6d25dbec6e
commit c084bf9082
8 changed files with 136 additions and 33 deletions

View file

@ -0,0 +1,26 @@
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

View file

@ -19,7 +19,6 @@ set $files nautilus
set $browser flatpak run app.zen_browser.zen
set $menu wofi
set $next_or_new swaymsg -r -t get_workspaces | jq -r --arg OUTPUT $(swaymsg -t get_outputs -r | jq -r '.[] | select(.focused == true) | .name') '(. | (max_by(.num) | .num)) as $max | [.[] | select(.output == $OUTPUT)] | (max_by(.num) | .num) as $maxOutput | (.[] | select(.focused == true) | .num) as $current | if $maxOutput > $current then "next_on_output" else $max + 1 end'
set $previous_or_first swaymsg -r -t get_workspaces | jq -r --arg OUTPUT $(swaymsg -t get_outputs -r | jq -r '.[] | select(.focused == true) | .name') '(. | (max_by(.num) | .num)) as $max | [.[] | select(.output == $OUTPUT)] | (min_by(.num) | .num) as $minOutput | (.[] | select(.focused == true) | .num) as $current | if $minOutput < $current then "prev_on_output" else $current end'
@ -38,11 +37,10 @@ exec_always "kanshi"
exec_always swayidle -w \
timeout 120 'swaylock -f' \
timeout 240 'swaymsg "output * dpms off"' \
timeout 300 'systemctl suspend' \
timeout 600 'systemctl suspend' \
resume 'swaymsg "output * dpms on"' \
before-sleep 'swaylock -f'
#timeout 1200 'systemctl suspend' \
### Input configuration
input "type:touchpad" {
dwt enabled
@ -57,6 +55,10 @@ input "type:pointer" {
pointer_accel 0
}
# Guesture
bindgesture swipe:right workspace next
bindgesture swipe:left workspace prev
# Notification Daemon
exec_always swaync
@ -95,7 +97,7 @@ bindsym $mod+Shift+i exec /opt/goland/bin/goland.sh
bindsym $mod+Shift+c reload
# Lock
bindsym $mod+Shift+Escape exec swaylock -f -c 000000
bindsym $mod+Shift+Escape exec swaylock -f
# Exit sway (logs you out of your Wayland session)
bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
@ -235,12 +237,17 @@ bindsym $mod+p exec grim -g "$(slurp)" - | wl-copy
bindsym $mod+shift+p exec grim - | wl-copy
# Border
client.focused "#ff77ff" "#ff77ff" "#ffffff" "#ff77ff"
include catppuccin-mocha
#client.focused "#ff78ff" "#ff77ff" "#ffffff" "#ff77ff"
default_border pixel 2
gaps inner 2
# Guesture
bindgesture swipe:right workspace next
bindgesture swipe:left workspace prev
# target title bg text indicator border
client.focused $lavender $base $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
include /etc/sway/config.d/*