Skip to content

Commit 1c0dffd

Browse files
github-actions[bot]kRHYME7zeerayneNew9camit
authored
chore: release automated changes from dev to master (#809)
* fix #794 (comment) Use starship as default * Waybar config improvements (#813) * fix: rename `mod` -> `mode` option for waybar * fix: drop obsolete `gtk-layer-shell` option for waybar * Fix: .hyde.zshrc no longer exists (#825) * fix: removing testing lines they must've forgtten to remove it after testing * fix: hyde.zshrc no longer exists * revert: add whatever this thing is --------- Co-authored-by: Khing <[email protected]> Co-authored-by: amit <[email protected]> * make battery detection dynamic and improve icon support (#830) - Dynamically detect any BAT* (BAT0, BAT1, etc.) instead of hardcoding BAT0 - Support systems with non-standard battery numbering - Expand charging icons to 11 levels * fix: [Bug]: icon not visible waybar #841 Close #841 * feat: make satty behave like swappy * Refactor: If your waybar crashes try to move `~/.config/waybar` and run `waybar.py` This should make user configs be respected. --------- Co-authored-by: kRHYME7 <[email protected]> Co-authored-by: Ilya Bogdanov <[email protected]> Co-authored-by: 9c <[email protected]> Co-authored-by: amit <[email protected]> Co-authored-by: Valery Teslenko <[email protected]> Co-authored-by: Rubin Bhandari <[email protected]>
1 parent cc76f03 commit 1c0dffd

File tree

28 files changed

+98
-71
lines changed

28 files changed

+98
-71
lines changed

Configs/.config/satty/config.toml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
[general]
2+
# Start Satty in fullscreen mode
3+
fullscreen = false
4+
# Exit directly after copy/save action
5+
early-exit = true
6+
# Draw corners of rectangles round if the value is greater than 0 (0 disables rounded corners)
7+
corner-roundness = 12
8+
# Select the tool on startup [possible values: pointer, crop, line, arrow, rectangle, text, marker, blur, brush]
9+
initial-tool = "brush"
10+
# Configure the command to be called on copy, for example `wl-copy`
11+
copy-command = "wl-copy"
12+
# Increase or decrease the size of the annotations
13+
annotation-size-factor = 1
14+
# Filename to use for saving action. Omit to disable saving to file. Might contain format specifiers: https://docs.rs/chrono/latest/chrono/format/strftime/index.html
15+
output-filename = "/tmp/test-%Y-%m-%d_%H:%M:%S.png"
16+
# Action to perform when the Enter key is pressed [possible values: save-to-clipboard, save-to-file]
17+
action-on-enter = "save-to-clipboard"
18+
# After copying the screenshot, save it to a file as well
19+
save-after-copy = false
20+
# Hide toolbars by default
21+
default-hide-toolbars = false
22+
# The primary highlighter to use, the other is accessible by holding CTRL at the start of a highlight [possible values: block, freehand]
23+
primary-highlighter = "block"
24+
disable-notifications = false
25+
26+
# Font to use for text annotations
27+
[font]
28+
family = "Roboto"
29+
style = "Bold"
30+
31+
# Custom colours for the colour palette
32+
[color-palette]
33+
# These will be shown in the toolbar for quick selection
34+
palette = [
35+
"#dc143c",
36+
"#00ffff",
37+
"#ff1493",
38+
"#ffd700",
39+
"#008000",
40+
]

Configs/.config/waybar/config.jsonc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22
"layer": "top",
33
"output": ["*"],
44
"position": "top",
5-
"mod": "dock",
5+
"mode": "dock",
66
"exclusive": true,
77
"passthrough": false,
8-
"gtk-layer-shell": true,
98
"reload_style_on_change": true,
109
"include": [
1110
"$XDG_CONFIG_HOME/waybar/modules/*json*", // This can be used on waybar-git

Configs/.local/lib/hyde/battery.sh

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,15 @@ fi
2525
total_capacity=0
2626
battery_count=0
2727

28+
# Find the first available battery
29+
battery_path=""
30+
for bat in /sys/class/power_supply/BAT*; do
31+
if [[ -d "$bat" ]]; then
32+
battery_path="$bat"
33+
break
34+
fi
35+
done
36+
2837
for capacity in /sys/class/power_supply/BAT*/capacity; do
2938
if [[ -f "$capacity" ]]; then
3039
total_capacity=$((total_capacity + $(<"$capacity")))
@@ -42,11 +51,12 @@ average_capacity=$((total_capacity / battery_count))
4251
index=$((average_capacity / 10))
4352

4453
# Define icons for charging, discharging, and status
45-
charging_icons=("" "" "" "" "" "" "")
54+
# Charging icons from 0% to 100% (last icons repeated to fill 11 levels)
55+
charging_icons=("" "" "" "" "" "" "" "" "" "" "")
4656
discharging_icons=("󰂎" "󰁺" "󰁻" "󰁼" "󰁽" "󰁾" "󰁿" "󰂀" "󰂁" "󰂂" "󰁹")
4757
status_icons=("" "X" "󰂇") # Add appropriate icons for different statuses
4858

49-
battery_status=$(cat /sys/class/power_supply/BAT0/status)
59+
battery_status=$(cat "$battery_path/status")
5060

5161
# Parse format options
5262
formats=("$@")

Configs/.local/share/waybar/layouts/dock#sample.jsonc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
"exclusive": true,
1010
"height": 10,
1111
"fixed-center": true,
12-
"gtk-layer-shell": true,
1312
"reload_style_on_change": true,
1413
"name": "dock#sample",
1514
"include": [

Configs/.local/share/waybar/layouts/hyprdots/01.jsonc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@
44
"*"
55
],
66
"position": "top",
7-
"mod": "dock",
7+
"mode": "dock",
88
"height": 10,
99
"exclusive": true,
1010
"passthrough": false,
11-
"gtk-layer-shell": true,
1211
"reload_style_on_change": true,
1312
"include": [
1413
"$XDG_CONFIG_HOME/waybar/modules/*json*",

Configs/.local/share/waybar/layouts/hyprdots/02.jsonc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@
55
"*"
66
],
77
"position": "top",
8-
"mod": "dock",
8+
"mode": "dock",
99
"height": 10,
1010
"exclusive": true,
1111
"passthrough": false,
12-
"gtk-layer-shell": true,
1312
"reload_style_on_change": true,
1413
"include": [
1514
"$XDG_CONFIG_HOME/waybar/modules/*json*",

Configs/.local/share/waybar/layouts/hyprdots/03.jsonc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@
55
"*"
66
],
77
"position": "bottom",
8-
"mod": "dock",
8+
"mode": "dock",
99
"height": 10,
1010
"exclusive": true,
1111
"passthrough": false,
12-
"gtk-layer-shell": true,
1312
"reload_style_on_change": true,
1413
"include": [
1514
"$XDG_CONFIG_HOME/waybar/modules/*json*",

Configs/.local/share/waybar/layouts/hyprdots/04.jsonc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,10 @@
66
"*"
77
],
88
"position": "top",
9-
"mod": "dock",
9+
"mode": "dock",
1010
"height": 10,
1111
"exclusive": true,
1212
"passthrough": false,
13-
"gtk-layer-shell": true,
1413
"reload_style_on_change": true,
1514
"include": [
1615
"$XDG_CONFIG_HOME/waybar/modules/*json*",

Configs/.local/share/waybar/layouts/hyprdots/05.jsonc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,10 @@
66
"*"
77
],
88
"position": "top",
9-
"mod": "dock",
9+
"mode": "dock",
1010
"height": 10,
1111
"exclusive": true,
1212
"passthrough": false,
13-
"gtk-layer-shell": true,
1413
"reload_style_on_change": true,
1514
"include": [
1615
"$XDG_CONFIG_HOME/waybar/modules/*json*",

Configs/.local/share/waybar/layouts/hyprdots/06.jsonc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,10 @@
66
"*"
77
],
88
"position": "bottom",
9-
"mod": "dock",
9+
"mode": "dock",
1010
"height": 10,
1111
"exclusive": true,
1212
"passthrough": false,
13-
"gtk-layer-shell": true,
1413
"reload_style_on_change": true,
1514
"include": [
1615
"$XDG_CONFIG_HOME/waybar/modules/*json*",

0 commit comments

Comments
 (0)