More cleaning
This commit is contained in:
@@ -46,7 +46,7 @@ in {
|
||||
print "img:" $0 ":text:" image_file;
|
||||
}')
|
||||
|
||||
IMG=$WPDIR/$(echo "$RES" | wofi --dmenu --allow-images show-icons true -theme-str '#window { width: 50%; }' -p "Choose wallpaper:")
|
||||
IMG=$WPDIR/$(echo "$RES" | ${pkgs.wofi}/bin/wofi --dmenu --allow-images show-icons true -theme-str '#window { width: 50%; }' -p "Choose wallpaper:")
|
||||
IMG=$(echo "$IMG" | awk -F ':' '{print $2}')
|
||||
${pkgs.awww}/bin/awww img $IMG
|
||||
'';
|
||||
|
||||
2
modules/home/wayland/apps/eww/bar/scripts/media
Normal file
2
modules/home/wayland/apps/eww/bar/scripts/media
Normal file
@@ -0,0 +1,2 @@
|
||||
#!/usr/bin/env bash
|
||||
playerctl "$@"
|
||||
@@ -40,13 +40,13 @@
|
||||
:orientation "v" :space-evenly false :class "radio-controls"
|
||||
(box :orientation "h" :space-evenly true :halign "center"
|
||||
(button :visible {radio.is_paused == 1 && radio.media.status != "Stopped"}
|
||||
:class "radio-ctrl-btn" :timeout "2s" :onclick "playerctl previous"
|
||||
:class "radio-ctrl-btn" :timeout "2s" :onclick "scripts/media previous"
|
||||
(label :text ""))
|
||||
(button :class "radio-ctrl-btn" :timeout "2s"
|
||||
:onclick {radio.is_paused == 1 && radio.media.status != "Stopped" ? "playerctl play-pause" : "scripts/radio toggle"}
|
||||
:onclick {radio.is_paused == 1 && radio.media.status != "Stopped" ? "scripts/media play-pause" : "scripts/radio toggle"}
|
||||
(label :text {radio.is_paused == 0 ? "" : (radio.media.status == "Playing" ? "" : "")}))
|
||||
(button :visible {radio.is_paused == 1 && radio.media.status != "Stopped"}
|
||||
:class "radio-ctrl-btn" :timeout "2s" :onclick "playerctl next"
|
||||
:class "radio-ctrl-btn" :timeout "2s" :onclick "scripts/media next"
|
||||
(label :text "")))
|
||||
(vol-row
|
||||
:icon ""
|
||||
|
||||
@@ -27,6 +27,7 @@ let
|
||||
"scripts/power-save" = mkScript "power-save" ./bar/scripts/power-save [ pkgs.eww ];
|
||||
"scripts/radio" = mkScript "radio" ./bar/scripts/radio [ pkgs.eww pkgs.jq pkgs.curl pkgs.mpv pkgs.playerctl ];
|
||||
"scripts/color-pick" = mkScript "color-pick" ./bar/scripts/color-pick [ pkgs.eww pkgs.hyprpicker ];
|
||||
"scripts/media" = mkScript "media" ./bar/scripts/media [ pkgs.playerctl ];
|
||||
"scripts/lock" = mkScript "lock" ./bar/scripts/lock [ pkgs.eww pkgs.swaylock-effects ];
|
||||
"scripts/screenshot" = mkScript "screenshot" ./bar/scripts/screenshot [ pkgs.eww pkgs.hyprshot pkgs.satty pkgs.wl-clipboard ];
|
||||
"scripts/sys/gpu" = mkScript "gpu" ./bar/scripts/sys/gpu [ pkgs.custom.amdgpu_top pkgs.jq ];
|
||||
|
||||
Reference in New Issue
Block a user