-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmove.sh
More file actions
executable file
·26 lines (21 loc) · 868 Bytes
/
move.sh
File metadata and controls
executable file
·26 lines (21 loc) · 868 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/run/current-system/sw/bin/bash
# Remove old colors config for Kitty and Rofi.
rm -f ~/.config/rofi/themes/colors-rofi-dark.rasi
rm -f ~/.config/kitty/colors.conf
# Extract colors from wal and create new config for Rofi and Kitty.
cp ~/.cache/wal/colors-rofi-dark.rasi ~/.config/rofi/themes/colors-rofi-dark.rasi
cat ~/.cache/wal/colors-kitty.conf | grep color > ~/.config/kitty/colors.conf
kitty @ set-colors ~/.config/kitty/colors.conf
# Apply colors to ALL kitty instances
# Method 1: Try to find all kitty sockets and apply to each
for socket in /tmp/kitty-*; do
if [ -S "$socket" ]; then
# echo "Applying colors to socket: $socket" >> /tmp/debug.log
kitty @ --to "unix:$socket" set-colors ~/.config/kitty/colors.conf &>/dev/null
fi
done
# Update Firefox
pywalfox update
# Clear the terminal and display fastfetch
clear
fastfetch