eww stuff again

This commit is contained in:
dusk 2022-09-14 17:58:08 +03:00
parent 98e1690b67
commit 6c496f29db
Signed by: dusk
GPG Key ID: 1D8F8FAF2294D6EA
8 changed files with 44 additions and 10 deletions

View File

@ -25,6 +25,9 @@
upower upower
wget wget
wireplumber wireplumber
# fonts
material-icons
material-design-icons
]; ];
programs.eww = { programs.eww = {

View File

@ -12,7 +12,7 @@
* { * {
all: unset; all: unset;
font-family: Roboto; font-family: Comic Mono;
font-size: 1.3rem; font-size: 1.3rem;
} }

View File

@ -14,6 +14,5 @@
:text {net.essid})) :text {net.essid}))
(button (button
:class "module-net module" :class "module-net module"
:onclick "networkmanager_dmenu"
:style "color: ${net.color};" :style "color: ${net.color};"
{net.icon})))) {net.icon}))))

View File

@ -48,5 +48,5 @@ while true; do
STATE=$(cat /sys/class/power_supply/BAT0/status) STATE=$(cat /sys/class/power_supply/BAT0/status)
echo '{ "percentage": '"$CAPACITY"', "wattage": "'"$(wattage)"'", "status": "'"$(status)"'", "color": "'"$(color)"'" }' echo '{ "percentage": '"$CAPACITY"', "wattage": "'"$(wattage)"'", "status": "'"$(status)"'", "color": "'"$(color)"'" }'
sleep 3 sleep 60
done done

View File

@ -31,5 +31,5 @@ while true; do
echo '{ "icon": "'"$icon"'", "text": "'"$text"'", "color": "'"$color"'" }' echo '{ "icon": "'"$icon"'", "text": "'"$text"'", "color": "'"$color"'" }'
sleep 3 sleep 10
done done

View File

@ -16,5 +16,5 @@ while true; do
echo '{ "total": "'"$total"'", "used": "'"$used"'", "free": "'"$free"'", "percentage": '"$perc"' }' echo '{ "total": "'"$total"'", "used": "'"$used"'", "free": "'"$free"'", "percentage": '"$perc"' }'
sleep 3 sleep 5
done done

View File

@ -1,9 +1,11 @@
#!/usr/bin/env bash #!/usr/bin/env bash
while true; do while true; do
status=$(nmcli g | tail -n 1 | awk '{print $1}') info="$(iwctl station wlan0 show)"
signal=$(nmcli dev wifi | rg "\*" | awk '{ print $8 }') status=$(echo "$info" | awk 'FNR == 6 {print $2}')
essid=$(nmcli -t -f NAME connection show --active | head -n1) _signal=$(echo "$info" | awk 'FNR == 13 {print $2}')
signal=${_signal#"-"}
essid=$(echo "$info" | awk 'FNR == 7 {print $3}')
icons=("󰤯" "󰤟" "󰤢" "󰤥" "󰤨") icons=("󰤯" "󰤟" "󰤢" "󰤥" "󰤨")
@ -12,7 +14,7 @@ while true; do
text="" text=""
color="#988ba2" color="#988ba2"
else else
level=$(awk -v n="$signal" 'BEGIN{print int(n/20)}') level=$(awk -v n="$signal" 'BEGIN{print int(n/15)}')
if [ "$level" -gt 4 ]; then if [ "$level" -gt 4 ]; then
level=4 level=4
fi fi
@ -23,5 +25,5 @@ while true; do
echo '{ "essid": "'"$essid"'", "icon": "'"$icon"'", "color": "'"$color"'" }' echo '{ "essid": "'"$essid"'", "icon": "'"$icon"'", "color": "'"$color"'" }'
sleep 3 sleep 10
done done

View File

@ -54,6 +54,7 @@ in {
kdeconnect.enable = true; kdeconnect.enable = true;
# gnome stuffs # gnome stuffs
seahorse.enable = true; seahorse.enable = true;
dconf.enable = true;
}; };
services = { services = {
syncthing.folders = { syncthing.folders = {
@ -153,6 +154,35 @@ in {
size = 13; size = 13;
package = pkgs.comic-mono; package = pkgs.comic-mono;
}; };
home.pointerCursor = {
package = pkgs.quintom-cursor-theme;
name = "Quintom_Ink";
size = 24;
gtk.enable = true;
x11.enable = true;
};
gtk = {
enable = true;
font = {
inherit (config.settings.font) name package;
};
gtk2.configLocation = "${config.xdg.configHome}/gtk-2.0/gtkrc";
iconTheme = {
name = "Papirus-Dark";
package = pkgs.papirus-icon-theme;
};
theme = {
name = "Catppuccin-Orange-Dark-Compact";
package = pkgs.catppuccin-gtk.override {size = "compact";};
};
};
home = { home = {
homeDirectory = nixosConfig.users.users.patriot.home; homeDirectory = nixosConfig.users.users.patriot.home;
packages = with pkgs; [ packages = with pkgs; [