working theme changing

This commit is contained in:
2023-09-18 15:54:53 +02:00
parent 21550245c3
commit 9bbc679b81
10 changed files with 536 additions and 36 deletions

View File

@@ -15,5 +15,4 @@ configuration{
sidebar-mode: true;
}
@theme "catppuccin-mocha"
@theme "catppuccin-macchiato"

View 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%"

View 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