Update script names

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2023-10-03 14:44:07 +01:00
parent 9da042ec2a
commit a066ededf1
3 changed files with 22 additions and 7 deletions

View File

@@ -0,0 +1,19 @@
#!/bin/bash
theme=$(grep -o -P '(?<=local theme = ").*(?=")' /home/nick/.config/awesome/theme/init.lua)
case $theme in
"nordic_legion")
new_theme="abstract_office"
;;
"abstract_office")
new_theme="nordic_legion"
;;
*)
esac
# Replace the theme in the init.lua file
sed -i "s/local theme = .*$/local theme = \"$new_theme\"/" /home/nick/.config/awesome/theme/init.lua
# Restart awesome
echo 'awesome.restart()' | awesome-client