add eww
This commit is contained in:
36
eww/bar/eww.scss
Normal file
36
eww/bar/eww.scss
Normal file
@ -0,0 +1,36 @@
|
||||
/* @use "~/.cache/wal/colors.scss" as cols; */
|
||||
|
||||
* { all: unset; }
|
||||
|
||||
// Variable Color's
|
||||
$background: #1A1B26;
|
||||
$foreground: #A9B1D6;
|
||||
|
||||
$black: #24283B;
|
||||
$gray: #565F89;
|
||||
$red: #F7768E;
|
||||
$green: #73DACA;
|
||||
$yellow: #E0AF68;
|
||||
$blue: #7AA2F7;
|
||||
$magenta: #BB9AF7;
|
||||
$cyan: #7DCFFF;
|
||||
$white: $foreground;
|
||||
|
||||
.bar{
|
||||
background-color: $background;
|
||||
border-radius: 20px;
|
||||
padding: 5px;
|
||||
// font-size: contain;
|
||||
}
|
||||
|
||||
.icons{
|
||||
margin: .3rem;
|
||||
}
|
||||
|
||||
.launcher{
|
||||
color: $cyan;
|
||||
}
|
||||
|
||||
.tooltip {
|
||||
background-color: white;
|
||||
}
|
71
eww/bar/eww.yuck
Normal file
71
eww/bar/eww.yuck
Normal file
@ -0,0 +1,71 @@
|
||||
(defpoll checkupdates :interval "60s" "scripts/systemupdates --check")
|
||||
(defpoll checkupdatescount :interval "60s" "scripts/systemupdates --count")
|
||||
(defpoll current-brightness :interval "1s" "brightnessctl -m -d intel_backlight | awk -F, '{print substr($4, 0, length($4)-1)}' | tr -d '%'")
|
||||
|
||||
(defwindow bar
|
||||
:monitor 0
|
||||
:stacking "fg"
|
||||
:windowtype "dock"
|
||||
:exclusive true
|
||||
:geometry (geometry
|
||||
:x "0"
|
||||
:y "10"
|
||||
:width "98%"
|
||||
:height "3%"
|
||||
:anchor "top center"
|
||||
)
|
||||
(bar)
|
||||
)
|
||||
|
||||
|
||||
(defwidget bar []
|
||||
(box
|
||||
:class "bar"
|
||||
:orientatoin "h"
|
||||
;; :space-evenly false
|
||||
(box
|
||||
:orientation "h"
|
||||
:halign "start"
|
||||
(launcher)
|
||||
)
|
||||
(box
|
||||
:orientation "h"
|
||||
:halign "end"
|
||||
:hexpand "true"
|
||||
;; :space-evenly "false"
|
||||
(bright)
|
||||
(power)
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
(defwidget launcher []
|
||||
(box
|
||||
:orientation "h"
|
||||
(button
|
||||
:class "launcher"
|
||||
:tooltip "App Launcher"
|
||||
:onclick "bash ~/dotfiles/scripts/applauncher.sh"
|
||||
""
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
(defwidget bright []
|
||||
(box
|
||||
:class "icons"
|
||||
:orientation "h"
|
||||
:space-evenly "false"
|
||||
:tooltip current-brightness
|
||||
""
|
||||
)
|
||||
)
|
||||
|
||||
(defwidget power []
|
||||
(button
|
||||
:class "icons"
|
||||
:tooltip "wlogout"
|
||||
:onclick "bash ~/dotfiles/scripts/wlogout.sh" "⏻"
|
||||
)
|
||||
)
|
||||
|
Reference in New Issue
Block a user