Update eww & hypr

This commit is contained in:
2024-07-07 15:46:10 +03:00
parent 656680409b
commit ee421c60a3
5 changed files with 47 additions and 3 deletions
+6 -1
View File
@@ -4,6 +4,7 @@
(include "./bar/kbd-layout.yuck")
(include "./bar/media.yuck")
(include "./bar/power.yuck")
(include "./bar/updates.yuck")
(include "./bar/weather.yuck")
(include "./bar/workspaces.yuck")
@@ -26,7 +27,11 @@
(box :class "bar" :orientation "h"
(workspaces :monitor-workspaces monitor-workspaces)
(active-window)
(bar-tray)
(box :orientation "h" :halign "end" :space-evenly false :spacing 8
(pacman-updates-widget)
(bar-tray)
)
)
)
+13
View File
@@ -0,0 +1,13 @@
(defpoll pacman-updates :initial 0 :interval "3s" "checkupdates | wc -l")
(defwidget pacman-updates-widget []
(box :class "pacman-update-widget"
(eventbox
:class "pacman-update-widget-inner ${pacman-updates > 0 ? 'has-updates' : ''}"
:cursor "pointer"
:onclick "${pacman-updates > 0 ? 'alacritty -e sudo pacman -Syu &' : ''}"
(label :class "update-text" :text " ${pacman-updates}")
)
)
)
+24
View File
@@ -1,5 +1,29 @@
$tray-item-interactive-margin: 6px 0;
.pacman-update-widget {
margin: $tray-item-interactive-margin;
.pacman-update-widget-inner {
border-radius: 4px;
&.has-updates {
background-color: rgb(228, 137, 137);
color: #fff;
font-weight: bold;
transition: background-color 0.4s ease;
&:hover {
background-color: rgb(187, 100, 100);
}
.update-text {
padding: 0 8px;
}
}
}
}
.kbd-layout-tray-item {
margin: $tray-item-interactive-margin;
+1 -1
View File
@@ -10,4 +10,4 @@ exec-once = swww-daemon --format xrgb &
exec-once = swaync &
exec-once = blueman-applet &
exec-once = blueman-applet & nm-applet &
+3 -1
View File
@@ -5,4 +5,6 @@ hyprctl dispatch -- exec '[workspace 3 silent]' telegram-desktop &
sleep 1
hyprctl dispatch -- exec '[workspace 3 silent]' todoist &
sleep 1
hyprctl dispatch -- exec '[workspace 3 silent]' alacritty -e btop &
hyprctl dispatch -- exec '[workspace 3 silent]' alacritty -e ~/Scripts/start-tmux &
tmux send -t default 'btop' ENTER;