Reorganize files, use less extra options on Sway, move session commands to home-manager
This commit is contained in:
parent
5cdd7b1de8
commit
ee3b40f61f
25 changed files with 64 additions and 107 deletions
|
@ -157,14 +157,11 @@
|
|||
|
||||
notificationModule = {
|
||||
exec = pkgs.writeScript "notificationScript" ''
|
||||
# Run makoctl mode and store the output in a variable
|
||||
mode_output=$(makoctl mode)
|
||||
|
||||
# Extract the second line after "default"
|
||||
mode_line=$(echo "$mode_output" | sed -n '/default/{n;p}')
|
||||
mode=$(echo "$(makoctl mode)" | sed -n '/default/{n;p}')
|
||||
|
||||
# Print the notification status with the tooltip
|
||||
if [[ "$mode_line" == "do-not-disturb" ]]; then
|
||||
if [[ "$mode" == "do-not-disturb" ]]; then
|
||||
printf '{"text":" Off","class":"disabled","tooltip":"Notifications Disabled."}'
|
||||
else
|
||||
printf '{"text":" On","tooltip":"Notifications Enabled."}';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue