From 5498ae76fa81fdb6f25fa8bb7b3a709897710ede Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Gr=C3=B6ger?= Date: Wed, 11 Mar 2026 13:45:33 +0100 Subject: [PATCH] swayfx --- sway/config.d/00-base.conf | 2 +- sway/config.d/20-idle.conf | 4 +-- sway/config.d/20-input.conf | 6 ++-- sway/config.d/20-key_bindings.conf | 4 +-- sway/config.d/20-output.conf | 2 ++ sway/config.d/20-theme.conf | 8 ++--- sway/config.d/20-workspace.conf | 22 ++++++++++++ sway/config.d/80-pinyin.conf | 7 ++++ sway/config.d/98-eye-candy.conf | 57 ++++++++++++++++++++++++++++++ waybar/config | 29 ++++++++++++--- waybar/style.css | 5 +-- wofi/src/macchiato/blue/style.css | 3 +- 12 files changed, 130 insertions(+), 19 deletions(-) create mode 100644 sway/config.d/80-pinyin.conf create mode 100644 sway/config.d/98-eye-candy.conf diff --git a/sway/config.d/00-base.conf b/sway/config.d/00-base.conf index fe18397..274c247 100644 --- a/sway/config.d/00-base.conf +++ b/sway/config.d/00-base.conf @@ -1,5 +1,5 @@ # target title bg text indicator border -client.focused $pink $base $text $rosewater $pink +client.focused $teal $base $text $rosewater $teal client.focused_inactive $mauve $base $text $rosewater $mauve client.unfocused $mauve $base $text $rosewater $mauve client.urgent $peach $base $peach $overlay0 $peach diff --git a/sway/config.d/20-idle.conf b/sway/config.d/20-idle.conf index b49ea45..1c4a3bd 100644 --- a/sway/config.d/20-idle.conf +++ b/sway/config.d/20-idle.conf @@ -2,8 +2,8 @@ # # Example configuration: # -exec swayidle -w \ - before-sleep 'swaylock -f -c 000000 -i $HOME/Bilder/wallpaper/undertale_sans-wallpaper-2048x1152.jpg' +#exec swayidle -w \ +# before-sleep 'swaylock -f -c 000000 -i $HOME/Bilder/wallpaper/undertale_sans-wallpaper-2048x1152.jpg' # timeout 300 'swaylock -f -c 000000 -i $HOME/Bilder/wallpaper/undertale_sans-wallpaper-2048x1152.jpg' \ # timeout 600 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' # diff --git a/sway/config.d/20-input.conf b/sway/config.d/20-input.conf index 6b598eb..0e2b090 100644 --- a/sway/config.d/20-input.conf +++ b/sway/config.d/20-input.conf @@ -11,8 +11,8 @@ # input "type:keyboard" { - xkb_layout "de" - xkb_variant "neo" + xkb_layout de,de + xkb_variant neo, } input "type:touchpad" { tap enabled @@ -21,3 +21,5 @@ input "type:touchpad" { } # You can get the names of your inputs by running: swaymsg -t get_inputs # Read `man 5 sway-input` for more information about this section. + +bindsym $mod+BackSpace input "type:keyboard" xkb_switch_layout next diff --git a/sway/config.d/20-key_bindings.conf b/sway/config.d/20-key_bindings.conf index 5baf4c3..1d5097b 100644 --- a/sway/config.d/20-key_bindings.conf +++ b/sway/config.d/20-key_bindings.conf @@ -25,8 +25,8 @@ # Exit sway (logs you out of your Wayland session) bindsym $mod+Shift+l 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' -bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status -bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status +bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5% && $refresh_i3status +bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -5% && $refresh_i3status bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status diff --git a/sway/config.d/20-output.conf b/sway/config.d/20-output.conf index bbb88bc..0b519d8 100644 --- a/sway/config.d/20-output.conf +++ b/sway/config.d/20-output.conf @@ -12,5 +12,7 @@ output * bg $HOME/Bilder/wallpaper/undertale_sans-wallpaper-2048x1152.jpg fill # You can get the names of your outputs by running: swaymsg -t get_outputs font pango:Hack Nerd Font mono:style=Regular 12 +output "LG Electronics LG ULTRAWIDE 510NTJJN1324" resolution 3440x1440 +output "Mars-Tech Corporation MTC26T42 0x000003E9" resolution --custom 1920x1080 bindswitch --locked --reload lid:on output eDP-1 disable bindswitch --locked --reload lid:off output eDP-1 enable diff --git a/sway/config.d/20-theme.conf b/sway/config.d/20-theme.conf index c9782bd..4d045a1 100644 --- a/sway/config.d/20-theme.conf +++ b/sway/config.d/20-theme.conf @@ -1,8 +1,8 @@ set $gnome-schema org.gnome.desktop.interface exec_always { - gsettings set $gnome-schema gtk-theme 'Catppuccin-Macchiato-Standard-Blue-Dark' - #gsettings set $gnome-schema icon-theme 'Your icon theme' - #gsettings set $gnome-schema cursor-theme 'Your cursor Theme' - #gsettings set $gnome-schema font-name 'Your font name' + # gsettings set $gnome-schema gtk-theme 'Catppuccin-Macchii#ato-Standard-Blue-Dark' + gsettings set $gnome-schema icon-theme 'candy-icons-master' + gsettings set $gnome-schema cursor-theme 'Catppuccin-Macchiato-Teal-Cursors' + gsettings set $gnome-schema font-name 'Hack Nerd Font 11' } diff --git a/sway/config.d/20-workspace.conf b/sway/config.d/20-workspace.conf index 7677d7f..f60f944 100644 --- a/sway/config.d/20-workspace.conf +++ b/sway/config.d/20-workspace.conf @@ -29,11 +29,33 @@ workspace_layout tabbed assign [app_id="Alacritty"] 1 +assign [instance="google-chrome"] 2 assign [app_id="google-chrome"] 2 assign [class="jetbrains-studio"] 3 +assign [app_id="blender"] 3 +assign [instance="freecad"] 3 +assign [instance="bambu-studio"] 3 assign [app_id="org.gnome.Nautilus"] 4 +assign [app_id="mpv"] 5 assign [instance="Mail"] 6 for_window [class="platformer"] floating enable +# 1. Floating für alle Emulator-Fenster deaktivieren +# for_window [class="Emulator"] floating disable + +# 2. Das Hauptfenster (Pixel 9 Display) konfigurieren +# Wir suchen nach dem Titel, der den Namen des Geräts enthält +for_window [title="Android Emulator - Pixel_9*"] floating disable +for_window [title="Android Emulator - Pixel_9*"] move right +for_window [title="Android Emulator - Pixel_9*"] resize set width 500 px + +# 3. Die Toolbar konfigurieren +# Diese hat meist nur den schlichten Titel "Emulator" +# for_window [title="^Emulator$"] move right, resize set width 60 px + +# Optional: Fokus zurück auf das Terminal setzen, falls gewünscht +# for_window [class="Emulator"] focus left + + # ext: set ft=swayconfig diff --git a/sway/config.d/80-pinyin.conf b/sway/config.d/80-pinyin.conf new file mode 100644 index 0000000..044cfa5 --- /dev/null +++ b/sway/config.d/80-pinyin.conf @@ -0,0 +1,7 @@ + +# In deiner Sway-Konfigurationsdatei (~/.config/sway/config) +exec --no-startup-id fcitx5 +#setenv GTK_IM_MODULE fcitx +#setenv QT_IM_MODULE fcitx +#setenv XMODIFIERS "@im=fcitx" + diff --git a/sway/config.d/98-eye-candy.conf b/sway/config.d/98-eye-candy.conf new file mode 100644 index 0000000..d554b32 --- /dev/null +++ b/sway/config.d/98-eye-candy.conf @@ -0,0 +1,57 @@ +# # Ecken abrunden +# corner_radius 10 +# +# # Schatten +# shadows on +# shadow_blur_radius 20 +# shadow_color #00000077 +# +# # Unschärfe (Blur) für transparente Fenster +# blur on +# blur_xray off +## Deaktiviert "Smart Gaps" (damit Lücken immer da sind) +smart_gaps off + +# Optional: Versteckt die Ränder, wenn nur ein Fenster offen ist +smart_borders on + +# Stelle sicher, dass die Werte gesetzt sind +gaps inner 10 +gaps outer 5 + + +### Optik-Tuning +# Abgerundete Ecken für alle Fenster +corner_radius 12 + +# Schatten-Konfiguration +shadows on +shadow_blur_radius 20 +shadow_color #000000A0 + +# Blur (Unschärfe) +# Tipp: Damit das gut aussieht, muss das Terminal/App transparent sein! +blur on +blur_passes 3 +blur_radius 7 + +# Entferne die hässlichen Standard-Titelleisten +# default_border pixel 2 blur_radius 5 +# # Waybar Hintergrund weichzeichnen +# for_window [class="waybar"] blur on +# for_window [class="waybar"] opacity 0.8 + +layer_effects "waybar" { + blur enable; + blur_xray enable; + blur_ignore_transparent enable; + shadows enable; + corner_radius 12; +} +default_dim_inactive 0.4 + + +titlebar_separator enable + +scratchpad_minimize enable + diff --git a/waybar/config b/waybar/config index 325fa53..bbba74c 100644 --- a/waybar/config +++ b/waybar/config @@ -22,11 +22,11 @@ "sway/workspaces", ], "modules-center": [ - "sway/window" + "sway/window", ], "modules-right": [ "network", - //"custom/keyboard-layout", + "custom/keyboard-layout", "battery", "pulseaudio", "custom/notification", @@ -38,6 +38,18 @@ // ------------------------------------------------------------------------- // Modules // ------------------------------------------------------------------------- + "keyboard-state": { + "numlock": true, + "capslock": true, + "format": { + "numlock": "N {icon}", + "capslock": "C {icon}" + }, + "format-icons": { + "locked": "", + "unlocked": "" + } + }, "custom/notification": { "tooltip": false, "format": "{icon}", @@ -75,7 +87,13 @@ "", // Icon: battery-quarter "" // Icon: battery-empty ], - "tooltip": true + "tooltip": true, + "events": { + "on-discharging-warning": "notify-send -u normal 'Low Battery'", + "on-discharging-critical": "notify-send -u critical 'Very Low Battery'", + "on-charging-99": "notify-send -u normal 'Battery Full!'", + "on-discharging-96": "notify-send -u normal 'Battery discharge'", + } }, "clock#time": { @@ -125,7 +143,8 @@ //"1:www": "龜", // Icon: firefox-browser "2": "", //"2:mail": "", // Icon: mail - "3": "", + //"3": "", + "3":"", //"3:editor": "", // Icon: code "4": "", //"4:terminals": "", // Icon: terminal @@ -133,7 +152,7 @@ //"5:portal": "", // Icon: terminal "6": "", "urgent": "", - "focused": "", + //"focused": "", "default": "", } }, diff --git a/waybar/style.css b/waybar/style.css index 839b434..67adf39 100644 --- a/waybar/style.css +++ b/waybar/style.css @@ -51,8 +51,9 @@ background: rgba(50, 50, 50, 0.7); color: white; /* font-family: Cantarell, Noto Sans, sans-serif; */ - font-family: "Hack Nerd Font", "Noto Sans", sans-serif; - font-size: 13px; + /* font-family: "Hack Nerd Font", "Noto Sans", sans-serif; */ + font-family: "Hack Nerd Font"; + font-size: 14px; } /* Each module */ diff --git a/wofi/src/macchiato/blue/style.css b/wofi/src/macchiato/blue/style.css index 258ae2a..b77319d 100644 --- a/wofi/src/macchiato/blue/style.css +++ b/wofi/src/macchiato/blue/style.css @@ -5,7 +5,8 @@ @define-color bg2 #494d64; * { - font-family: "JetBrains Mono Nerd Font", monospace; + /* font-family: "JetBrains Mono Nerd Font", monospace; */ + font-family: "Hack Nerd Font"; font-size: 14px; }