latest user config

This commit is contained in:
2024-09-13 14:28:50 +02:00
parent cdcaee5943
commit 2f402fe686
59 changed files with 2336 additions and 670 deletions
+27 -9
View File
@@ -4,11 +4,11 @@
"spacing": 5,
"modules-left": ["group/sys", "tray", "hyprland/workspaces"],
"modules-center": ["mpris", "wlr/taskbar"],
"modules-right": ["group/stats", "group/net", "group/sound", "cava", "battery", "group/indicators", "custom/notification"],
"modules-right": ["custom/cpugov", "group/net", "group/sound", "cava", "group/indicators"],
"group/indicators": {
"orientation": "inherit",
"modules": [
"gamemode", "privacy", "custom/updates", "idle_inhibitor"
"gamemode", "custom/updates", "idle_inhibitor"
]
},
"group/net": {
@@ -57,7 +57,7 @@
"tooltip-format-ethernet": "󰱔 {ifname}",
"tooltip-format-disconnected": "Disconnected",
"max-length": 50,
"on-click": "nm-applet --indicator",
"on-click": "nm-connection-editor",
"format-icons": ["󱛅", "󱛂", "󱛃", "󱚽"],
"max-length": 5
},
@@ -67,8 +67,9 @@
},
"clock": {
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
"format-alt": "<b>{:%d.%m.%Y}</b>",
"format": "<b>{:%H:%M}</b>",
"format-alt": "<b>{:%d.%m.%Y %H:%M}</b>",
"format": "<b>{:%d.%m. %H:%M}</b>",
"timezone": "DE",
"calendar": {
"mode" : "month",
"mode-mon-col" : 3,
@@ -136,7 +137,8 @@
"default": "⏸",
"mpv": "🎵",
"spotify": "",
"firefox": "󰈹"
"firefox": "󰈹",
"mercury": "󰈹"
},
"status-icons": {
"paused": "⏸"
@@ -144,7 +146,15 @@
},
"custom/power": {
"format": "󰣇",
"on-click": "wlogout -P 1 -s -r 10 -c 10"
// "on-click": "wlogout -P 1 -s -r 10 -c 10"
"menu": "on-click",
"menu-file": "~/.config/waybar/power_menu.xml",
"menu-actions": {
"shutdown": "shutdown",
"reboot": "reboot",
"suspend": "systemctl suspend",
"hibernate": "systemctl hibernate"
}
},
"gamemode": {
"format": "{glyph}<small>{count}</small>",
@@ -161,9 +171,9 @@
"wlr/taskbar": {
"markup": true,
"format": "{icon} {title:.10}",
"icon-size": 16,
"icon-size": 20,
"tooltip-format": "{title:.100}",
"sort-by-app-id": true,
// "sort-by-app-id": true,
"on-click": "activate",
"on-click-middle": "close",
"on-right-middle": "minimize-raise",
@@ -193,6 +203,7 @@
},
"window-rewrite": {
"firefox": " ",
"mercury-default": " ",
"LibreWolf": " ",
"celluloid": " ",
"videostream": " ",
@@ -405,6 +416,13 @@
"tooltip-icon-size": 12
}
]
},
"custom/weather": {
"exec": "${HOME}/.config/waybar/waybar-weather Oberhausen+Germany",
"return-type": "json",
"format": "{}",
"tooltip": true,
"interval": 3600
}
}
+28
View File
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<object class="GtkMenu" id="menu">
<child>
<object class="GtkMenuItem" id="suspend">
<property name="label">Suspend</property>
</object>
</child>
<child>
<object class="GtkMenuItem" id="hibernate">
<property name="label">Hibernate</property>
</object>
</child>
<child>
<object class="GtkMenuItem" id="shutdown">
<property name="label">Shutdown</property>
</object>
</child>
<child>
<object class="GtkSeparatorMenuItem" id="delimiter1"/>
</child>
<child>
<object class="GtkMenuItem" id="reboot">
<property name="label">Reboot</property>
</object>
</child>
</object>
</interface>
+1 -1
View File
@@ -1,6 +1,6 @@
* {
border: none;
font-family: "Hack Nerd Font", sans-serif;
font-family: "JetBrainsMono Nerd Font", sans-serif;
font-size: 13px;
color:alpha(@theme_text_color, 0.8);
}
+11 -2
View File
@@ -1,6 +1,6 @@
* {
border: none;
font-family: "Hack Nerd Font", sans-serif;
font-family: "JetBrainsMono Nerd Font", sans-serif;
font-size: 13px;
color:alpha(@theme_text_color, 0.8);
}
@@ -84,11 +84,15 @@ window#waybar {
#custom-power {
margin-left:0;
margin-right:0;
padding-left:0;
}
#user {
padding-left:0;
font-weight:bold;
}
#custom-weather {
padding-left: 5px;
}
#stats .drawer-child {
@@ -102,6 +106,10 @@ window#waybar {
margin: 0;
}
#custom-notification {
padding-right:0
}
/**
* SOUND
**/
@@ -138,7 +146,8 @@ window#waybar {
}
#custom-updates {
padding-right:12px
padding-right:5px;
padding-left: 5px;
}
+19
View File
@@ -0,0 +1,19 @@
#!/usr/bin/env bash
for i in {1..5}
do
text=$(curl -s "https://wttr.in/$1?format=1")
if [[ $? == 0 ]]
then
text=$(echo "$text" | sed -E "s/\s+/ /g")
tooltip=$(curl -s "https://wttr.in/$1?format=4")
if [[ $? == 0 ]]
then
tooltip=$(echo "$tooltip" | sed -E "s/\s+/ /g")
tooltip="${tooltip//+/ }"
echo "{\"text\":\"$text\", \"tooltip\":\"$tooltip\"}"
exit
fi
fi
sleep 2
done
echo "{\"text\":\"error\", \"tooltip\":\"error\"}"