commit f595b592637d5f9dc76b90f97bbcad200f6a0f72
parent 9735eb5c026cc0e1b7c9f3942a22b0290d963fac
Author: ryukamish <[email protected]>
Date: Wed, 3 Jun 2026 18:17:28 +0530
add/fix: variable addition and value changes
Diffstat:
6 files changed, 18 insertions(+), 11 deletions(-)
diff --git a/niri/cfg/autostart.kdl b/niri/cfg/autostart.kdl
@@ -4,4 +4,7 @@ spawn-at-startup "waybar"
spawn-sh-at-startup "wl-paste --type text --watch cliphist store"
spawn-sh-at-startup "wl-paste --type image --watch cliphist store"
-spawn-sh-at-startup "dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=niri"
+spawn-sh-at-startup "dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP QT_QPA_PLATFORM"
+
+// for dolphin to have a default application to open when double clicked and open with menu populated
+spawn-sh-at-startup "XDG_MENU_PREFIX=arch- kbuildsycoca6 --noincremental"
diff --git a/niri/cfg/misc.kdl b/niri/cfg/misc.kdl
@@ -12,6 +12,10 @@ environment {
QT_AUTO_SCREEN_SCALE_FACTOR "1"
QT_ENABLE_HIGHDPI_SCALING "1"
QT_SCALE_FACTOR_ROUNDING_POLICY "RoundPreferFloor"
+
+ XDG_CURRENT_DESKTOP "KDE"
+ XDG_SESSION_TYPE "wayland"
+
ELECTRON_OZONE_PLATFORM_HINT "auto"
TERMINAL "kitty"
diff --git a/rofi/config.rasi b/rofi/config.rasi
@@ -64,7 +64,7 @@ window {
location: center;
anchor: center;
fullscreen: false;
- width: 50%;
+ width: 40%;
x-offset: 0px;
y-offset: 0px;
diff --git a/scripts/brightness-control b/scripts/brightness-control
@@ -8,11 +8,11 @@ if [[ "$1" == "up" ]]; then
| awk -F ',' '{print $4+0}' \
| xargs -I[] notify-send -e -u low -h \
string:x-canonical-private-synchronous:brightness_notif -h \
- int:value:[] "☀ Brightness: []%"
+ int:value:[] "☀ Brightness []"
elif [[ "$1" == "down" ]]; then
brightnessctl set -e1 -n2 5%- -m \
| awk -F ',' '{print $4+0}' \
| xargs -I[] notify-send -e -u low -h \
string:x-canonical-private-synchronous:brightness_notif -h \
- int:value:[] "☀ Brightness: []%"
+ int:value:[] "☀ Brightness []"
fi
diff --git a/scripts/nightlight-toggle b/scripts/nightlight-toggle
@@ -13,20 +13,20 @@ hyprland_nightlight_toggle() {
CURRENT_TEMP=$(hyprctl hyprsunset temperature 2>/dev/null | grep -oE '[0-9]+')
if [[ "$CURRENT_TEMP" == "$OFF_TEMP" ]]; then
hyprctl hyprsunset temperature $ON_TEMP
- notify-send " Nightlight screen temperature"
+ notify-send "Nightlight screen temperature"
else
hyprctl hyprsunset temperature $OFF_TEMP
- notify-send " Daylight screen temperature"
+ notify-send "Daylight screen temperature"
fi
}
niri_nightlight_toggle() {
if pgrep -x wlsunset; then
killall wlsunset
- notify-send " Daylight screen temperature"
+ notify-send "Daylight screen temperature"
else
setsid -f wlsunset -T 4500
- notify-send " Nightlight screen temperature"
+ notify-send "Nightlight screen temperature"
fi
}
diff --git a/scripts/volume-control b/scripts/volume-control
@@ -8,13 +8,13 @@ if [[ "$1" == "up" ]]; then
&& wpctl get-volume @DEFAULT_AUDIO_SINK@ | \
awk '{print int($2*100)}' | xargs -I[] \
notify-send -e -u low -h string:x-canonical-private-synchronous:volume_notif -h \
- int:value:[] " Volume: []%"
+ int:value:[] " Volume []"
elif [[ "$1" == "down" ]]; then
wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%- \
&& wpctl get-volume @DEFAULT_AUDIO_SINK@ | \
awk '{print int($2*100)}' | xargs -I[] \
notify-send -e -u low -h string:x-canonical-private-synchronous:volume_notif -h \
- int:value:[] " Volume: []%"
+ int:value:[] " Volume []"
elif [[ "$1" == "mute" ]]; then
wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle \
&& (wpctl get-volume @DEFAULT_AUDIO_SINK@ \
@@ -24,5 +24,5 @@ elif [[ "$1" == "mute" ]]; then
" Muted" || wpctl get-volume @DEFAULT_AUDIO_SINK@ | \
awk '{print int($2*100)}' | xargs -I[] \
notify-send -e -u low -h string:x-canonical-private-synchronous:volume_notif -h \
- int:value:[] " Volume: []%")
+ int:value:[] " Volume []")
fi