fix audio in eww and dolphin applications

This commit is contained in:
2025-11-15 13:35:34 +01:00
parent 46f9b41b40
commit 7d592d60ca
4 changed files with 18 additions and 12 deletions

View File

@@ -46,7 +46,7 @@
displayManager = { displayManager = {
sddm = { sddm = {
enable = true; enable = true;
theme = "catppuccin-mocha"; theme = "catppuccin-mocha-mauve";
wayland.enable = true; wayland.enable = true;
}; };
#autoLogin = { #autoLogin = {
@@ -83,10 +83,12 @@
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
(catppuccin-sddm.override { (catppuccin-sddm.override {
flavor = "mocha"; flavor = "mocha";
accent = "mauve";
font = "Fira Code"; font = "Fira Code";
fontSize = "9"; fontSize = "9";
# background = "${./wallpaper.png}";
loginBackground = true;
}) })
exiftool exiftool
flutter flutter

View File

@@ -4,7 +4,10 @@
home.packages = with pkgs; [ home.packages = with pkgs; [
kdePackages.dolphin kdePackages.dolphin
kdePackages.dolphin-plugins kdePackages.dolphin-plugins
kdePackages.baloo-widgets
kdePackages.baloo
nautilus nautilus
udisks udisks
]; ];
xdg.configFile."menus/applications.menu".source = "${pkgs.kdePackages.plasma-workspace}/etc/xdg/menus/plasma-applications.menu";
} }

View File

@@ -1,9 +1,10 @@
mute=$(wpctl get-volume @DEFAULT_SINK@ | grep -o "muted") # /-- Get Information -->
volume=$(wpctl get-volume @DEFAULT_SINK@ | awk '{print int($1*100)}') sink_info=$(wpctl get-volume @DEFAULT_AUDIO_SINK@)
volume=$(echo "$sink_info" | awk '{print int($2 * 100)}')
mic_info=$(wpctl get-volume @DEFAULT_AUDIO_SOURCE@)
# /-- Mic --> # /-- Mic -->
mic_mute=$(wpctl get-volume @DEFAULT_SOURCE@ | grep -o "muted") if echo "$mic_info" | grep -q "\[MUTED\]"; then
if [[ "$mic_mute" == "muted" ]]; then
eww update micClass="micOff" eww update micClass="micOff"
eww update micIcon="󰍭" eww update micIcon="󰍭"
else else
@@ -13,7 +14,7 @@ fi
# /-- Speaker --> # /-- Speaker -->
if [[ "$mute" == "yes" ]]; then if echo "$sink_info" | grep -q "\[MUTED\]"; then
eww update speakerClass="speakerOff" eww update speakerClass="speakerOff"
eww update speakerIcon="" eww update speakerIcon=""
elif [[ "$volume" -le 100 ]]; then elif [[ "$volume" -le 100 ]]; then

View File

@@ -107,10 +107,10 @@
"Super Down" = ''send-layout-cmd rivertile "main-location bottom"''; "Super Down" = ''send-layout-cmd rivertile "main-location bottom"'';
"Super Left" = ''send-layout-cmd rivertile "main-location left"''; "Super Left" = ''send-layout-cmd rivertile "main-location left"'';
# Audio # Audio
"None XF86AudioRaiseVolume" = "spawn 'pactl set-sink-volume @DEFAULT_SINK@ +10%'"; "None XF86AudioRaiseVolume" = "spawn 'wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.1+'";
"None XF86AudioLowerVolume" = "spawn 'pactl set-sink-volume @DEFAULT_SINK@ -10%'"; "None XF86AudioLowerVolume" = "spawn 'wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.1-'";
"None XF86AudioMute" = "spawn 'pactl set-sink-mute @DEFAULT_SINK@ toggle'"; "None XF86AudioMute" = "spawn 'wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle'";
"None XF86AudioMicMute" = "spawn 'pactl set-source-mute @DEFAULT_SOURCE@ toggle'"; "None XF86AudioMicMute" = "spawn 'wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle'";
# Brightness # Brightness
"None XF86MonBrightnessUp" = "spawn 'xbacklight -inc 10'"; "None XF86MonBrightnessUp" = "spawn 'xbacklight -inc 10'";
"None XF86MonBrightnessDown" = "spawn 'xbacklight -dec 10'"; "None XF86MonBrightnessDown" = "spawn 'xbacklight -dec 10'";