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;
|
services.blueman.enable = true;
|
||||||
|
|
||||||
# Enable sound with pipewire.
|
# Enable sound with pipewire.
|
||||||
sound.enable = true;
|
|
||||||
hardware.pulseaudio.enable = false;
|
|
||||||
security.rtkit.enable = true;
|
security.rtkit.enable = true;
|
||||||
services.pipewire = {
|
services.pipewire = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
@ -86,7 +86,7 @@
|
||||||
|
|
||||||
; VOLUME
|
; 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 []
|
(defwidget volume []
|
||||||
(eventbox
|
(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
|
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
|
spaces
|
||||||
done
|
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;
|
services.blueman.enable = true;
|
||||||
|
|
||||||
# Enable sound with pipewire.
|
# Enable sound with pipewire.
|
||||||
sound.enable = true;
|
|
||||||
hardware.pulseaudio.enable = false;
|
|
||||||
security.rtkit.enable = true;
|
security.rtkit.enable = true;
|
||||||
services.pipewire = {
|
services.pipewire = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
@ -27,16 +27,11 @@ $base: #24273a;
|
||||||
$mantle: #1e2030;
|
$mantle: #1e2030;
|
||||||
$crust: #181926;
|
$crust: #181926;
|
||||||
|
|
||||||
*{
|
* {
|
||||||
all: unset;
|
all: unset;
|
||||||
font-family: "monospace";
|
font-family: "monospace";
|
||||||
}
|
}
|
||||||
|
|
||||||
// .bar {
|
|
||||||
// background-color: $base;
|
|
||||||
// border-radius: 16px;
|
|
||||||
// }
|
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
background-color: $base;
|
background-color: $base;
|
||||||
border-radius: 16px;
|
border-radius: 16px;
|
||||||
|
@ -71,16 +66,19 @@ tooltip label {
|
||||||
color: $green;
|
color: $green;
|
||||||
margin: 0px 10px 0px 10px;
|
margin: 0px 10px 0px 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bluetooth_icon {
|
.bluetooth_icon {
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
color: $blue;
|
color: $blue;
|
||||||
margin: 0px 10px 0px 10px;
|
margin: 0px 10px 0px 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.cpu_text {
|
.cpu_text {
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
color: $maroon;
|
color: $maroon;
|
||||||
margin: 0px 10px 0px 10px;
|
margin: 0px 10px 0px 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mem_text {
|
.mem_text {
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
color: $yellow;
|
color: $yellow;
|
|
@ -74,13 +74,13 @@
|
||||||
|
|
||||||
; VOLUME
|
; 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 []
|
(defwidget volume []
|
||||||
(eventbox
|
(eventbox
|
||||||
:active true
|
:active true
|
||||||
:onclick "/usr/bin/env pavucontrol &"
|
: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
|
(box
|
||||||
:space-evenly false
|
:space-evenly false
|
||||||
:orientation "h"
|
:orientation "h"
|
|
@ -1,6 +1,6 @@
|
||||||
(deflisten window :initial "" "sh ./widgets/window-title/get-window-title.sh")
|
(deflisten window :initial "" "sh ./widgets/window-title/get-window-title.sh")
|
||||||
(defwidget windowtitle []
|
(defwidget windowtitle []
|
||||||
(box :class "title"
|
(box :class "title" :visible {window == "null" ? false : true}
|
||||||
(label :text {window == "null" ? "" : window} :class "title"
|
(label :text {window == "null" ? "" : window} :class "title"
|
||||||
)
|
)
|
||||||
)
|
)
|
|
@ -1,3 +1,3 @@
|
||||||
#!/usr/bin/env bash
|
#!/bin/sh
|
||||||
hyprctl activewindow -j | jq --raw-output .title
|
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}'
|
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 = [
|
imports = [
|
||||||
./../common
|
./../common
|
||||||
./hypr/hyprland.nix
|
./hypr/hyprland.nix
|
||||||
./../common/eww
|
./eww
|
||||||
];
|
];
|
||||||
/* The home.stateVersion option does not have a default and must be set */
|
/* The home.stateVersion option does not have a default and must be set */
|
||||||
home.stateVersion = "24.05";
|
home.stateVersion = "24.05";
|
||||||
|
|
Loading…
Reference in a new issue