mirror of
https://github.imc.re/void-land/hyprland-void-dots
synced 2025-04-26 16:23:44 +02:00
feat: eww bar workspaces new style
This commit is contained in:
parent
59d4681c05
commit
ffd6dd5220
6 changed files with 373 additions and 393 deletions
2
.vscode/settings.json
vendored
2
.vscode/settings.json
vendored
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"files.associations": {
|
||||
"*.yuck": "commonlisp"
|
||||
"*.yuck": "clojure"
|
||||
},
|
||||
}
|
|
@ -1,17 +1,18 @@
|
|||
.vbar {
|
||||
min-width: 2.4em;
|
||||
padding: 0.5em;
|
||||
min-width: 2.6em;
|
||||
padding: 0.4em;
|
||||
background-color: $base;
|
||||
|
||||
.workspaces {
|
||||
@include widget;
|
||||
padding: 4px;
|
||||
|
||||
* {
|
||||
transition: all cubic-bezier(0.165, 0.84, 0.44, 1) 500ms;
|
||||
}
|
||||
|
||||
.workspace {
|
||||
margin: 6px;
|
||||
margin: 8px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
|
|
|
@ -15,13 +15,7 @@ fi
|
|||
format_file() {
|
||||
local file="$1"
|
||||
echo "Formatting $file"
|
||||
vim -E -s "$file" <<EOF
|
||||
:source /path/to/your/yuck.vim
|
||||
:filetype plugin indent on
|
||||
:set filetype=yuck
|
||||
:normal gg=G
|
||||
:wq
|
||||
EOF
|
||||
vim -c "execute 'normal! =G' | :wq!" "$file"
|
||||
}
|
||||
|
||||
last_run=0
|
||||
|
@ -30,7 +24,7 @@ inotifywait -m -r -e modify,create,delete,move --format '%w%f' "$WATCH_DIR" | wh
|
|||
if [[ "$file" == *.yuck ]]; then
|
||||
current_time=$(date +%s%N | cut -b1-13)
|
||||
|
||||
if ((current_time - last_run > 500)); then
|
||||
if ((current_time - last_run > 2500)); then
|
||||
sleep 0.1
|
||||
if [ -e "$file" ]; then
|
||||
format_file $file
|
||||
|
|
|
@ -14,11 +14,12 @@
|
|||
|
||||
(defwidget wallpaperselectwidget []
|
||||
(eventbox
|
||||
;; :onhoverlost "${EWW_CMD} close wallpaperselect"
|
||||
|
||||
(box
|
||||
:orientation "v"
|
||||
:class "unbarwidget"
|
||||
:space-evenly false
|
||||
|
||||
(box
|
||||
:orientation "h"
|
||||
:space-evenly false
|
||||
|
@ -65,6 +66,4 @@
|
|||
:orientation "h"
|
||||
:space-evenly true
|
||||
(label :text "${wall.views} ")
|
||||
(label :text "${wall.fav} ")
|
||||
))))
|
||||
))))
|
||||
(label :text "${wall.fav} ")))))))))
|
||||
|
|
|
@ -12,8 +12,6 @@
|
|||
(centerbox
|
||||
:class "vbar"
|
||||
:orientation "v"
|
||||
|
||||
;; :space-evenly true
|
||||
(top)
|
||||
(middle)
|
||||
(bottom)
|
||||
|
@ -38,6 +36,7 @@
|
|||
:vexpand false
|
||||
:class "center_modules"
|
||||
:height "180"
|
||||
|
||||
(playerctl)
|
||||
))
|
||||
|
||||
|
@ -79,11 +78,7 @@
|
|||
:duration 500
|
||||
|
||||
(box
|
||||
:height 45
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
:height 45)))
|
||||
)
|
||||
)
|
||||
)
|
||||
|
@ -102,6 +97,7 @@
|
|||
:onclick "${EWW_CMD} update revealControlpanel=${ !revealControlpanel }"
|
||||
:onrightclick "${EWW_CMD} open wallpaperselect --toggle"
|
||||
:cursor "pointer"
|
||||
|
||||
(label :text "" :halign "center" :class "launchicon" :style "padding: 2px 0px;"))))
|
||||
|
||||
(defwidget systemtray []
|
||||
|
@ -113,7 +109,6 @@
|
|||
(eventbox
|
||||
:onclick "${EWW_CMD} update revealSystray=${!revealSystray}"
|
||||
(label :angle {!revealSystray ? 90 : 270} :class "revealtouch" :tooltip "reveal systray" :text ""))
|
||||
|
||||
(revealer
|
||||
:reveal revealSystray
|
||||
:transition "slideup"
|
||||
|
@ -131,7 +126,6 @@
|
|||
:orientation "v"
|
||||
:space-evenly false
|
||||
:class "widget clock"
|
||||
|
||||
(label :text thour)
|
||||
(label :text tmin)
|
||||
(label :text tpm))))
|
||||
|
@ -182,7 +176,6 @@
|
|||
(revealer
|
||||
:reveal {!reveal3}
|
||||
:transition "slidedown"
|
||||
;; (tasklist)))))
|
||||
))))
|
||||
|
||||
(defwidget playerctl []
|
||||
|
@ -193,7 +186,6 @@
|
|||
:orientation "v"
|
||||
:space-evenly true
|
||||
:spacing 6
|
||||
|
||||
(eventbox
|
||||
:onclick "${EWW_CMD} open music --toggle"
|
||||
(image :path { pcover == "" ? "./assets/image/emptympd.png" : pcover } :image-width 20 :image-height 20))
|
||||
|
@ -204,7 +196,6 @@
|
|||
(button :onclick "playerctl next"
|
||||
(label :class "picon" :text ""))
|
||||
)))
|
||||
|
||||
(defwidget sliders []
|
||||
(box
|
||||
:class "widget"
|
||||
|
@ -214,7 +205,6 @@
|
|||
:valign "end"
|
||||
(button :onclick "alacritty -e nmtui" :tooltip wifi_essid
|
||||
(label :class "icon" :style "font-size: 18px;" :text wifi_icon))
|
||||
|
||||
(reveal_on_hover
|
||||
:var revealVolume
|
||||
:varname "revealVolume"
|
||||
|
@ -234,7 +224,6 @@
|
|||
:max 101
|
||||
:min 0
|
||||
:flipped true))
|
||||
|
||||
(reveal_on_hover
|
||||
:var revealMicrophone
|
||||
:varname "revealMicrophone"
|
||||
|
@ -252,7 +241,6 @@
|
|||
:max 101
|
||||
:min 0
|
||||
:flipped true))
|
||||
|
||||
(reveal_on_hover
|
||||
:var revealBrightness
|
||||
:varname "revealBrightness"
|
||||
|
@ -271,7 +259,6 @@
|
|||
:min 0
|
||||
:flipped true))
|
||||
))
|
||||
|
||||
;; other windows
|
||||
(defwindow calendar
|
||||
:geometry (geometry :x "0"
|
||||
|
@ -286,7 +273,6 @@
|
|||
(box
|
||||
:class "unbarwidget"
|
||||
(calendar :day calendar_day :year calendar_year :class "cal"))))
|
||||
|
||||
(defwindow music
|
||||
:geometry (geometry :x "0"
|
||||
:y "0"
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit f39d12118656eb34ff64e857bde04250609d78b5
|
||||
Subproject commit 70cd2cc2b6f50df0af9b117ceb214a543471a603
|
Loading…
Add table
Reference in a new issue