diff options
| -rw-r--r-- | niri/cfg/autostart.kdl | 5 | ||||
| -rw-r--r-- | niri/cfg/misc.kdl | 4 | ||||
| -rw-r--r-- | rofi/config.rasi | 2 | ||||
| -rwxr-xr-x | scripts/brightness-control | 4 | ||||
| -rwxr-xr-x | scripts/nightlight-toggle | 8 | ||||
| -rwxr-xr-x | scripts/volume-control | 6 |
6 files changed, 18 insertions, 11 deletions
diff --git a/niri/cfg/autostart.kdl b/niri/cfg/autostart.kdl index 845b087..db49bbe 100644 --- 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 index 2cc96e9..1cd3874 100644 --- 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 index 9936c55..795c188 100644 --- 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 index 1c6b02c..7049089 100755 --- 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 index 7e09303..e1c6b6c 100755 --- 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 index bf8745d..bd47fea 100755 --- 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 |
