diff --git a/bashrc b/bashrc index e8f109b..d545525 100644 --- a/bashrc +++ b/bashrc @@ -59,7 +59,7 @@ alias \ # Useful variables export \ GITLAB="ssh://git@gitlab.com/tavo-wasd" \ - QT_QPA_PLATFORMTHEME="qt6ct" \ + QT_QPA_PLATFORMTHEME="qt5ct" \ GTK_THEME="Materia:dark" \ WEEK=$(date '+%U') \ DATE=$(date -I) \ diff --git a/bookmarks b/bookmarks deleted file mode 100644 index c0779f9..0000000 --- a/bookmarks +++ /dev/null @@ -1,24 +0,0 @@ -Mediación Virtual 2-https://mv2.mediacionvirtual.ucr.ac.cr -Mediación Virtual 1-https://mv1.mediacionvirtual.ucr.ac.cr -Correo UCR-https://correo.ucr.ac.cr -Whatsapp-https://web.whatsapp.com -Telegram-https://web.telegram.org -Syncthing-http://127.0.0.1:8384 -Proton Mail-https://mail.proton.me -Simplenote-https://app.simplenote.com -Proton Drive-https://drive.proton.me -Excalidraw-https://excalidraw.com -Incofer-http://www.incofer.go.cr -GitLab-https://gitlab.com -Odysee-https://odysee.com -Monero Miner Dashboard-https://monero.hashvault.pro/en/dashboard -Extremetech-https://extremetechcr.com/ -Digital Ocean-https://www.digitalocean.com/ -Free YouTube-https://yewtu.be/ -Nextcloud-https://cloud.tavo.one/ -Notebook-https://notebook.tavo.one/ -Personal Blog-https://blog.tavo.one/ -Vultr-https://www.vultr.com/ -MATLAB Drive-https://drive.matlab.com/ -MATLAB Online-https://matlab.mathworks.com/ -Monero Address-43aTAGoRZyb8M7RvhtYw1pHCpHqJ2nM51W7SjuGFdVdWekzTFf9PsVTCZPexd93o234z6SSq6Ag9fUSm4cjZkwvh3rp2kqT diff --git a/dunst/dunstrc b/dunst/dunstrc index 7b476fc..945676c 100644 --- a/dunst/dunstrc +++ b/dunst/dunstrc @@ -4,8 +4,8 @@ width = (200, 600) height = 200 - origin = top-center - offset = 00x48 + origin = top-right + offset = 36x48 scale = 0 notification_limit = 0 @@ -23,7 +23,7 @@ transparency = 0 separator_height = 0 - padding = 8 + padding = 4 horizontal_padding = 24 text_icon_padding = 0 frame_width = 0 @@ -57,7 +57,7 @@ title = Dunst class = Dunst - corner_radius = 28 + corner_radius = 4 ignore_dbusclose = false force_xwayland = false force_xinerama = false diff --git a/scripts/brightdown b/scripts/brightdown index 485926c..1c8de0b 100755 --- a/scripts/brightdown +++ b/scripts/brightdown @@ -3,5 +3,21 @@ # Depends on 'community/brightnessctl' brightness=$(brightnessctl s 5%- | grep -o "[0-9]*%") +brightness="${brightness%\%*}" # Remove percentage sign -notify-send -u low --replace-id=10 "󰃞 Brightness" "$brightness" +case 1 in + $((brightness >= 100)) ) bar="━━━━━━━━━━" ;; + $((brightness >= 90)) ) bar="━━━━━━━━━─" ;; + $((brightness >= 80)) ) bar="━━━━━━━━──" ;; + $((brightness >= 70)) ) bar="━━━━━━━───" ;; + $((brightness >= 60)) ) bar="━━━━━━────" ;; + $((brightness >= 50)) ) bar="━━━━━─────" ;; + $((brightness >= 40)) ) bar="━━━━──────" ;; + $((brightness >= 30)) ) bar="━━━───────" ;; + $((brightness >= 20)) ) bar="━━────────" ;; + $((brightness >= 10)) ) bar="━─────────" ;; + $((brightness >= 0)) ) bar="──────────" ;; + $((brightness = 0)) ) bar="──────────" ;; +esac + +notify-send -u low --replace-id=10 "󰃞 Brightness" "$bar" diff --git a/scripts/brightup b/scripts/brightup index 45d992a..7790d09 100755 --- a/scripts/brightup +++ b/scripts/brightup @@ -3,5 +3,21 @@ # Depends on 'community/brightnessctl' brightness=$(brightnessctl s 5%+ | grep -o "[0-9]*%") +brightness="${brightness%\%*}" # Remove percentage sign -notify-send -u low --replace-id=10 "󰃞 Brightness" "$brightness" +case 1 in + $((brightness >= 100)) ) bar="━━━━━━━━━━" ;; + $((brightness >= 90)) ) bar="━━━━━━━━━─" ;; + $((brightness >= 80)) ) bar="━━━━━━━━──" ;; + $((brightness >= 70)) ) bar="━━━━━━━───" ;; + $((brightness >= 60)) ) bar="━━━━━━────" ;; + $((brightness >= 50)) ) bar="━━━━━─────" ;; + $((brightness >= 40)) ) bar="━━━━──────" ;; + $((brightness >= 30)) ) bar="━━━───────" ;; + $((brightness >= 20)) ) bar="━━────────" ;; + $((brightness >= 10)) ) bar="━─────────" ;; + $((brightness >= 0)) ) bar="──────────" ;; + $((brightness = 0)) ) bar="──────────" ;; +esac + +notify-send -u low --replace-id=10 "󰃞 Brightness" "$bar" diff --git a/scripts/dmenu-addbookmark b/scripts/dmenu-addbookmark index a9392a8..70921ad 100755 --- a/scripts/dmenu-addbookmark +++ b/scripts/dmenu-addbookmark @@ -4,7 +4,7 @@ bookmark="$(xsel -ob)" -if grep -q "$bookmark" "$HOME/.config/bookmarks" ; then +if grep -q "$bookmark" "$HOME/Documents/bookmarks" ; then notify-send "Bookmarks" "Already bookmarked" else name="$(dmenu -p 'Bookmark name:' < /dev/null)" diff --git a/scripts/dmenu-bookmarks b/scripts/dmenu-bookmarks index 23e59cd..89e8876 100755 --- a/scripts/dmenu-bookmarks +++ b/scripts/dmenu-bookmarks @@ -2,7 +2,7 @@ # Open URLs from bookmarks file # Print site names, then get URL based on the name. Exit if empty -name=$(awk -F '-' '{print $1}' ~/.config/bookmarks | dmenu -i -p "Site:") +name=$(cut -d '-' -f 1 $HOME/Documents/bookmarks | grep -v '^#' | sed '/^\s*$/d' | dmenu -i -p "Site:") [ -z "$name" ] && exit grep "$name" ~/.config/bookmarks | cut -d '-' -f 2- | xsel -ib && notify-send "󰖟 $name" "Copied to clipboard" diff --git a/scripts/layoutstat b/scripts/layoutstat index 42681fe..1b2c1c5 100755 --- a/scripts/layoutstat +++ b/scripts/layoutstat @@ -1,5 +1,10 @@ #!/bin/sh # Get current keyboard layout -setxkbmap -query | grep layout | awk '{print $2}' | - sed 's/latam/la/' +layout="$( \ + setxkbmap -query | grep layout | awk '{print $2}' | + sed 's/latam/la/' \ + )" + +echo "$layout" +notify-send -u low --replace-id=12 "󰌌 Layout" "$layout"