alot of messing with what I like for a desktop
This commit is contained in:
parent
2e8b8b98a2
commit
5a834ec5a3
14 changed files with 204 additions and 88 deletions
53
eww/eww.scss
53
eww/eww.scss
|
@ -44,7 +44,7 @@ $darktransparent: rgba(40, 42, 54, 0.97);
|
|||
.bar_class {
|
||||
background-color: $backtransparent;
|
||||
border-radius: 20px 20px 20px 20px;
|
||||
box-shadow: 2px 2px 5px 5px #101010;
|
||||
box-shadow: 5px 5px 4px 4px #202020;
|
||||
margin: 8px 18px 13px 18px;
|
||||
}
|
||||
.module {
|
||||
|
@ -121,31 +121,56 @@ tooltip label {
|
|||
border-radius: 10px;
|
||||
}
|
||||
.brightbar {
|
||||
margin-bottom: 2px;
|
||||
color: $base09;
|
||||
background-color: $widget-background;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
.bright_label {
|
||||
color: $base09;
|
||||
}
|
||||
|
||||
.bright_icon {
|
||||
font-size: 18;
|
||||
color: $base09;
|
||||
margin: 0px 15px 0px 3px;
|
||||
}
|
||||
|
||||
.volbar trough highlight {
|
||||
background-color: $base08;
|
||||
border-radius: 10px;
|
||||
}
|
||||
.volbar {
|
||||
margin-bottom: 2px;
|
||||
|
||||
.vol_module, .bright_module {
|
||||
background-color: rgba(00, 00, 00, 0.0);
|
||||
margin: 0px 3px 0px 5px;
|
||||
}
|
||||
|
||||
.volbar {
|
||||
color: $base08;
|
||||
background-color: $widget-background;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
.vol_label {
|
||||
color: $base08;
|
||||
}
|
||||
|
||||
.volume_icon {
|
||||
font-size: 18;
|
||||
color: $base08;
|
||||
margin: 0px 15px 0px 3px;
|
||||
}
|
||||
|
||||
|
||||
.module_essid {
|
||||
font-size: 18;
|
||||
color: $base0C;
|
||||
// color: $base0C;
|
||||
margin: 0px 10px 0px 0px;
|
||||
}
|
||||
.module-wif {
|
||||
.module-wifi {
|
||||
font-size: 18;
|
||||
color: $base0C;
|
||||
margin: 0px 10px 0px 10px;
|
||||
// color: $base0C;
|
||||
margin: 0px 25px 0px 0px;
|
||||
}
|
||||
|
||||
.iconlauncher {
|
||||
|
@ -170,7 +195,13 @@ tooltip label {
|
|||
color: $base0D;
|
||||
margin: 8px 11px 8px 8px;
|
||||
}
|
||||
.iconbat, .iconmem, .iconcpu {
|
||||
.iconvol {
|
||||
margin: 10px 11px 8px 8px;
|
||||
}
|
||||
.iconbright {
|
||||
margin: 10px 14px 10px 8px;
|
||||
}
|
||||
.iconbat, .iconmem, .iconcpu .iconvol .iconbright {
|
||||
font-size: 12;
|
||||
}
|
||||
.mem_label {
|
||||
|
@ -221,7 +252,7 @@ tooltip label {
|
|||
.works {
|
||||
font-size: 22px;
|
||||
font-weight: normal;
|
||||
margin: 2px 0px 0px 20px;
|
||||
margin: 7px 0px 0px 20px;
|
||||
background-color: rgba(00, 00, 00, 0.0);
|
||||
}
|
||||
|
||||
|
|
179
eww/eww.yuck
179
eww/eww.yuck
|
@ -31,8 +31,36 @@
|
|||
;; widgets
|
||||
|
||||
(defwidget workspaces []
|
||||
(literal
|
||||
:content workspace))
|
||||
(literal
|
||||
:content workspace))
|
||||
|
||||
;; (defwidget workspaces []
|
||||
;; (box
|
||||
;; :class "works"
|
||||
;; :orientation "h"
|
||||
;; :spacing 5
|
||||
;; :space-evenly "false"
|
||||
;; :valign "center"
|
||||
;; (button
|
||||
;; :onclick "hyprctl dispatch workspace 1"
|
||||
;; :onrightclick "hyprctl dispatch workspace 1 && $HOME/.config/hypr/themes/neon/scripts/default_app"
|
||||
;; :class "0$o1$f1" "")
|
||||
;; (button
|
||||
;; :onclick "hyprctl dispatch workspace 2"
|
||||
;; :onrightclick "hyprctl dispatch workspace 2 && $HOME/.config/hypr/themes/neon/scripts/default_app"
|
||||
;; :class "0$o2$f2" "")
|
||||
;; (button
|
||||
;; :onclick "hyprctl dispatch workspace 3"
|
||||
;; :onrightclick "hyprctl dispatch workspace 3 && $HOME/.config/hypr/themes/neon/scripts/default_app"
|
||||
;; :class "0$o3$f3" "")
|
||||
;; (button
|
||||
;; :onclick "hyprctl dispatch workspace 4"
|
||||
;; :onrightclick "hyprctl dispatch workspace 4 && $HOME/.config/hypr/themes/neon/scripts/default_app"
|
||||
;; :class "0$o4$f4" "")
|
||||
;; (button
|
||||
;; :onclick "hyprctl dispatch workspace 5"
|
||||
;; :onrightclick "hyprctl dispatch workspace 5 && $HOME/.config/hypr/themes/neon/scripts/default_app"
|
||||
;; :class "0$o5$f5" "")))
|
||||
|
||||
(defwidget appnames []
|
||||
(eventbox
|
||||
|
@ -64,57 +92,58 @@
|
|||
:class "app-button"
|
||||
:onclick "hyprctl dispatch killactive 1" ""))))))
|
||||
|
||||
(defwidget bright []
|
||||
(eventbox
|
||||
:onhover "${EWW_CMD} update br_reveal=true"
|
||||
:onhoverlost "${EWW_CMD} update br_reveal=false"
|
||||
:visible {HOST == "kaladin" ? "false" : "true"}
|
||||
(box
|
||||
:class "module"
|
||||
:space-evenly "false"
|
||||
:orientation "h"
|
||||
:spacing "3"
|
||||
(scale
|
||||
:class "brightbar"
|
||||
:value brightness_percent
|
||||
:orientation "h"
|
||||
:tooltip "${brightness_percent}%"
|
||||
:max 100
|
||||
:min 0
|
||||
:onchange "brightnessctl s {}%" )
|
||||
(label
|
||||
:text ""
|
||||
:class "bright_icon"
|
||||
:tooltip "brightness"))))
|
||||
;; (defwidget bright []
|
||||
;; (eventbox
|
||||
;; :onhover "${EWW_CMD} update br_reveal=true"
|
||||
;; :onhoverlost "${EWW_CMD} update br_reveal=false"
|
||||
;; :visible {HOST == "kaladin" ? "false" : "true"}
|
||||
;; (box
|
||||
;; :class "module"
|
||||
;; :space-evenly "false"
|
||||
;; :orientation "h"
|
||||
;; :spacing "3"
|
||||
;; (scale
|
||||
;; :class "brightbar"
|
||||
;; :value brightness_percent
|
||||
;; :orientation "h"
|
||||
;; :tooltip "${brightness_percent}%"
|
||||
;; :max 100
|
||||
;; :min 0
|
||||
;; :onchange "brightnessctl s {}%" )
|
||||
;; (label
|
||||
;; :text ""
|
||||
;; :class "bright_icon"
|
||||
;; :tooltip "brightness"))))
|
||||
|
||||
(defwidget volume []
|
||||
(eventbox
|
||||
:onhover "${EWW_CMD} update vol_reveal=true"
|
||||
:onhoverlost "${EWW_CMD} update vol_reveal=false"
|
||||
(box
|
||||
:class "module-2"
|
||||
:space-evenly "false"
|
||||
:orientation "h"
|
||||
:spacing "3"
|
||||
(scale
|
||||
:class "volbar"
|
||||
:value volume_percent
|
||||
:draw-value: true
|
||||
:orientation "h"
|
||||
:tooltip "${volume_percent}%"
|
||||
:max 150
|
||||
:min 0
|
||||
:onchange "pamixer --set-volume {}" )
|
||||
(button
|
||||
:onclick "scripts/pop audio"
|
||||
:class "volume_icon"
|
||||
"墳"))))
|
||||
;; (defwidget volume []
|
||||
;; (eventbox
|
||||
;; :onhover "${EWW_CMD} update vol_reveal=true"
|
||||
;; :onhoverlost "${EWW_CMD} update vol_reveal=false"
|
||||
;; (box
|
||||
;; :class "module-2"
|
||||
;; :space-evenly "false"
|
||||
;; :orientation "h"
|
||||
;; :spacing "3"
|
||||
;; (scale
|
||||
;; :class "volbar"
|
||||
;; :value volume_percent
|
||||
;; :draw-value: true
|
||||
;; :orientation "h"
|
||||
;; :tooltip "${volume_percent}%"
|
||||
;; :max 150
|
||||
;; :min 0
|
||||
;; :onchange "pamixer --set-volume {}" )
|
||||
;; (button
|
||||
;; :onclick "scripts/pop audio"
|
||||
;; :class "volume_icon"
|
||||
;; "墳"))))
|
||||
|
||||
(defwidget wifi []
|
||||
(eventbox
|
||||
:onhover "${EWW_CMD} update wifi_rev=true"
|
||||
:onhoverlost "${EWW_CMD} update wifi_rev=false"
|
||||
(box
|
||||
:class "wifi"
|
||||
:vexpand "false"
|
||||
:hexpand "false"
|
||||
:space-evenly "false"
|
||||
|
@ -126,7 +155,7 @@
|
|||
:class "module_essid"
|
||||
:text ESSID_WLAN))
|
||||
(button
|
||||
:class "module-wif"
|
||||
:class "module-wifi"
|
||||
:onclick "networkmanager_dmenu"
|
||||
WLAN_ICON))))
|
||||
|
||||
|
@ -150,6 +179,46 @@
|
|||
:text "${round(EWW_BATTERY['BAT1'].capacity, 0)}%"
|
||||
:class "bat_label")))
|
||||
|
||||
(defwidget bright []
|
||||
(box
|
||||
:class "bright_module"
|
||||
:vexpand "false"
|
||||
:hexpand "false"
|
||||
:spacing 5
|
||||
(circular-progress
|
||||
:class "brightbar"
|
||||
:value brightness_percent
|
||||
:thickness 3
|
||||
(button
|
||||
:class "iconbright"
|
||||
;; :onclick "scripts/pop audio"
|
||||
:tooltip "${brightness_percent}%"
|
||||
""))
|
||||
(label
|
||||
:text brightness_percent
|
||||
:class "bright_label")))
|
||||
|
||||
(defwidget volume []
|
||||
(box
|
||||
:class "vol_module"
|
||||
:vexpand "false"
|
||||
:hexpand "false"
|
||||
:spacing 5
|
||||
(circular-progress
|
||||
:class "volbar"
|
||||
:value volume_percent
|
||||
:thickness 3
|
||||
:max 150
|
||||
:min 0
|
||||
(button
|
||||
:class "iconvol"
|
||||
:onclick "scripts/pop audio"
|
||||
:tooltip "${volume_percent}%"
|
||||
"墳"))
|
||||
(label
|
||||
:text volume_percent
|
||||
:class "vol_label")))
|
||||
|
||||
(defwidget cpu []
|
||||
(box
|
||||
:class "cpu_module"
|
||||
|
@ -205,13 +274,7 @@
|
|||
:spacing "0"
|
||||
(label
|
||||
:text clock_full
|
||||
:class "clock_time_class" )
|
||||
(revealer :transition "slideleft"
|
||||
:reveal {HOST == "kaladin" ? false : time_rev}
|
||||
:duration "250ms"
|
||||
(button
|
||||
:class "clock_date_class"
|
||||
:onclick "scripts/pop calendar" clock_date)))))
|
||||
:class "clock_time_class" ))))
|
||||
|
||||
(defwidget notif_button []
|
||||
(box
|
||||
|
@ -274,14 +337,14 @@
|
|||
:space-evenly false
|
||||
:halign "end"
|
||||
:class "right_modules"
|
||||
(bright)
|
||||
(volume)
|
||||
(wifi)
|
||||
(sep)
|
||||
(cpu)
|
||||
(mem)
|
||||
(volume)
|
||||
(bright)
|
||||
(bat)
|
||||
(sep)
|
||||
(wifi)
|
||||
(notif_button)
|
||||
(nextcloud_button)))
|
||||
|
||||
|
@ -300,7 +363,7 @@
|
|||
:x "15px"
|
||||
:y "3px"
|
||||
:width "100%"
|
||||
:height "0px"
|
||||
:height "60px"
|
||||
:anchor "bottom center")
|
||||
:stacking "fg"
|
||||
:windowtype "dock"
|
||||
|
|
|
@ -20,11 +20,12 @@ module() {
|
|||
echo "(box \
|
||||
:orientation \"h\" \
|
||||
:halign \"start\" \
|
||||
:valign \"center\" \
|
||||
:space-evenly false \
|
||||
(image \
|
||||
:class \"app-icon\" \
|
||||
:path \"$iconpath\" \
|
||||
:image-width \"18\") \
|
||||
:image-width \"28\") \
|
||||
(label \
|
||||
:class \"app-name\" \
|
||||
:limit-width \"35\" \
|
||||
|
|
|
@ -49,7 +49,7 @@ fi
|
|||
}
|
||||
module() {
|
||||
#output eww widget
|
||||
echo "(eventbox :onscroll \"echo {} | sed -e 's/up/-1/g' -e 's/down/+1/g' | xargs hyprctl dispatch workspace\" \
|
||||
echo "(eventbox :onscroll \"echo {} | sed -e 's/up/-1/g' -e 's/down/+1/g' | xargs hyprctl dispatch workspace\" :valign \"center\" \
|
||||
(box :class \"works\" :orientation \"h\" :spacing 5 :space-evenly \"false\" :valign \"center\" \
|
||||
(button :onclick \"hyprctl dispatch workspace 1\" :onrightclick \"hyprctl dispatch workspace 1 && $HOME/.config/hypr/themes/neon/scripts/default_app\" :class \"0$o1$f1\" \"${ic[1]}\") \
|
||||
(button :onclick \"hyprctl dispatch workspace 2\" :onrightclick \"hyprctl dispatch workspace 2 && $HOME/.config/hypr/themes/neon/scripts/default_app\" :class \"0$o2$f2\" \"${ic[2]}\") \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue