Compare commits

..

2 commits

Author SHA1 Message Date
Laureηt 84c114b045
⬆️ nix flake update 2024-07-04 18:35:47 +02:00
Laureηt bd2029db7d
️ (home) replace pamixer by wpctl 2024-07-04 18:35:36 +02:00
4 changed files with 20 additions and 27 deletions

View file

@ -144,11 +144,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1719864345, "lastModified": 1720056646,
"narHash": "sha256-e4Pw+30vFAxuvkSTaTypd9zYemB/QlWcH186dsGT+Ms=", "narHash": "sha256-BymcV4HWtx2VFuabDCM4/nEJcfivCx0S02wUCz11mAY=",
"owner": "nix-community", "owner": "nix-community",
"repo": "disko", "repo": "disko",
"rev": "544a80a69d6e2da04e4df7ec8210a858de8c7533", "rev": "64679cd7f318c9b6595902b47d4585b1d51d5f9e",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -299,11 +299,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1719992360, "lastModified": 1720045378,
"narHash": "sha256-SRq0ZRkqagqpMGVf4z9q9CIWRbPYjO7FTqSJyWh7nes=", "narHash": "sha256-lmE7B+QXw7lWdBu5GQlUABSpzPk3YBb9VbV+IYK5djk=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "36e2f9da91ce8b63a549a47688ae60d47c50de4b", "rev": "0a30138c694ab3b048ac300794c2eb599dc40266",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -352,11 +352,11 @@
"xdph": "xdph" "xdph": "xdph"
}, },
"locked": { "locked": {
"lastModified": 1719949580, "lastModified": 1720092067,
"narHash": "sha256-HDZpI+/LR4fh6TCqByoZrP5/cN3iSiDO0JqG/yKWDWQ=", "narHash": "sha256-ebMlTz4wm+Md5BkCk6uGcRUvOvyjtc4bENvVSO5jrBI=",
"ref": "refs/heads/main", "ref": "refs/heads/main",
"rev": "8bb75a223db3ea9471d05d74fbed3328334a9f78", "rev": "0a6e83005f1910b5c1ec78476fcffc05af47833a",
"revCount": 4904, "revCount": 4906,
"submodules": true, "submodules": true,
"type": "git", "type": "git",
"url": "https://github.com/hyprwm/Hyprland" "url": "https://github.com/hyprwm/Hyprland"
@ -645,11 +645,11 @@
}, },
"nixpkgs_3": { "nixpkgs_3": {
"locked": { "locked": {
"lastModified": 1719848872, "lastModified": 1720031269,
"narHash": "sha256-H3+EC5cYuq+gQW8y0lSrrDZfH71LB4DAf+TDFyvwCNA=", "narHash": "sha256-rwz8NJZV+387rnWpTYcXaRNvzUSnnF9aHONoJIYmiUQ=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "00d80d13810dbfea8ab4ed1009b09100cca86ba8", "rev": "9f4128e00b0ae8ec65918efeba59db998750ead6",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -37,27 +37,22 @@
(metric (metric
:label "󰕾" :label "󰕾"
:value volume :value volume
:onchange "pamixer --set-volume {}"
) )
(metric (metric
:label "󱐋" :label "󱐋"
:value {EWW_BATTERY.total_avg} :value {EWW_BATTERY.total_avg}
:onchange ""
) )
(metric (metric
:label "󰋊" :label "󰋊"
:value {round((1 - (EWW_DISK["/"].free / EWW_DISK["/"].total)) * 100, 0)} :value {round((1 - (EWW_DISK["/"].free / EWW_DISK["/"].total)) * 100, 0)}
:onchange ""
) )
(metric (metric
:label "" :label ""
:value {EWW_RAM.used_mem_perc} :value {EWW_RAM.used_mem_perc}
:onchange ""
) )
(metric (metric
:label "󰍛" :label "󰍛"
:value {EWW_CPU.avg} :value {EWW_CPU.avg}
:onchange ""
) )
time time
) )
@ -103,7 +98,7 @@
) )
) )
(defwidget metric [label value onchange] (defwidget metric [label value]
(box (box
:orientation "h" :orientation "h"
:class "metric" :class "metric"
@ -115,16 +110,14 @@
(scale (scale
:min 0 :min 0
:max 100 :max 100
:active {onchange != ""}
:value value :value value
:onchange onchange
) )
) )
) )
(defpoll volume (defpoll volume
:interval "1s" :interval "1s"
"pamixer --get-volume" "wpctl get-volume @DEFAULT_AUDIO_SINK@ | tr -dc '0-9' | sed 's/^0*//'"
) )
(defpoll time (defpoll time

View file

@ -117,10 +117,10 @@ in {
", XF86MonBrightnessDown, exec, ${lib.getExe pkgs.light} -U 5" ", XF86MonBrightnessDown, exec, ${lib.getExe pkgs.light} -U 5"
# Audio # Audio
", XF86AudioMute, exec, ${lib.getExe pkgs.pamixer} --sink 0 -t" ", XF86AudioMute, exec, ${pkgs.wireplumber}/bin/wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"
", XF86AudioRaiseVolume, exec, ${lib.getExe pkgs.pamixer} -i 5" ", XF86AudioRaiseVolume, exec, ${pkgs.wireplumber}/bin/wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.05+"
", XF86AudioLowerVolume, exec, ${lib.getExe pkgs.pamixer} -d 5" ", XF86AudioLowerVolume, exec, ${pkgs.wireplumber}/bin/wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.05-"
", XF86AudioMicMute, exec, ${lib.getExe pkgs.pamixer} --source 0 -t" ", XF86AudioMicMute, exec, ${pkgs.wireplumber}/bin/wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"
", XF86AudioPlay, exec, ${lib.getExe pkgs.playerctl} play-pause" ", XF86AudioPlay, exec, ${lib.getExe pkgs.playerctl} play-pause"
", XF86AudioStop, exec, ${lib.getExe pkgs.playerctl} stop" ", XF86AudioStop, exec, ${lib.getExe pkgs.playerctl} stop"
", XF86AudioNext, exec, ${lib.getExe pkgs.playerctl} next" ", XF86AudioNext, exec, ${lib.getExe pkgs.playerctl} next"

View file

@ -18,7 +18,7 @@
pwgen # password generator pwgen # password generator
rsync # better scp rsync # better scp
socat # socket cat socat # socket cat
sysz # better systemctl sysz # tui for systemctl
xdg-utils xdg-utils
]; ];
} }