This commit is contained in:
Varris 2023-12-31 01:51:43 +01:00
parent 22fe9ba677
commit c7b3a60061
7 changed files with 0 additions and 331 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.1 KiB

View File

@ -1,81 +0,0 @@
$bg: rgba(40,40,40,0.8);
$fg: rgb(235,219,178);
$wsfg: rgb(235,219,178);
$wsbg: rgb(60,56,54);
$activewsbg: rgb(102,92,84);
$box-bg: rgb(80,73,69);
* {
all: unset; //Unsets everything so you can style everything from scratch
}
//Global Styles
.bar {
background-color: $bg;
color: $fg;
font-family: "JetBrainsMono Nerd Font";
font-size: 12px;
}
.window {
background-color: $box-bg;
border-radius: 10px;
padding: 0px 10px 0px 10px;
margin: 5px 0px 5px 10px;
}
.volume {
background-color: $box-bg;
border-radius: 10px 0px 0px 10px;
margin: 5px 0px 5px 0px;
padding: 0px 10px 0px 10px;
}
.mpd {
background-color: $box-bg;
border-radius: 0px 10px 10px 0px;
padding: 0px 10px 0px 10px;
margin: 5px 10px 5px 0px;
}
.date {
background-color: $box-bg;
border-radius: 10px;
padding: 0px 10px 0px 10px;
margin: 5px 10px 5px 0px;
}
.wswidget {
background-color: $box-bg;
border-radius: 10px;
margin: 5px 0px 5px 10px;
}
.w0, .w01, .w02, .w03, .w04, .w05, .w06, .w07, .w08, .w09, .w011, .w022, .w033, .w044, .w055, .w066, .w077, .w088, .w099 {
background-color: $wsbg;
padding: 3px 10px;
}
.w01, .w011, .w04, .w044 {
background-color: $wsbg;
border-radius: 10px 0px 0px 10px;
}
.w03, .w033, .w06, .w066 {
background-color: $wsbg;
border-radius: 0px 10px 10px 0px;
}
/* Occupied */
.w01, .w02, .w03, .w04, .w05, .w06, .w07, .w08, .w09 {
background-color: $wsbg;
}
/* Focused */
.w011, .w022, .w033, .w044, .w055, .w066, .w077, .w088, .w099 {
background-color: $activewsbg;
}

View File

@ -1,157 +0,0 @@
;; ----------------------------- right monitor
(defwidget bar0 []
(centerbox
:class "bar"
:orientation "h"
(left_side0)
(center)
(right_side)
)
)
(defwidget left_side0 []
(box
:space-evenly false
:orientation "h"
:spacing 5
(box
:class "wswidget"
:spacing 0
(workspaces0)
)
(box
:class "window"
window0)
)
)
;; ----------------------------- left monitor
(defwidget bar1 []
(centerbox
:class "bar"
:orientation "h"
(left_side1)
(center)
(right_side)
)
)
(defwidget left_side1 []
(box
:space-evenly false
:orientation "h"
:spacing 5
(box
:class "wswidget"
:spacing 0
(workspaces1)
)
(box
:class "window"
window1)
)
)
;; -----------------------------
(defwidget center []
(box
:space-evenly false
:spacing 5
(eventbox
:onscroll "pamixer `echo {} | sed 's/up/\-i/\' | sed 's/down/\-d/'` 10"
(box
:space-evenly false
:class "volume"
volume))
(box
:space-evenly false
:class "mpd"
mpd)
)
)
(defwidget right_side []
(box
:space-evenly false
:spacing 5
:halign "end"
(box
:space-evenly false
:orientation "h"
:class "date"
date)
)
)
;; ---------------------------- workspace widget
(deflisten workspace0
"scripts/workspaces.sh 0")
(defwidget workspaces0 []
(literal :content workspace0))
(deflisten workspace1
"scripts/workspaces.sh 1")
(defwidget workspaces1 []
(literal :content workspace1))
;; ---------------------------- window widget
(deflisten window0 "hyprland-activewindow `hyprctl monitors -j | jq -r \".[0].name\"`")
(deflisten window1 "hyprland-activewindow `hyprctl monitors -j | jq -r \".[1].name\"`")
(defwidget title0 []
(label :text "${window0}"))
(defwidget title1 []
(label :text "${window1}"))
;; -----------------------------
(defpoll volume
:initial ""
:interval "0.1s"
"scripts/get_volume.sh")
(deflisten mpd
:initial ""
"scripts/mpd_current_song.sh")
(defpoll date
:interval "1s"
"date '+%a %d, %B %H:%M'")
(defwindow bar0
:monitor 0
:windowtype "dock"
:geometry
(geometry :x "0%"
:y "0%"
:width "100%"
:height "32px"
:anchor "top center")
:exclusive true
(bar0))
(defwindow bar1
:monitor 1
:windowtype "dock"
:geometry
(geometry :x "0%"
:y "0%"
:width "100%"
:height "32px"
:anchor "top center")
:exclusive true
(bar1))

View File

@ -1,16 +0,0 @@
#!/usr/bin/env cached-nix-shell
#!nix-shell -i bash -p pamixer
volume=$(pamixer --get-volume)
if [[ $volume -eq 0 ]]; then
echo "$volume%"
elif [[ $volume -lt 25 ]]; then
echo "$volume%"
elif [[ $volume -lt 50 ]]; then
echo "$volume%"
elif [[ $volume -lt 75 ]]; then
echo "󰕾 $volume%"
else
echo "$volume%"
fi

View File

@ -1,19 +0,0 @@
#!/usr/bin/env cached-nix-shell
#!nix-shell -i bash -p mpc-cli
currentsong=""
state=""
while true; do
state=$(mpc status %state%)
current_song=$(mpc current)
if [[ $state == "playing" ]]; then
echo "$current_song"
elif [[ $state == "paused" && $current_song ]]; then
echo "󰏤 $current_song"
else
echo " stopped"
fi
mpc idle player &> /dev/null
done

View File

@ -1,47 +0,0 @@
#!/usr/bin/env cached-nix-shell
#!nix-shell -i bash -p hyprland socat jq
workspaces() {
unset -v \
o1 o2 o3 o4 o5 o6 \
f1 f2 f3 f4 f5 f6
# Get occupied workspaces and remove workspace -99 aka scratchpad if it exists
# a="$(hyprctl workspaces | grep ID | awk '{print $3}')"
# a="$(echo "${a//-99/}" | sed '/^[[:space:]]*$/d')"
ows="$(hyprctl workspaces -j | jq '.[] | del(select(.id == -99)) | .id')"
for num in $ows; do
export o"$num"="$num"
done
# Get Focused workspace for current monitor ID
arg="$1"
num="$(hyprctl monitors -j | jq --argjson arg "$arg" '.[] | select(.id == $arg).activeWorkspace.id')"
export f"$num"="$num"
if [[ $arg -eq 0 ]]; then
echo "(eventbox :onscroll \"echo {} | sed -e 's/up/-1/g' -e 's/down/+1/g' | xargs hyprctl dispatch workspace\" \
(box :class \"workspace\" :orientation \"h\" :space-evenly \"false\" \
(button :onclick \"hyprctl dispatch workspace 1\" :class \"w0$o1$f1\" \"1\") \
(button :onclick \"hyprctl dispatch workspace 2\" :class \"w0$o2$f2\" \"2\") \
(button :onclick \"hyprctl dispatch workspace 3\" :class \"w0$o3$f3\" \"3\") \
)\
)"
elif [[ $arg -eq 1 ]]; then
echo "(eventbox :onscroll \"echo {} | sed -e 's/up/-1/g' -e 's/down/+1/g' | xargs hyprctl dispatch workspace\" \
(box :class \"workspace\" :orientation \"h\" :space-evenly \"false\" \
(button :onclick \"hyprctl dispatch workspace 4\" :class \"w0$o4$f4\" \"4\") \
(button :onclick \"hyprctl dispatch workspace 5\" :class \"w0$o5$f5\" \"5\") \
(button :onclick \"hyprctl dispatch workspace 6\" :class \"w0$o6$f6\" \"6\") \
)\
)"
fi
}
workspaces $1
socat -u UNIX-CONNECT:/tmp/hypr/"$HYPRLAND_INSTANCE_SIGNATURE"/.socket2.sock - | while read -r; do
workspaces $1
done

View File

@ -1,11 +0,0 @@
{
pkgs,
inputs,
...
}: {
programs.eww = {
enable = false;
package = inputs.eww-systray.packages.${pkgs.system}.eww-wayland;
configDir = ./config;
};
}