Fedora installer, cleanup and screenshots

- install.sh rewritten for Fedora: dry-run, --check, backups, oh-my-zsh, lazygit, swappy
- outputs-setup.sh (monitor layout for new hardware) and doctor.sh (health check)
- screenshot.sh: region / full / window / scroll / last / edit (swappy), saved and copied
- remove waybar, swaync, dunst, rofi and their helper scripts, wallpaper picker, mirror.sh
- wallpapers handled by DMS; keep only the favourite one
- 00-session.conf for portals; swayfx-only layer rules split into 21-dms-effects.conf

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-28 11:01:30 +05:00
co-authored by Claude Sonnet 5.5
parent 1590ccae69
commit 9571b755f8
39 changed files with 438 additions and 840 deletions
+5
View File
@@ -0,0 +1,5 @@
# Session plumbing so portals (screen sharing, file dialogs, dark mode) and D-Bus activated apps work on any distro.
# Fedora's sway-systemd already does the same; running it twice is harmless.
exec_always dbus-update-activation-environment --systemd WAYLAND_DISPLAY DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP XDG_SESSION_TYPE
exec systemctl --user import-environment WAYLAND_DISPLAY DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP XDG_SESSION_TYPE
exec systemctl --user start sway-session.target
+1 -4
View File
@@ -28,7 +28,6 @@ client.placeholder $base $base $text $base $base
client.background $base
# Autostart
exec_always sh -c 'pkill -x dunst; pkill -x swaync; true'
exec_always sh -c 'pkill -x nm-applet; exec nm-applet --indicator'
bindsym --to-code $mod+Shift+x exec ~/.config/sway/lock.sh
@@ -45,12 +44,10 @@ input type:touchpad {
# Window rules
for_window [app_id="pavucontrol|nm-connection-editor|blueman-manager"] floating enable, resize set 700 500, border pixel 2
for_window [window_role="pop-up"] floating enable
for_window [app_id="rofi"] border none
titlebar_padding 10 4
focus_follows_mouse no
workspace_auto_back_and_forth yes
bindsym --to-code $mod+Shift+p exec dms ipc call powermenu toggle
# Wallpaper + idle/lock
output * bg ~/Pictures/wallpapers/current fill
# Idle / lock
exec_always ~/.config/sway/idle.sh
+1 -6
View File
@@ -29,12 +29,7 @@ dim_inactive_colors.urgent #ff5c5c
# Thin outline instead of fat border -> cleaner look
titlebar_separator disable
# Frosted glass for layers
layer_effects "waybar" blur enable; blur_ignore_transparent enable; corner_radius 14; shadows enable
layer_effects "rofi" blur enable; blur_ignore_transparent enable; corner_radius 20; shadows enable
layer_effects "notifications" blur enable; blur_ignore_transparent enable; corner_radius 14; shadows enable
layer_effects "swaync-control-center" blur enable; blur_ignore_transparent enable; corner_radius 20; shadows enable
layer_effects "swaync-notification-window" blur enable; blur_ignore_transparent enable; corner_radius 14; shadows enable
# Frosted glass for sway's own layers (DMS layers: 21-dms-effects.conf)
layer_effects "swaynag" blur enable; blur_ignore_transparent enable; corner_radius 12
# Translucent terminals, glass shows through
@@ -0,0 +1,8 @@
# SwayFX blur for DMS surfaces (layer names: swaymsg -t get_outputs -r | jq '.[].layer_shell_surfaces[].namespace').
# Only blur: DMS surfaces are bigger than what is drawn, so shadows / corner_radius here would paint
# a glow and rounded corners around the whole (often full-screen) layer.
# SwayFX-only: install.sh drops this file when plain sway is used.
layer_effects "dms:bar" blur enable; blur_ignore_transparent enable
layer_effects "dms:notification-popup" blur enable; blur_ignore_transparent enable
layer_effects "dms:osd" blur enable; blur_ignore_transparent enable
layer_effects "dms:dock" blur enable; blur_ignore_transparent enable
+8 -8
View File
@@ -15,20 +15,20 @@ bindsym --to-code $mod+Ctrl+Left workspace prev_on_output
bindsym --to-code $mod+Shift+f floating toggle, resize set 1000 600, move position center
bindsym --to-code $mod+c exec swaymsg [con_id=__focused__] move position center
# Screenshots: area -> clipboard, area -> file
bindsym --to-code Shift+Print exec ~/.config/sway/screenshot.sh clip
bindsym --to-code $mod+Print exec ~/.config/sway/screenshot.sh file
# Screenshots (saved to ~/Pictures/Screenshots and copied to the clipboard)
bindsym --to-code Print exec ~/.config/sway/screenshot.sh region
bindsym --to-code $mod+Shift+s exec ~/.config/sway/screenshot.sh region
bindsym --to-code Shift+Print exec ~/.config/sway/screenshot.sh full
bindsym --to-code Ctrl+Print exec ~/.config/sway/screenshot.sh window
bindsym --to-code Alt+Print exec ~/.config/sway/screenshot.sh scroll
bindsym --to-code $mod+Print exec ~/.config/sway/screenshot.sh last
bindsym --to-code Ctrl+Shift+Print exec ~/.config/sway/screenshot.sh edit
# Keep video/browser-video windows undimmed
for_window [app_id="firefox"] inhibit_idle fullscreen
for_window [app_id="mpv"] floating enable, dim_inactive 0
# Mirror internal screen to HDMI/TV on hotplug
exec_always ~/.config/sway/mirror.sh
# Rice helpers
bindsym --to-code $mod+Shift+w exec ~/.config/sway/wallpaper.sh
bindsym --to-code $mod+Shift+s exec ~/.config/sway/screenshot-menu.sh
bindsym --to-code $mod+F1 exec ~/.config/sway/cheatsheet.sh
# Performance mode: toggle blur + shadows
bindsym --to-code $mod+Shift+b blur toggle; shadows toggle
-4
View File
@@ -1,4 +0,0 @@
# Waybar (replaces sway-config-fedora's 90-bar.conf, which isn't installed with swayfx)
bar {
swaybar_command waybar
}
-9
View File
@@ -4,15 +4,6 @@ exec_always sh -c 'pgrep -x dms >/dev/null || exec dms run'
# Hotkeys: $mod+d launcher, $mod+n control center, $mod+Shift+n notifications, $mod+Shift+p power menu (set in config / config.d)
bindsym --to-code $mod+Shift+v exec dms ipc call clipboard toggle
# SwayFX blur for DMS surfaces (layer names: swaymsg -t get_outputs -r | jq '.[].layer_shell_surfaces[].namespace').
# Only blur: DMS surfaces are bigger than what is drawn, so shadows / corner_radius here would paint
# a glow and rounded corners around the whole (often full-screen) layer.
layer_effects "dms:bar" blur enable; blur_ignore_transparent enable
layer_effects "dms:notification-popup" blur enable; blur_ignore_transparent enable
layer_effects "dms:osd" blur enable; blur_ignore_transparent enable
layer_effects "dms:dock" blur enable; blur_ignore_transparent enable
# Media keys (work on the lock screen too); DMS shows the OSD
bindsym --locked XF86AudioRaiseVolume exec dms ipc call audio increment 5
bindsym --locked XF86AudioLowerVolume exec dms ipc call audio decrement 5