Skip to content

Commit cfa64b1

Browse files
kRHYME7zeerayne
authored andcommitted
Merge branch 'dev' into replace-cat-with-bat
2 parents 06d8622 + 735dcc2 commit cfa64b1

File tree

7 files changed

+73
-28
lines changed

7 files changed

+73
-28
lines changed
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/.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/lib/hyde/hyprlock.shβ€Ž

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -320,9 +320,6 @@ if [ -z "${*}" ]; then
320320
print_log -sec "hyprlock" -stat "setting" " $HYDE_CACHE_HOME/wallpapers/hyprlock.png"
321321
"${scrDir}/wallpaper.sh" -s "$(readlink "${HYDE_THEME_DIR}/wall.set")" --backend hyprlock
322322
fi
323-
# A simple cleanup as hyprlock fragments memory after sleep
324-
pkill -x hyprlock >/dev/null 2>&1
325-
trap 'pkill -x hyprlock' EXIT
326323
uwsm app -- hyprlock || hyprlock
327324
exit 0
328325
fi

β€ŽConfigs/.local/share/waybar/modules/hyprland-window.jsoncβ€Ž

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,24 @@
44
"rotate": 0,
55
"separate-outputs": true,
66
"rewrite": {
7-
"(.*)@archlinux:(.*)": "$1 \uf489",
8-
"(.*) \u2014 Mozilla Firefox": "$1 \udb80\ude39",
9-
"(.*)Mozilla Firefox": "Firefox \udb80\ude39",
10-
"(.*) - Visual Studio Code": "$1 \udb82\ude1e",
11-
"(.*)Visual Studio Code": "Code \udb82\ude1e",
12-
"(.*) - Code - OSS": "$1 \udb82\ude1e",
13-
"(.*)Code - OSS": "Code \udb82\ude1e",
14-
"(.*) \u2014 Dolphin": "$1 \udb80\ude4b",
15-
"(.*)Spotify": "Spotify \udb81\udcc7",
16-
"(.*)Steam": "Steam \udb81\udcd3",
17-
"(.*) - Discord": "$1 \uf1ff ",
18-
"(.*)Netflix": "Netflix \udb81\udf46 ",
19-
"(.*) \u2014 Google chrome": "$1 \ue743 ",
20-
"(.*)Google chrome": "Google chrome \ue743 ",
21-
"(.*) \u2014 Github": "$1 \ue709 ",
22-
"(.*)Github": "Github \ue709",
23-
"(.*)Spotify Free": "Spotify \udb81\udcc7",
24-
"(.*)Spotify Premiun": "Spotify \udb81\udcc7"
7+
"(.*)@archlinux:(.*)": "$1 \uf489β€…",
8+
"(.*) \u2014 Mozilla Firefox": "$1 \udb80\ude39β€…",
9+
"(.*)Mozilla Firefox": "Firefox \udb80\ude39β€…",
10+
"(.*) - Visual Studio Code": "$1 \udb82\ude1eβ€…",
11+
"(.*)Visual Studio Code": "Code \udb82\ude1eβ€…",
12+
"(.*) - Code - OSS": "$1 \udb82\ude1eβ€…",
13+
"(.*)Code - OSS": "Code \udb82\ude1eβ€…",
14+
"(.*) \u2014 Dolphin": "$1 \udb80\ude4bβ€…",
15+
"(.*)Spotify": "Spotify \udb81\udcc7β€…",
16+
"(.*)Steam": "Steam \udb81\udcd3β€…",
17+
"(.*) - Discord": "$1 \uf1ffβ€…",
18+
"(.*)Netflix": "Netflix \udb81\udf46β€…",
19+
"(.*) \u2014 Google chrome": "$1 \ue743β€…",
20+
"(.*)Google chrome": "Google chrome \ue743β€…",
21+
"(.*) \u2014 Github": "$1 \ue709β€…",
22+
"(.*)Github": "Github \ue709β€…",
23+
"(.*)Spotify Free": "Spotify \udb81\udcc7β€…",
24+
"(.*)Spotify Premiun": "Spotify \udb81\udcc7β€…"
2525
},
2626
"max-length": 50
2727
}

β€ŽConfigs/.zshrcβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# 2. ~/.zshenv - for updating the zsh environment variables handled by HyDE // this will be modified across updates
66

77
# ο‘„ Plugins ο‘„
8-
# oh-my-zsh plugins are loaded in ~/.hyde.zshrc file, see the file for more information
8+
# oh-my-zsh plugins are loaded in ~/.user.zsh file, see the file for more information
99

1010
# ο‘„ Aliases ο‘„
1111
# Add aliases here

β€ŽScripts/install_aur.shβ€Ž

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ if chk_list "aurhlpr" "${aurList[@]}"; then
1717
exit 0
1818
fi
1919

20-
echo "llego aqui :O"
21-
exit 1
2220
aurhlpr="${1:-yay-bin}"
2321

2422
if [ -d "$HOME/Clone" ]; then

β€ŽScripts/restore_cfg.psvβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ P|${HOME}/.config/Code/User|settings.json|visual-studio-code-bin
5959
P|${HOME}/.config/VSCodium/User|settings.json|vscodium
6060

6161
ο‘„ Bar ο‘„
62-
P|${HOME}/.config/waybar|user-style.css|waybar
63-
S|${HOME}/.config/waybar|modules styles layouts menus config.jsonc theme.css style.css|waybar
62+
P|${HOME}/.config/waybar|user-style.css config.jsonc theme.css style.css|waybar
63+
I|${HOME}/.config/waybar|modules styles layouts menus|waybar
6464
S|${HOME}/.local/share|waybar|waybar
6565

6666
ο‘„ Terminal ο‘„

0 commit comments

Comments
Β (0)