summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2023-04-08 20:12:40 +0200
committerRaymaekers Luca <raymaekers.luca@gmail.com>2023-04-08 20:12:40 +0200
commitd309fa6cf1db09ca655f072746b37ea57479eda6 (patch)
treede9bdee84b0526129feb24e994488aa1c17d9bfd /bin
parentb46b799be2f93d5263f6b3965af5121424cfeee0 (diff)
added tothemes
Diffstat (limited to 'bin')
-rwxr-xr-xbin/guiscripts/tothemes8
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/guiscripts/tothemes b/bin/guiscripts/tothemes
new file mode 100755
index 0000000..cef752f
--- /dev/null
+++ b/bin/guiscripts/tothemes
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+tofi_path="$HOME/.config/tofi"
+choice="$(find "$tofi_path/themes" -type f |
+ xargs -I {} basename {} |
+ tofi --placeholder-text "theme")"
+
+ln -sf "$tofi_path/themes/${choice:-nord}" $tofi_path/config