mirror of
https://github.com/eRgo35/dots.git
synced 2025-12-16 15:36:11 +01:00
working theme changing
This commit is contained in:
@@ -15,5 +15,4 @@ configuration{
|
||||
sidebar-mode: true;
|
||||
}
|
||||
|
||||
@theme "catppuccin-mocha"
|
||||
|
||||
@theme "catppuccin-macchiato"
|
||||
|
||||
18
rofi/.config/rofi/config.rasi.in
Normal file
18
rofi/.config/rofi/config.rasi.in
Normal file
@@ -0,0 +1,18 @@
|
||||
configuration{
|
||||
modi: "run,drun,window";
|
||||
icon-theme: "Oranchelo";
|
||||
show-icons: true;
|
||||
terminal: "alacritty";
|
||||
drun-display-format: "{icon} {name}";
|
||||
location: 0;
|
||||
disable-history: false;
|
||||
hide-scrollbar: true;
|
||||
display-drun: " Apps ";
|
||||
display-run: " Run ";
|
||||
display-window: " Window";
|
||||
display-Network: " Network";
|
||||
display-calc: " Calc";
|
||||
sidebar-mode: true;
|
||||
}
|
||||
|
||||
@theme "catppuccin-%s%"
|
||||
19
rofi/.config/rofi/theme-patcher.sh
Executable file
19
rofi/.config/rofi/theme-patcher.sh
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Target file
|
||||
target_file="$HOME/.config/rofi/config.rasi"
|
||||
theme_file="$HOME/.cache/dusk/pywal"
|
||||
|
||||
cp $target_file.in $target_file.tmp
|
||||
|
||||
theme="macchiato"
|
||||
|
||||
if grep -q '#eff1f5' "$theme_file"; then
|
||||
theme="latte"
|
||||
fi
|
||||
|
||||
sed -i "s/%s%/${theme}/g" $target_file.tmp
|
||||
|
||||
# Finally, replace target file with our updated one
|
||||
rm $target_file
|
||||
mv $target_file.tmp $target_file
|
||||
Reference in New Issue
Block a user