From c848d51c0293df707d3f0a4fe93572c2d6af1ba9 Mon Sep 17 00:00:00 2001 From: Stephan Raabe Date: Sat, 15 Apr 2023 19:26:17 +0200 Subject: [PATCH] Updates --- 1-install.sh | 2 +- dunst/dunstrc | 14 ++++++++++++-- polybar/config.ini | 9 ++++++++- scripts/calculator.sh | 12 ++++++++++++ 4 files changed, 33 insertions(+), 4 deletions(-) create mode 100755 scripts/calculator.sh diff --git a/1-install.sh b/1-install.sh index c9bab83..f55d21f 100755 --- a/1-install.sh +++ b/1-install.sh @@ -44,7 +44,7 @@ done echo "" echo "-> Install main packages" -packagesPacman=("alacritty" "scrot" "nitrogen" "picom" "starship" "slock" "neomutt" "neovim" "rofi" "dunst" "ueberzug" "mpv" "freerdp" "spotifyd" "xfce4-power-manager" "python-pip" "thunar" "mousepad" "ttf-font-awesome" "ttf-fira-sans" "ttf-fira-code" "ttf-firacode-nerd" "figlet" "cmatrix" "lxappearance" "qalculate-gtk" "polybar" "chromium" "breeze" "breeze-gtk"); +packagesPacman=("alacritty" "scrot" "nitrogen" "picom" "starship" "slock" "neomutt" "neovim" "rofi" "dunst" "ueberzug" "mpv" "freerdp" "spotifyd" "xfce4-power-manager" "python-pip" "thunar" "mousepad" "ttf-font-awesome" "ttf-fira-sans" "ttf-fira-code" "ttf-firacode-nerd" "figlet" "cmatrix" "lxappearance" "polybar" "breeze" "breeze-gtk" "rofi-calc"); packagesYay=("brave-bin" "pfetch" "bibata-cursor-theme"); # pywal installation below diff --git a/dunst/dunstrc b/dunst/dunstrc index fba9015..89c31a4 100644 --- a/dunst/dunstrc +++ b/dunst/dunstrc @@ -1,3 +1,13 @@ +# _ _ +# __| |_ _ _ __ ___| |_ +# / _` | | | | '_ \/ __| __| +# | (_| | |_| | | | \__ \ |_ +# \__,_|\__,_|_| |_|___/\__| +# +# +# by Stephan Raabe (2023) +# ----------------------------------------------------- + # See dunst(5) for all configuration options [global] @@ -30,10 +40,10 @@ height = (0,300) # Position the notification in the top right corner - origin = top-right + origin = top-center # Offset from the origin - offset = 8x34 + # offset = 8x34 # Scale factor. It is auto-detected if value is 0. scale = 0 diff --git a/polybar/config.ini b/polybar/config.ini index 134582b..5662e2e 100644 --- a/polybar/config.ini +++ b/polybar/config.ini @@ -33,7 +33,7 @@ font-0 = "Fira Sans SemiBold:size=11;2" font-1 = "Font Awesome 6 Free Solid:pixelsize=11;2" modules-left = xworkspaces mymenu modules-center = xwindow -modules-right = battery xkeyboard mysystem filesystem pulseaudio memory cpu date myexit +modules-right = battery xkeyboard mycalculator mysystem filesystem pulseaudio memory cpu date myexit cursor-click = pointer cursor-scroll = ns-resize enable-ipc = true @@ -51,6 +51,13 @@ content-foreground = ${colors.primary} content = "" click-left = "~/dotfiles/scripts/applauncher.sh" + +[module/mycalculator] +type = custom/text +content-foreground = ${colors.primary} +content = "" +click-left = "~/dotfiles/scripts/calculator.sh" + [module/myexit] type = custom/text content-foreground = ${colors.primary} diff --git a/scripts/calculator.sh b/scripts/calculator.sh new file mode 100755 index 0000000..de14ba7 --- /dev/null +++ b/scripts/calculator.sh @@ -0,0 +1,12 @@ +#!/bin/bash +# ____ _ _ _ +# / ___|__ _| | ___ _ _| | __ _| |_ ___ _ __ +# | | / _` | |/ __| | | | |/ _` | __/ _ \| '__| +# | |__| (_| | | (__| |_| | | (_| | || (_) | | +# \____\__,_|_|\___|\__,_|_|\__,_|\__\___/|_| +# +# +# by Stephan Raabe (2023) +# ----------------------------------------------------- + +rofi -show calc