From bc2caa6c1158bbc12c315f7c6e93c5798c500bd7 Mon Sep 17 00:00:00 2001 From: Michel Fedde Date: Fri, 7 Feb 2025 15:35:56 +0100 Subject: [PATCH] Adds dock style --- .config/hypr/scripts/ScreenShot.sh | 4 --- .config/nwg-dock-hyprland/style.css | 42 +++++++++++++++++++++++++++++ .config/yadm/bootstrap | 7 +++-- 3 files changed, 47 insertions(+), 6 deletions(-) create mode 100644 .config/nwg-dock-hyprland/style.css diff --git a/.config/hypr/scripts/ScreenShot.sh b/.config/hypr/scripts/ScreenShot.sh index 59618cc..136d519 100755 --- a/.config/hypr/scripts/ScreenShot.sh +++ b/.config/hypr/scripts/ScreenShot.sh @@ -19,7 +19,6 @@ notify_cmd_shot_win="${notify_cmd_base}" notify_view() { if [[ "$1" == "active" ]]; then if [[ -e "${active_window_path}" ]]; then - "${sDIR}/Sounds.sh" --screenshot resp=$(timeout 5 ${notify_cmd_shot_win} " Screenshot of:" " ${active_window_class} Saved.") case "$resp" in action1) @@ -35,7 +34,6 @@ notify_view() { fi elif [[ "$1" == "swappy" ]]; then - "${sDIR}/Sounds.sh" --screenshot resp=$(${notify_cmd_shot} " Screenshot:" " Captured by Swappy") case "$resp" in action1) @@ -49,7 +47,6 @@ notify_view() { else local check_file="${dir}/${file}" if [[ -e "$check_file" ]]; then - "${sDIR}/Sounds.sh" --screenshot resp=$(timeout 5 ${notify_cmd_shot} " Screenshot" " Saved") case "$resp" in action1) @@ -149,4 +146,3 @@ else fi exit 0 - diff --git a/.config/nwg-dock-hyprland/style.css b/.config/nwg-dock-hyprland/style.css new file mode 100644 index 0000000..2343475 --- /dev/null +++ b/.config/nwg-dock-hyprland/style.css @@ -0,0 +1,42 @@ +window { + background: #111117; + border-radius: 2px; + border-style: none; + border-width: 1px; + border-color: rgba(156, 142, 122, 0.7) +} + +#box { + /* Define attributes of the box surrounding icons here */ + padding: 2px +} + +#active { + /* This is to underline the button representing the currently active window */ + border-bottom: solid 1px; + border-color: rgba(255, 255, 255, 0.3) +} + +button, image { + background: none; + border-style: none; + box-shadow: none; + color: #999 +} + +button { + padding: 4px; + margin-left: 4px; + margin-right: 4px; + color: #eee; + font-size: 12px +} + +button:hover { + background-color: rgba(255, 255, 255, 0.15); + border-radius: 2px; +} + +button:focus { + box-shadow: none +} diff --git a/.config/yadm/bootstrap b/.config/yadm/bootstrap index 95dc202..b54b098 100755 --- a/.config/yadm/bootstrap +++ b/.config/yadm/bootstrap @@ -38,10 +38,13 @@ if [ $XDG_SESSION_DESKTOP = "Hyprland" ]; then nwg-dock-hyprland \ nwg-drawer \ swaync \ - wlogout \ + wlogout wayland-logout \ hyprpicker \ pulseaudio-control \ - wl-clipboard + wl-clipboard \ + grim \ + slurp + fi echo "# Appling setup"