From d38683d277531f85e70a2d37d9110e2fc850fe93 Mon Sep 17 00:00:00 2001 From: Spangenberg Date: Sun, 22 Oct 2023 21:39:01 +0200 Subject: [PATCH] add waybar icon browser/email --- scripts/browser.sh | 3 +++ scripts/email.sh | 3 +++ scripts/filemanager.sh | 1 - waybar/modules.json | 14 ++++++++++++++ waybar/themes/cantina/config | 2 ++ waybar/themes/cantina/style.css | 2 +- 6 files changed, 23 insertions(+), 2 deletions(-) create mode 100755 scripts/browser.sh create mode 100755 scripts/email.sh diff --git a/scripts/browser.sh b/scripts/browser.sh new file mode 100755 index 0000000..82298c0 --- /dev/null +++ b/scripts/browser.sh @@ -0,0 +1,3 @@ +#/bin/sh + +firefox diff --git a/scripts/email.sh b/scripts/email.sh new file mode 100755 index 0000000..6f736b6 --- /dev/null +++ b/scripts/email.sh @@ -0,0 +1,3 @@ +#/bin/sh + +thunderbird diff --git a/scripts/filemanager.sh b/scripts/filemanager.sh index eacb633..00de437 100755 --- a/scripts/filemanager.sh +++ b/scripts/filemanager.sh @@ -1,4 +1,3 @@ #/bin/sh thunar - diff --git a/waybar/modules.json b/waybar/modules.json index be2c9a0..bc6812f 100644 --- a/waybar/modules.json +++ b/waybar/modules.json @@ -89,6 +89,20 @@ "tooltip": false }, + // Browser Launcher + "custom/browser": { + "format": "", + "on-click": "~/dotfiles/scripts/browser.sh", + "tooltip": false + }, + + // EMail Launcher + "custom/email": { + "format": "󰇮", + "on-click": "~/dotfiles/scripts/email.sh", + "tooltip": false + }, + // Teams Launcher "custom/teams": { "format": "", diff --git a/waybar/themes/cantina/config b/waybar/themes/cantina/config index d86c8d9..823e475 100644 --- a/waybar/themes/cantina/config +++ b/waybar/themes/cantina/config @@ -45,6 +45,8 @@ "orientation": "horizontal", "modules": [ "custom/filemanager", + "custom/browser", + "custom/email" ] }, diff --git a/waybar/themes/cantina/style.css b/waybar/themes/cantina/style.css index 7a98fe3..772d107 100644 --- a/waybar/themes/cantina/style.css +++ b/waybar/themes/cantina/style.css @@ -140,7 +140,7 @@ window#waybar.empty #window { * Custom Quicklinks * ----------------------------------------------------- */ -#custom-brave, #custom-outlook, #custom-filemanager, #custom-teams, #custom-chatgpt, #custom-calculator, #custom-windowsvm, #custom-cliphist, #custom-wallpaper, #custom-waybarthemes { +#custom-browser, #custom-email, #custom-filemanager, #custom-teams, #custom-chatgpt, #custom-calculator, #custom-windowsvm, #custom-cliphist, #custom-wallpaper, #custom-waybarthemes { margin-right: 20px; font-size: 20px; font-weight: bold;