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

View file

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

View file

@ -14,7 +14,7 @@ cfg pull
Required packages: 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: Optional packages: