From 98bd7c5393cbfb7f754b0d08f4fbb40cf056e713 Mon Sep 17 00:00:00 2001 From: Nils Pukropp Date: Sat, 23 Aug 2025 16:19:05 +0200 Subject: [PATCH] styles + window rules --- fish/functions/convert_discord.fish | 2 +- hypr/modules/window_rules.conf | 2 ++ hypr/scripts/droidcam-ctrl.sh | 10 ++++++++-- waybar/config.jsonc | 6 +++--- waybar/style.css | 13 ++++++++----- 5 files changed, 22 insertions(+), 11 deletions(-) diff --git a/fish/functions/convert_discord.fish b/fish/functions/convert_discord.fish index 1c48b76..e5ca736 100644 --- a/fish/functions/convert_discord.fish +++ b/fish/functions/convert_discord.fish @@ -1,3 +1,3 @@ function convert_discord --wraps='ffmpeg -i -s 1280x720 -discord.mp4' --description 'alias convert_discord=ffmpeg -i -s 1280x720 -discord.mp4' - ffmpeg -i $argv[1] -s 1280x720 (string split -r -m1 . $argv[1])[1]-discord.mp4; + ffmpeg -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -i $argv[1] -s 1280x720 (string split -r -m1 . $argv[1])[1]-discord.mp4; end diff --git a/hypr/modules/window_rules.conf b/hypr/modules/window_rules.conf index 1e5a1bc..3bd4377 100644 --- a/hypr/modules/window_rules.conf +++ b/hypr/modules/window_rules.conf @@ -15,6 +15,7 @@ windowrulev2=noblur,class:^()$,title:^()$ # Float Windows windowrulev2=float,title:^(Open File)$ windowrulev2=float,title:^(Select a File)$ +windowrulev2=float,title:^(Select Folder)$ windowrulev2=float,title:^(Choose a file)$ windowrulev2=float,title:^(Save As)$ windowrulev2=float,title:^(Save File)$ @@ -63,6 +64,7 @@ windowrulev2=noblur,class:^(pavucontrol|blueman-manager|nm-connection-editor)$ windowrulev2=workspace special:magic silent,class:^(Spotify)$ +windowrulev2=workspace special:magic silent,class:^(spotify)$ windowrulev2=workspace special:magic silent,class:^(discord|vesktop)$ # steam rules diff --git a/hypr/scripts/droidcam-ctrl.sh b/hypr/scripts/droidcam-ctrl.sh index fb6ddb4..1140e3c 100755 --- a/hypr/scripts/droidcam-ctrl.sh +++ b/hypr/scripts/droidcam-ctrl.sh @@ -15,7 +15,13 @@ start() { notify-send -u low "$PROGRAM_NAME" "$PROGRAM_NAME is starting ..." ANDROID_SERIAL=$ANDROID_SERIAL droidcam-cli -a -v -size=1920x1080 adb 4747 &> /dev/null & - echo $! > "$PID_FILE" + PID=$! + sleep 1 + if ! ps -p "$PID" > /dev/null; then + notify-send -u critical "$PROGRAM_NAME" "$PROGRAM_NAME did not start" + exit 1 + fi + echo "$PID" > "$PID_FILE" } @@ -65,4 +71,4 @@ case "$1" in exit 1 esac -exit 0 +exit 0 \ No newline at end of file diff --git a/waybar/config.jsonc b/waybar/config.jsonc index 573f86d..d6eda52 100644 --- a/waybar/config.jsonc +++ b/waybar/config.jsonc @@ -126,14 +126,14 @@ "return-type": "json", "exec": "/home/narl/.config/waybar/scripts/audio.sh show", "on-click": "/home/narl/.config/waybar/scripts/audio.sh cycle", - "interval": 5 + "interval": 1 }, "custom/gamemode": { "format": "{}", "return-type": "json", "exec": "~/.config/waybar/scripts/gamemode_status.sh", "on-click": "~/.config/hypr/scripts/gamemode.sh", - "interval": 5 + "interval": 1 }, "custom/gpu-screen-recorder": { "format": "{}", @@ -142,7 +142,7 @@ "on-click-right": "~/.config/hypr/scripts/replay-ctrl.sh save", "on-click-middle": "nautilus ~/Videos/replay", "on-click": "~/.config/waybar/scripts/toggle-replay.sh", - "interval": 5 + "interval": 1 }, "custom/gpu": { "format": "{}", diff --git a/waybar/style.css b/waybar/style.css index caca738..81b000d 100644 --- a/waybar/style.css +++ b/waybar/style.css @@ -134,8 +134,8 @@ window#waybar.hidden { #custom-gpu-screen-recorder.recording, #custom-gamemode.active { - color: @teal; - border-bottom: 3px solid @teal; + color: @yellow; + border-bottom: 3px solid @yellow; } #custom-tlp { @@ -192,11 +192,10 @@ window#waybar.hidden { #memory, #cpu, -#network, #custom-gpu.normal, #custom-cpu.normal, #custom-mem.normal { - color: @lavender; + color: @blue; /* border-bottom: 3px solid @mauve; */ } @@ -209,6 +208,10 @@ window#waybar.hidden { padding-right: 16px; } +#network { + color: @maroon; +} + #custom-audio-output.unmuted, #wireplumber { color: @maroon; border-bottom: 3px solid @maroon; @@ -217,7 +220,7 @@ window#waybar.hidden { #clock { - color: @maroon; + color: @teal; } #network {