work on eww
This commit is contained in:
parent
342b68dea4
commit
e74a9cfe4a
18 changed files with 11 additions and 27 deletions
|
@ -124,8 +124,6 @@
|
|||
services.blueman.enable = true;
|
||||
|
||||
# Enable sound with pipewire.
|
||||
sound.enable = true;
|
||||
hardware.pulseaudio.enable = false;
|
||||
security.rtkit.enable = true;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
|
|
|
@ -86,7 +86,7 @@
|
|||
|
||||
; VOLUME
|
||||
|
||||
(defpoll volume_percent :interval "0.1s" :initial "40" "amixer sget Master | grep 'Left:' | awk -F'[][]' '{ print $2 }' | tr -d '%'")
|
||||
(defpoll volume_percent :interval "0.1s" :initial "40" "wpctl get-volume @DEFAULT_AUDIO_SINK@ | awk -F. '{print $2}'")
|
||||
|
||||
(defwidget volume []
|
||||
(eventbox
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
hyprctl activewindow -j | jq --raw-output .title
|
||||
socat -u UNIX-CONNECT:/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock - | stdbuf -o0 awk -F '>>|,' '/^activewindow>>/{print $3}'
|
|
@ -6,6 +6,6 @@ spaces (){
|
|||
}
|
||||
|
||||
spaces
|
||||
socat -u UNIX-CONNECT:/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock - | while read -r line; do
|
||||
socat -u UNIX-CONNECT:$XDG_RUNTIME_DIR/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock - | while read -r line; do
|
||||
spaces
|
||||
done
|
|
@ -1,7 +0,0 @@
|
|||
(deflisten window :initial "" "sh ./widgets/window-title/get-window-title.sh")
|
||||
(defwidget windowtitle []
|
||||
(box :class "title"
|
||||
(label :text {window == "null" ? "" : window} :class "title"
|
||||
)
|
||||
)
|
||||
)
|
|
@ -102,8 +102,6 @@
|
|||
services.blueman.enable = true;
|
||||
|
||||
# Enable sound with pipewire.
|
||||
sound.enable = true;
|
||||
hardware.pulseaudio.enable = false;
|
||||
security.rtkit.enable = true;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
|
|
|
@ -27,16 +27,11 @@ $base: #24273a;
|
|||
$mantle: #1e2030;
|
||||
$crust: #181926;
|
||||
|
||||
*{
|
||||
* {
|
||||
all: unset;
|
||||
font-family: "monospace";
|
||||
}
|
||||
|
||||
// .bar {
|
||||
// background-color: $base;
|
||||
// border-radius: 16px;
|
||||
// }
|
||||
|
||||
.container {
|
||||
background-color: $base;
|
||||
border-radius: 16px;
|
||||
|
@ -71,16 +66,19 @@ tooltip label {
|
|||
color: $green;
|
||||
margin: 0px 10px 0px 10px;
|
||||
}
|
||||
|
||||
.bluetooth_icon {
|
||||
font-size: 18px;
|
||||
color: $blue;
|
||||
margin: 0px 10px 0px 10px;
|
||||
}
|
||||
|
||||
.cpu_text {
|
||||
font-size: 18px;
|
||||
color: $maroon;
|
||||
margin: 0px 10px 0px 10px;
|
||||
}
|
||||
|
||||
.mem_text {
|
||||
font-size: 18px;
|
||||
color: $yellow;
|
|
@ -74,13 +74,13 @@
|
|||
|
||||
; VOLUME
|
||||
|
||||
(defpoll volume_percent :interval "0.1s" :initial "40" "amixer sget Master | grep 'Left:' | awk -F'[][]' '{ print $2 }' | tr -d '%'")
|
||||
(defpoll volume_percent :interval "0.1s" :initial "40" "wpctl get-volume @DEFAULT_AUDIO_SINK@ | awk -F. '{print $2}'")
|
||||
|
||||
(defwidget volume []
|
||||
(eventbox
|
||||
:active true
|
||||
:onclick "/usr/bin/env pavucontrol &"
|
||||
:onscroll "if [ {} = 'up' ]; then wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%+; else wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%-; fi" ; wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%-
|
||||
:onscroll "if [ {} = 'up' ]; then wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%+; else wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%-; fi"
|
||||
(box
|
||||
:space-evenly false
|
||||
:orientation "h"
|
|
@ -1,6 +1,6 @@
|
|||
(deflisten window :initial "" "sh ./widgets/window-title/get-window-title.sh")
|
||||
(defwidget windowtitle []
|
||||
(box :class "title"
|
||||
(box :class "title" :visible {window == "null" ? false : true}
|
||||
(label :text {window == "null" ? "" : window} :class "title"
|
||||
)
|
||||
)
|
|
@ -1,3 +1,3 @@
|
|||
#!/usr/bin/env bash
|
||||
#!/bin/sh
|
||||
hyprctl activewindow -j | jq --raw-output .title
|
||||
socat -u UNIX-CONNECT:$XDG_RUNTIME_DIR/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock - | stdbuf -o0 awk -F '>>|,' '/^activewindow>>/{print $3}'
|
|
@ -3,7 +3,7 @@
|
|||
imports = [
|
||||
./../common
|
||||
./hypr/hyprland.nix
|
||||
./../common/eww
|
||||
./eww
|
||||
];
|
||||
/* The home.stateVersion option does not have a default and must be set */
|
||||
home.stateVersion = "24.05";
|
||||
|
|
Loading…
Reference in a new issue