mirror of
https://github.com/GeorgeSG/dotfiles.git
synced 2026-09-04 08:28:44 +00:00
Update eww & hypr
This commit is contained in:
@@ -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)
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
@@ -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}")
|
||||
)
|
||||
)
|
||||
)
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -10,4 +10,4 @@ exec-once = swww-daemon --format xrgb &
|
||||
|
||||
exec-once = swaync &
|
||||
|
||||
exec-once = blueman-applet &
|
||||
exec-once = blueman-applet & nm-applet &
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user