Update: 2024-10-15

This commit is contained in:
2024-10-15 23:11:47 +03:00
parent 79b2e2f7b1
commit eae6ecaebb
808 changed files with 238018 additions and 205905 deletions

View File

@@ -57,114 +57,114 @@ $warning: #e0af68;
$yellow: #e0af68;
* {
all: unset; //Unsets everything so you can style everything from scratch
all: unset; //Unsets everything so you can style everything from scratch
}
//Global Styles
.bar,
.bar-1 {
background-color: rgba(22, 22, 30, 0.7);
color: $fg;
font-family: "JetBrainsMono NF";
font-weight: bold;
background-color: rgba(22, 22, 30, 0.7);
color: $fg;
font-family: "JetBrainsMono NF";
font-weight: bold;
}
// Styles on classes (see eww.yuck for more information)
.sidestuff slider {
all: unset;
all: unset;
}
.metric scale trough highlight {
all: unset;
background-color: $error;
border-radius: 10px;
all: unset;
background-color: $error;
border-radius: 10px;
}
.metric scale trough {
all: unset;
background-color: $bg_visual;
border-radius: 50px;
min-height: 3px;
min-width: 50px;
margin-left: 1px;
margin-right: 2px;
all: unset;
background-color: $bg_visual;
border-radius: 50px;
min-height: 3px;
min-width: 50px;
margin-left: 1px;
margin-right: 2px;
}
.metric scale trough highlight {
all: unset;
// background-color: $fg_sidebar;
background-color: $teal;
color: $bg;
border-radius: 10px;
all: unset;
// background-color: $fg_sidebar;
background-color: $teal;
color: $bg;
border-radius: 10px;
}
.metric scale trough {
all: unset;
background-color: $bg_visual;
border-radius: 50px;
min-height: 3px;
min-width: 50px;
margin-left: 1px;
margin-right: 2px;
all: unset;
background-color: $bg_visual;
border-radius: 50px;
min-height: 3px;
min-width: 50px;
margin-left: 1px;
margin-right: 2px;
}
.label-ram {
font-size: large;
font-size: large;
}
.music {
&.playing {
color: $teal;
}
&.playing {
color: $teal;
}
&.paused {
color: $terminal_black;
}
&.paused {
color: $terminal_black;
}
}
.workspaces {
.current {
color: $hint;
}
.current {
color: $hint;
}
}
.icon-module {
& > &__icon {
margin-right: 5px;
}
&>&__icon {
margin-right: 5px;
}
}
.cpu {
&.warning {
color: $warning;
}
&.warning {
color: $warning;
}
&.danger {
color: $red;
}
&.danger {
color: $red;
}
}
.battery {
&.warning {
color: $warning;
}
&.warning {
color: $warning;
}
&.critical {
color: $red;
}
&.critical {
color: $red;
}
&.Charging {
color: $teal;
}
&.Charging {
color: $teal;
}
}
.network {
&.disconnected {
color: $error;
}
&.disconnected {
color: $error;
}
}
.workspaces button:hover {
background: $bg_highlight;
background: $bg_highlight;
}

View File

@@ -34,12 +34,14 @@
(defwidget workspaces []
(eventbox :onscroll "bash ~/.config/eww/scripts/change-active-workspace {} ${current_workspace}" :class "workspaces"
(box :space-evenly true :halign "start" :spacing 10
(box :space-evenly true :halign "start" :spacing 5
(label :text "${workspaces}${current_workspace}" :visible false)
(for workspace in workspaces
(button :onclick "hyprctl dispatch workspace ${workspace.id}"
(box :class "workspaces ${workspace.id == current_workspace ? "current" : ""}"
(label :text "${workspace.id}")))))))
(eventbox :onclick "hyprctl dispatch workspace ${workspace.id}"
(box :class "workspace-entry ${workspace.window > 0 ? "current" : ""}"
(label :text "${workspace.id}" :class "workspace-entry ${workspace.id == current_workspace ? "current" : ""}" )))))))
;; (box :class "workspace-entry ${workspace.id == current_workspace ? "current" : ""}"
;; (label :text "${workspace.id}")))))))
(deflisten window :initial "..." "bash ~/.config/eww/scripts/get-window-title")
@@ -159,9 +161,6 @@
(label
:text "${EWW_NET.wlan0.NET_DOWN == 0 && EWW_NET.wlan0.NET_UP == 0 ? "Disconnected ⚠" : ""}")))
;; "network": {
;; "format-wifi": "{essid} ({signalStrength}%) ",
;; "format-ethernet": "{ipaddr}/{cidr} ",
@@ -178,7 +177,7 @@
:geometry (geometry
:x "0%"
:y "0%"
:width "100%"
:width "133.333%"
:height "10px"
:anchor "top center")
:reserve (struts :side "top" :distance "4%")

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
function clamp {
min=$1
max=$2

View File

@@ -4,5 +4,3 @@ hyprctl monitors -j | jq '.[] | select(.focused) | .activeWorkspace.id'
socat -u UNIX-CONNECT:$XDG_RUNTIME_DIR/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock - |
stdbuf -o0 awk -F '>>|,' -e '/^workspace>>/ {print $2}' -e '/^focusedmon>>/ {print $3}'
# socat -u UNIX-CONNECT:/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock - | stdbuf -o0 awk -F '>>|,' -e '/^workspace>>/ {print $2}' -e '/^focusedmon>>/ {print $3}'

View File

@@ -1,2 +1,3 @@
#!/bin/sh
socat -u UNIX-CONNECT:/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock - | stdbuf -o0 awk -F '>>|,' '/^activewindow>>/{print $3}'
hyprctl activewindow -j | jq --raw-output .title
socat -u UNIX-CONNECT:$XDG_RUNTIME_DIR/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock - | stdbuf -o0 awk -F '>>|,' '/^activewindow>>/{print $3}'

View File

@@ -1,11 +1,11 @@
#!/bin/bash
#!/usr/bin/env bash
spaces (){
windows=$(hyprctl workspaces -j | jq 'map({id: .id}) | sort_by(.id)')
echo $windows
WORKSPACE_WINDOWS=$(hyprctl workspaces -j | jq 'map({key: .id | tostring, value: .windows}) | from_entries')
seq 1 10 | jq --argjson windows "${WORKSPACE_WINDOWS}" --slurp -Mc 'map(tostring) | map({id: ., windows: ($windows[.]//0)})'
}
spaces
socat -u UNIX-CONNECT:/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock - | while read -r line; do
socat -u UNIX-CONNECT:$XDG_RUNTIME_DIR/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock - | while read -r line; do
spaces
done