waybar, swaylock, swayfx, and nvim plugins

This commit is contained in:
2025-09-01 12:10:45 -07:00
parent d38aa180bb
commit 9fbf3bc8c1
9 changed files with 77 additions and 15 deletions

View File

@@ -4,7 +4,8 @@ font 'JetBrainsMono NF' 9
#set $mod Mod1
set $mod Mod4
set $term kitty -1
#set $term kitty -1
set $term kitty
#set $term ghostty
set $menu wofi -S drun -GI
@@ -21,8 +22,11 @@ include ~/.config/sway/config.d/*
### Output configuration
# You can get the names of your outputs by running: swaymsg -t get_outputs
# https://gitlab.com/w0lff/shikane for multitple display handling
exec --no-startup-id nohup shikane -c /home/jozamudi/.config/shikane/config.toml > /tmp/nohup-shikane.log 2>&1
exec_always shikane -o
output * bg /home/jozamudi/Downloads/samurai-cyberpunk-3840x2160-12877.png fill
output eDP-1 scale 1.8
#output 'BNQ BenQ PD3200U S2N01233019' scale 1.5
exec shikane -c /home/jozamudi/.config/shikane/config.toml
bindswitch --reload --locked lid:on output $laptop disable
bindswitch --reload --locked lid:off output $laptop enable
@@ -31,8 +35,9 @@ exec_always --no-startup-id '/home/jozamudi/.config/sway/scripts/clamshell-mode.
### Idle configuration
exec swayidle -w \
timeout 300 'swaylock -f -c 000000' \
timeout 600 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \
before-sleep 'playerctl pause; swaylock -f -c 000000'
timeout 600 'swaymsg "output * power off"' \
resume 'swaymsg "output * power on"' \
before-sleep 'playerctl pause; swaymsg output $laptop power on; swaylock -f -c 000000'
seat seat0 xcursor_theme Adwaita 25
@@ -50,5 +55,5 @@ exec dex -a
default_border pixel 2
default_floating_border pixel 2
exec systemctl --user import-environment XDG_SESSION_TYPE XDG_CURRENT_DESKTOP
exec dbus-update-activation-environment --systemd WAYLAND_DISPLAY DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP=sway XDG_SESSION_DESKTOP=sway

View File

@@ -117,12 +117,13 @@ bindsym $mod+Shift+s sticky toggle
# Toggle laptop display
bindsym $mod+m output $laptop toggle
bindsym $mod+shift+m exec bash -c 'playerctl pause; swaymsg output $laptop power on; swaylock -f -c 000000'
# play/pause media player
bindsym XF86Favorites exec playerctl play-pause
bindsym $mod+bracketleft exec mpc prev
bindsym $mod+bracketright exec mpc next
bindsym $mod+backslash exec mpc toggle
#bindsym XF86Favorites exec playerctl play-pause
bindsym $mod+bracketleft exec playerctl previous
bindsym $mod+bracketright exec playerctl next
bindsym $mod+backslash exec playerctl play-pause
bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5% \
@@ -136,10 +137,10 @@ 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 XF86MonBrightnessDown exec brightnessctl set 2%-
bindsym XF86MonBrightnessUp exec brightnessctl set 2%+
bindsym $mod+shift+p exec slurp | grim -g - - | tee ~/Pictures/$(date +%s).png | wl-copy
bindsym $mod+shift+p exec slurp | grim -g - - | tee ~/Pictures/$(date +%F-%s).png | wl-copy
bindgesture swipe:right workspace prev
bindgesture swipe:left workspace next

View File

@@ -0,0 +1,9 @@
smart_corner_radius on
corner_radius 8
blur enable
blur_passes 2
blur_radius 2
layer_effects "waybar" "blur enable"; shadows enable
shadows on
shadow_blur_radius 5