progressbars instead of percentages, better location for bookmarks, dunst pimp
This commit is contained in:
parent
8047ecbd1f
commit
aae1292fe2
8 changed files with 48 additions and 35 deletions
2
bashrc
2
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) \
|
||||
|
|
24
bookmarks
24
bookmarks
|
@ -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
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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)"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue