From 4aa870ebacc687e4fe52c91e467ab4917aea676d Mon Sep 17 00:00:00 2001 From: The_miro Date: Thu, 8 May 2025 17:00:36 +0200 Subject: [PATCH] adjusted some stuff regarding a hyplang bug (moved a bunch single line commands into their own script files) --- desktopenvs/hyprland/hypr-usr/binds.conf | 5 ++--- desktopenvs/hyprland/hypr/hyprland.conf | 2 +- desktopenvs/hyprland/hypr/hyprlock.conf | 6 +++--- desktopenvs/hyprland/hypr/scripts/date.sh | 2 ++ desktopenvs/hyprland/hypr/{ => scripts}/ewwstart.sh | 0 desktopenvs/hyprland/hypr/scripts/screenshot.sh | 3 +++ desktopenvs/hyprland/hypr/scripts/time.sh | 2 ++ desktopenvs/hyprland/hypr/scripts/uptime.sh | 2 ++ 8 files changed, 15 insertions(+), 7 deletions(-) create mode 100755 desktopenvs/hyprland/hypr/scripts/date.sh rename desktopenvs/hyprland/hypr/{ => scripts}/ewwstart.sh (100%) create mode 100755 desktopenvs/hyprland/hypr/scripts/screenshot.sh create mode 100755 desktopenvs/hyprland/hypr/scripts/time.sh create mode 100755 desktopenvs/hyprland/hypr/scripts/uptime.sh diff --git a/desktopenvs/hyprland/hypr-usr/binds.conf b/desktopenvs/hyprland/hypr-usr/binds.conf index 7deb53e..eae8277 100644 --- a/desktopenvs/hyprland/hypr-usr/binds.conf +++ b/desktopenvs/hyprland/hypr-usr/binds.conf @@ -9,7 +9,6 @@ $terminal = kitty $fileManager = kitty -e yazi $editor = kitty micro $menu = wofi --show=drun -$winswitch = hyprctl dispatch focuswindow address:"$(hyprctl -j clients | jq 'map("\(.workspace.id) ∴ \(.workspace.name) ┇ \(.title) ┇ \(.address)")' | sed "s/,$//; s/^\[//; s/^\]//; s/^[[:blank:]]*//; s/^\"//; s/\"$//" | grep -v "^$" | wofi -dO alphabetical | grep -o "0x.*$")" #################### ### KEYBINDINGSS ### @@ -216,8 +215,8 @@ bind = $mainMod, Y, changegroupactive, b bind = $mainMod SHIFT, Q, exec, hyprctl kill #screenshot capture -bind = , Print, exec, grim -g "$(slurp -d)" - | wl-copy -bind = $mainMod, P, exec, grim -g "$(slurp -d)" - | wl-copy +bind = , Print, exec, ~/.config/hypr/scripts/screenshot.sh +bind = $mainMod, P, exec, ~/.config/hypr/scripts/screenshot.sh #audio controls binde =, XF86AudioRaiseVolume, exec, wpctl set-volume -l 1.4 @DEFAULT_AUDIO_SINK@ 5%+ diff --git a/desktopenvs/hyprland/hypr/hyprland.conf b/desktopenvs/hyprland/hypr/hyprland.conf index 3789c63..0455719 100644 --- a/desktopenvs/hyprland/hypr/hyprland.conf +++ b/desktopenvs/hyprland/hypr/hyprland.conf @@ -48,7 +48,7 @@ $menu = wofi --show=drun # Autostart necessary processes (like notifications daemons, status bars, etc.) # Or execute your favorite apps at launch like this: -exec-once=bash ~/.config/hypr/ewwstart.sh +exec-once=bash ~/.config/hypr/scripts/ewwstart.sh #exec-once = waybar exec-once = dunst diff --git a/desktopenvs/hyprland/hypr/hyprlock.conf b/desktopenvs/hyprland/hypr/hyprlock.conf index a868d6a..b3bc5b8 100644 --- a/desktopenvs/hyprland/hypr/hyprlock.conf +++ b/desktopenvs/hyprland/hypr/hyprlock.conf @@ -45,7 +45,7 @@ input-field { # DATE label { - text = cmd[update:18000000] echo " "$(date +'%A, %-d %B %Y')" " + text = cmd[update:18000000] sh ~/.config/hypr/scripts/date.sh color = rgb(5018dd) font_size = 34 font_family = Agave Nerd Font Mono @@ -56,7 +56,7 @@ label { # TIME label { - text = cmd[update:1000] echo " $(date +"%H:%M:%S") " + text = cmd[update:1000] sh ~/.config/hypr/scripts/time.sh color = rgb(E40046) font_size = 94 font_family = Agave Nerd Font Mono @@ -78,7 +78,7 @@ label { # UPTIME label { - text = cmd[update:60000] echo " "$(uptime -p || $Scripts/UptimeNixOS.sh)" " + text = cmd[update:60000] sh ~/.config/hypr/scripts/uptime.sh font_size = 24 color = rgb(5018dd) font_family = Agave Nerd Font Mono diff --git a/desktopenvs/hyprland/hypr/scripts/date.sh b/desktopenvs/hyprland/hypr/scripts/date.sh new file mode 100755 index 0000000..0c66d4b --- /dev/null +++ b/desktopenvs/hyprland/hypr/scripts/date.sh @@ -0,0 +1,2 @@ +#!/bin/bash +echo " "$(date +'%A, %-d %B %Y')" " diff --git a/desktopenvs/hyprland/hypr/ewwstart.sh b/desktopenvs/hyprland/hypr/scripts/ewwstart.sh similarity index 100% rename from desktopenvs/hyprland/hypr/ewwstart.sh rename to desktopenvs/hyprland/hypr/scripts/ewwstart.sh diff --git a/desktopenvs/hyprland/hypr/scripts/screenshot.sh b/desktopenvs/hyprland/hypr/scripts/screenshot.sh new file mode 100755 index 0000000..c246361 --- /dev/null +++ b/desktopenvs/hyprland/hypr/scripts/screenshot.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +grim -g "$(slurp -d)" - | wl-copy diff --git a/desktopenvs/hyprland/hypr/scripts/time.sh b/desktopenvs/hyprland/hypr/scripts/time.sh new file mode 100755 index 0000000..e8e8095 --- /dev/null +++ b/desktopenvs/hyprland/hypr/scripts/time.sh @@ -0,0 +1,2 @@ +#!/bin/bash +echo " $(date +"%H:%M:%S") " diff --git a/desktopenvs/hyprland/hypr/scripts/uptime.sh b/desktopenvs/hyprland/hypr/scripts/uptime.sh new file mode 100755 index 0000000..0c3cd89 --- /dev/null +++ b/desktopenvs/hyprland/hypr/scripts/uptime.sh @@ -0,0 +1,2 @@ +#!/bin/bash +uptime -p