From ff31db83c32105f6c7c66820b2eb166326bafe4f Mon Sep 17 00:00:00 2001 From: Lucas Barbieri Date: Fri, 16 Feb 2024 11:02:35 -0300 Subject: [PATCH] add tofi change theme --- desktop/configs/tofi/config | 5 ++--- desktop/configs/tofi/melange.conf | 3 +++ desktop/configs/tofi/red.conf | 3 +++ desktop/configs/tofi/theme.conf | 1 + desktop/configs/tofi/white.conf | 3 +++ desktop/scripts/change-colorscheme.sh | 10 ++++++++++ 6 files changed, 22 insertions(+), 3 deletions(-) create mode 100644 desktop/configs/tofi/melange.conf create mode 100644 desktop/configs/tofi/red.conf create mode 120000 desktop/configs/tofi/theme.conf create mode 100644 desktop/configs/tofi/white.conf diff --git a/desktop/configs/tofi/config b/desktop/configs/tofi/config index 0129f0c..155ed7e 100644 --- a/desktop/configs/tofi/config +++ b/desktop/configs/tofi/config @@ -11,8 +11,7 @@ padding-left = 35% padding-top = 35% result-spacing = 25 num-results = 5 -background-color = #000B -text-color = #abb2bf -selection-color = #427573 fuzzy-match = true drun-launch = true + +include = theme.conf diff --git a/desktop/configs/tofi/melange.conf b/desktop/configs/tofi/melange.conf new file mode 100644 index 0000000..cebd06a --- /dev/null +++ b/desktop/configs/tofi/melange.conf @@ -0,0 +1,3 @@ +background-color = #fbf1c7DD +text-color = #54433a +selection-color = #a06d00 diff --git a/desktop/configs/tofi/red.conf b/desktop/configs/tofi/red.conf new file mode 100644 index 0000000..2d3959a --- /dev/null +++ b/desktop/configs/tofi/red.conf @@ -0,0 +1,3 @@ +background-color = #000000BB +text-color = #c9c1c9 +selection-color = #f85149 diff --git a/desktop/configs/tofi/theme.conf b/desktop/configs/tofi/theme.conf new file mode 120000 index 0000000..c6df683 --- /dev/null +++ b/desktop/configs/tofi/theme.conf @@ -0,0 +1 @@ +/yang/.config/tofi/melange.conf \ No newline at end of file diff --git a/desktop/configs/tofi/white.conf b/desktop/configs/tofi/white.conf new file mode 100644 index 0000000..5fcb06a --- /dev/null +++ b/desktop/configs/tofi/white.conf @@ -0,0 +1,3 @@ +background-color = #fdf6e3BB +text-color = #adbcbc +selection-color = #009c8f diff --git a/desktop/scripts/change-colorscheme.sh b/desktop/scripts/change-colorscheme.sh index 18c467e..b969ffd 100755 --- a/desktop/scripts/change-colorscheme.sh +++ b/desktop/scripts/change-colorscheme.sh @@ -36,6 +36,8 @@ case "$CHOICE" in # neofetch sed -i 's/image_source=.*/image_source="$HOME\/pics\/neofetch\/melangium.jpg"/g' ~/.config/neofetch/config.conf + # change tofi theme + ln -sf ~/.config/tofi/melange.conf ~/.config/tofi/theme.conf ;; white) @@ -53,6 +55,9 @@ case "$CHOICE" in # waybar white css killall waybar; waybar -s ~/.config/waybar/style-solarized.css > /dev/null & + # change tofi theme + ln -sf ~/.config/tofi/white.conf ~/.config/tofi/theme.conf + ;; red) @@ -72,8 +77,13 @@ case "$CHOICE" in # waybar black css killall waybar; waybar > /dev/null & + + # change tofi theme + ln -sf ~/.config/tofi/red.conf ~/.config/tofi/theme.conf + ;; *) + exit 0 ;; esac