[eww] Add window title & update slider

This commit is contained in:
Viyurz 2024-10-21 09:58:57 +02:00
parent 03d3acfc6a
commit c8ab72f878
Signed by: Viyurz
SSH key fingerprint: SHA256:IskOHTmhHSJIvAt04N6aaxd5SZCVWW1Guf9tEcxIMj8
3 changed files with 13 additions and 10 deletions

View file

@ -18,9 +18,6 @@
.bar > * > *:nth-child(even) {
color: $accent1;
scale slider {
background-color: $disabled;
}
scale trough {
background-color: $background1;
}
@ -31,11 +28,8 @@
.bar > * > *:nth-child(odd) {
color: $accent2;
scale slider {
background-color: $disabled2;
}
scale trough {
background-color: $background2;
background-color: $disabled2;
}
scale trough highlight {
background-color: $accent2;
@ -51,8 +45,7 @@ scale {
}
scale slider {
min-height: 1px;
min-width: 1px;
all: unset;
}
scale trough {

View file

@ -12,6 +12,9 @@
(defpoll day :interval "1m" "date +'%d'")
(defpoll year :interval "1m" "date +'%Y'")
; Window Title
(deflisten window-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}'")
; Widgets
@ -21,6 +24,12 @@
)
)
(defwidget bar-middle []
(label :limit-width 2
:text "${window-title}"
)
)
(defwidget bar-right []
(box :halign "end"
:space-evenly false
@ -95,6 +104,7 @@
(defwidget bar []
(box
(bar-left)
(bar-middle)
(bar-right)
)
)

View file

@ -14,7 +14,7 @@ cfg pull
Required packages:
```
paru -S blueman bottom cliphist eww fastfetch firefox git gnome-keyring grim hyprcursor hypridle hyprland hyprlock hyprpaper imagemagick jq kitty mako networkmanager network-manager-applet nm-connection-editor noto-fonts noto-fonts-cjk noto-fonts-emoji oh-my-zsh-git otf-font-awesome pacman-contrib pastel pavucontrol pipewire-alsa pipewire-jack pipewire-pulse polkit-gnome python-pywal python-pywalfox rose-pine-cursor rose-pine-hyprcursor slurp swayosd-git ttf-jetbrains-mono-nerd udiskie waybar wl-clipboard wlogout wofi xdg-desktop-portal-hyprland zoxide zsh zsh-autosuggestions
paru -S blueman bottom cliphist eww fastfetch firefox git gnome-keyring grim hyprcursor hypridle hyprland hyprlock hyprpaper imagemagick jq kitty mako networkmanager network-manager-applet nm-connection-editor noto-fonts noto-fonts-cjk noto-fonts-emoji oh-my-zsh-git otf-font-awesome pacman-contrib pastel pavucontrol pipewire-alsa pipewire-jack pipewire-pulse polkit-gnome python-pywal python-pywalfox rose-pine-cursor rose-pine-hyprcursor slurp socat swayosd-git ttf-jetbrains-mono-nerd udiskie waybar wl-clipboard wlogout wofi xdg-desktop-portal-hyprland zoxide zsh zsh-autosuggestions
```
Optional packages: