From fad19ee001a669552bb18f2952cf7404d797f6be Mon Sep 17 00:00:00 2001 From: Derek Taylor Date: Fri, 9 May 2025 18:53:54 -0500 Subject: [PATCH 1/3] Removing unwanted scripts --- .local/bin/clock | 4 ---- .local/bin/dm-run | 17 --------------- .local/bin/dtos-colorscheme | 40 ++++++++++++++++++++++++++++++++++++ .local/bin/kernel | 4 ---- .local/bin/memory | 4 ---- .local/bin/notify-log | 41 ------------------------------------- .local/bin/pacupdate | 4 ---- .local/bin/polybar-bspwm | 13 ------------ .local/bin/polybar-xmonad | 13 ------------ .local/bin/upt | 4 ---- .local/bin/volume | 4 ---- 11 files changed, 40 insertions(+), 108 deletions(-) delete mode 100755 .local/bin/clock delete mode 100755 .local/bin/dm-run delete mode 100755 .local/bin/kernel delete mode 100755 .local/bin/memory delete mode 100755 .local/bin/notify-log delete mode 100755 .local/bin/pacupdate delete mode 100755 .local/bin/polybar-bspwm delete mode 100755 .local/bin/polybar-xmonad delete mode 100755 .local/bin/upt delete mode 100755 .local/bin/volume diff --git a/.local/bin/clock b/.local/bin/clock deleted file mode 100755 index 44ee7a4..0000000 --- a/.local/bin/clock +++ /dev/null @@ -1,4 +0,0 @@ -#! /bin/bash - -dte="$(date +"%a, %B %d %l:%M%p"| sed 's/ / /g')" -echo -e "$dte" diff --git a/.local/bin/dm-run b/.local/bin/dm-run deleted file mode 100755 index 83cc3df..0000000 --- a/.local/bin/dm-run +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env bash -# -# Script name: dm-run -# Description: The standard dmenu_run command with flags and a prompt. -# Dependencies: dmenu -# GitLab: https://www.gitlab.com/dwt1/dmscripts -# License: https://www.gitlab.com/dwt1/dmscripts/LICENSE -# Contributors: Derek Taylor - -# Set with the flags "-e", "-u","-o pipefail" cause the script to fail -# if certain things happen, which is a good thing. Otherwise, we can -# get hidden bugs that are hard to discover. -set -euo pipefail - -export _JAVA_AWT_WM_NONREPARENTING=1 -exec $(dmenu_path | dmenu -l 20 -g 3 -X 0 -Y 0 -W 680 -p 'Run: ' "$@") - diff --git a/.local/bin/dtos-colorscheme b/.local/bin/dtos-colorscheme index 7207468..7b78c68 100755 --- a/.local/bin/dtos-colorscheme +++ b/.local/bin/dtos-colorscheme @@ -51,6 +51,10 @@ main() { sed -i "s/load-theme '.*/load-theme 'doom-one t)/g" "$HOME"/.config/emacs/config.org || echo "Cannot find config.org." emacsclient -e "(load-theme 'doom-one t)" || echo "Emacsclient not running." + ## DUNST ## + killall dunst + dunst -conf "$HOME"/.config/dunst/"$choice" + ;; 'dracula') @@ -71,6 +75,10 @@ main() { sed -i "s/load-theme '.*/load-theme 'doom-dracula t)/g" "$HOME"/.config/emacs/config.org || echo "Cannot find config.org." emacsclient -e "(load-theme 'doom-dracula t)" || echo "Emacsclient not running." + ## DUNST ## + killall dunst + dunst -conf "$HOME"/.config/dunst/"$choice" + ;; 'gruvbox-dark') @@ -91,6 +99,10 @@ main() { sed -i "s/load-theme '.*/load-theme 'doom-gruvbox t)/g" "$HOME"/.config/emacs/config.org || echo "Cannot find config.org." emacsclient -e "(load-theme 'doom-gruvbox t)" || echo "Emacsclient not running." + ## DUNST ## + killall dunst + dunst -conf "$HOME"/.config/dunst/"$choice" + ;; 'monokai-pro') @@ -111,6 +123,10 @@ main() { sed -i "s/load-theme '.*/load-theme 'doom-monokai-pro t)/g" "$HOME"/.config/emacs/config.org || echo "Cannot find config.org." emacsclient -e "(load-theme 'doom-monokai-pro t)" || echo "Emacsclient not running." + ## DUNST ## + killall dunst + dunst -conf "$HOME"/.config/dunst/"$choice" + ;; 'nord') @@ -131,6 +147,10 @@ main() { sed -i "s/load-theme '.*/load-theme 'doom-nord t)/g" "$HOME"/.config/emacs/config.org || echo "Cannot find config.org." emacsclient -e "(load-theme 'doom-nord t)" || echo "Emacsclient not running." + ## DUNST ## + killall dunst + dunst -conf "$HOME"/.config/dunst/"$choice" + ;; 'oceanic-next') @@ -151,6 +171,10 @@ main() { sed -i "s/load-theme '.*/load-theme 'doom-oceanic-next t)/g" "$HOME"/.config/emacs/config.org || echo "Cannot find config.org." emacsclient -e "(load-theme 'doom-oceanic-next t)" || echo "Emacsclient not running." + ## DUNST ## + killall dunst + dunst -conf "$HOME"/.config/dunst/"$choice" + ;; 'palenight') @@ -171,6 +195,10 @@ main() { sed -i "s/load-theme '.*/load-theme 'doom-palenight t)/g" "$HOME"/.config/emacs/config.org || echo "Cannot find config.org." emacsclient -e "(load-theme 'doom-palenight t)" || echo "Emacsclient not running." + ## DUNST ## + killall dunst + dunst -conf "$HOME"/.config/dunst/"$choice" + ;; 'solarized-dark') @@ -191,6 +219,10 @@ main() { sed -i "s/load-theme '.*/load-theme 'doom-solarized-dark t)/g" "$HOME"/.config/emacs/config.org || echo "Cannot find config.org." emacsclient -e "(load-theme 'doom-solarized-dark t)" || echo "Emacsclient not running." + ## DUNST ## + killall dunst + dunst -conf "$HOME"/.config/dunst/"$choice" + ;; 'solarized-light') @@ -211,6 +243,10 @@ main() { sed -i "s/load-theme '.*/load-theme 'doom-solarized-light t)/g" "$HOME"/.config/emacs/config.org || echo "Cannot find config.org." emacsclient -e "(load-theme 'doom-solarized-light t)" || echo "Emacsclient not running." + ## DUNST ## + killall dunst + dunst -conf "$HOME"/.config/dunst/"$choice" + ;; 'tomorrow-night') @@ -231,6 +267,10 @@ main() { sed -i "s/load-theme '.*/load-theme 'doom-tomorrow-night t)/g" "$HOME"/.config/emacs/config.org || echo "Cannot find config.org." emacsclient -e "(load-theme 'doom-tomorrow-night t)" || echo "Emacsclient not running." + ## DUNST ## + killall dunst + dunst -conf "$HOME"/.config/dunst/"$choice" + ;; 'Quit this program') echo "Program terminated." && exit 0 diff --git a/.local/bin/kernel b/.local/bin/kernel deleted file mode 100755 index 605621d..0000000 --- a/.local/bin/kernel +++ /dev/null @@ -1,4 +0,0 @@ -#! /bin/bash - -kern="$(uname -r)" -echo -e "$kern " diff --git a/.local/bin/memory b/.local/bin/memory deleted file mode 100755 index decbf2e..0000000 --- a/.local/bin/memory +++ /dev/null @@ -1,4 +0,0 @@ -#! /bin/bash - -mem="$(free -h | awk '/^Mem:/ {print $3 "/" $2}')" -echo -e "$mem RAM " diff --git a/.local/bin/notify-log b/.local/bin/notify-log deleted file mode 100755 index c0bfe21..0000000 --- a/.local/bin/notify-log +++ /dev/null @@ -1,41 +0,0 @@ -#!/usr/bin/env bash - -logfile=$1 - -declare -a MSGBUF -STATE=off -MSGTIME= - -printbuf() { - JOINED=$( echo "${MSGBUF[@]}" | sed 's/,$//' ) - printf "%s\n%s\n" "--- ${MSGTIME} ---" "${JOINED}" -} - -procmsg() { - if [[ "${1}" =~ member=Notify$ ]]; then - STATE=on - MSGTIME=$(date '+%Y-%m-%d %H:%M:%S') - MSGBUF=() - elif [[ "${1}" =~ member=NotificationClosed$ ]]; then - STATE=off - printbuf - else - if [[ "${STATE}" == "on" ]]; then - if [[ "${1}" =~ ^string ]]; then - case "${1}" in - "string \"\"") ;; - "string \"urgency\"") ;; - "string \"sender-pid\"") ;; - *) - MSGBUF+=$( echo -n "${1}," ) - ;; - esac - fi - fi - fi -} - -dbus-monitor "interface='org.freedesktop.Notifications'" | \ - while read -r line; do - procmsg "$line" >> "$logfile" - done diff --git a/.local/bin/pacupdate b/.local/bin/pacupdate deleted file mode 100755 index 729ee8e..0000000 --- a/.local/bin/pacupdate +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash - -cupd=$(checkupdates | wc -l) -echo "$cupd updates " diff --git a/.local/bin/polybar-bspwm b/.local/bin/polybar-bspwm deleted file mode 100755 index 10d839c..0000000 --- a/.local/bin/polybar-bspwm +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/env bash - -# Terminate already running bar instances -killall -q polybar - -# Wait until the processes have been shut down -while pgrep -u $UID -x polybar >/dev/null; do : ; done - -for m in $(polybar --list-monitors | cut -d":" -f1); do - WIRELESS=$(ls /sys/class/net/ | grep ^wl | awk 'NR==1{print $1}') MONITOR=$m polybar --reload mainbar-bspwm & -done - -echo "Bars launched..." diff --git a/.local/bin/polybar-xmonad b/.local/bin/polybar-xmonad deleted file mode 100755 index b44a851..0000000 --- a/.local/bin/polybar-xmonad +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/env bash - -# Terminate already running bar instances -killall -q polybar - -# Wait until the processes have been shut down -while pgrep -u $UID -x polybar >/dev/null; do : ; done - -for m in $(polybar --list-monitors | cut -d":" -f1); do - WIRELESS=$(ls /sys/class/net/ | grep ^wl | awk 'NR==1{print $1}') MONITOR=$m polybar --reload mainbar-xmonad & -done - -echo "Bars launched..." diff --git a/.local/bin/upt b/.local/bin/upt deleted file mode 100755 index 670a10d..0000000 --- a/.local/bin/upt +++ /dev/null @@ -1,4 +0,0 @@ -#! /bin/bash - -upt="$(uptime --pretty | sed -e 's/up //g' -e 's/ days/d/g' -e 's/ day/d/g' -e 's/ hours/h/g' -e 's/ hour/h/g' -e 's/ minutes/m/g' -e 's/, / /g')" -echo -e "$upt " diff --git a/.local/bin/volume b/.local/bin/volume deleted file mode 100755 index dd372c4..0000000 --- a/.local/bin/volume +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash - -vol="$(amixer get Master | tail -n1 | sed -r 's/.*\[(.*)%\].*/\1/')" -echo "${vol}% volume " From be4965307daf08f62f7efb55e8e6c97a0c78efcc Mon Sep 17 00:00:00 2001 From: Derek Taylor Date: Fri, 9 May 2025 20:14:09 -0500 Subject: [PATCH 2/3] Working on groupbox underline centering. --- .config/qtile/README.org | 9 +++++---- .config/qtile/config.py | 9 +++++---- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/.config/qtile/README.org b/.config/qtile/README.org index 14fda8e..47d155b 100644 --- a/.config/qtile/README.org +++ b/.config/qtile/README.org @@ -264,7 +264,7 @@ groups = [] group_names = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "0"] # Uncomment only one of the following lines -group_labels = ["", "", "", "", "", "", "⧳", "", "", "⛨"] +group_labels = ["", "", "👁", "", "", "", "✀", "🗯", "", "⎙"] #group_labels = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10"] #group_labels = ["DEV", "WWW", "SYS", "DOC", "VBOX", "CHAT", "MUS", "VID", "GFX", "MISC"] @@ -406,11 +406,12 @@ def init_widgets_list(): foreground = colors[1] ), widget.GroupBox( - fontsize = 12, + font = "Ubuntu Mono", + fontsize = 11, margin_y = 5, - margin_x = 16, + margin_x = 14, padding_y = 0, - padding_x = 0, + padding_x = 1, borderwidth = 3, active = colors[8], inactive = colors[9], diff --git a/.config/qtile/config.py b/.config/qtile/config.py index e4d2ca6..51166b8 100644 --- a/.config/qtile/config.py +++ b/.config/qtile/config.py @@ -182,7 +182,7 @@ groups = [] group_names = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "0"] # Uncomment only one of the following lines -group_labels = ["", "", "", "", "", "", "⧳", "", "", "⛨"] +group_labels = ["", "", "👁", "", "", "", "✀", "🗯", "", "⎙"] #group_labels = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10"] #group_labels = ["DEV", "WWW", "SYS", "DOC", "VBOX", "CHAT", "MUS", "VID", "GFX", "MISC"] @@ -284,11 +284,12 @@ def init_widgets_list(): foreground = colors[1] ), widget.GroupBox( - fontsize = 12, + font = "Ubuntu Mono", + fontsize = 11, margin_y = 5, - margin_x = 16, + margin_x = 14, padding_y = 0, - padding_x = 0, + padding_x = 1, borderwidth = 3, active = colors[8], inactive = colors[9], From e592523fe5ad1273be2a76d0b2f1b727b6a01fab Mon Sep 17 00:00:00 2001 From: Derek Taylor Date: Fri, 9 May 2025 20:26:14 -0500 Subject: [PATCH 3/3] Working on groupbox underline centering. --- .config/qtile/README.org | 7 +++---- .config/qtile/config.py | 5 ++--- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.config/qtile/README.org b/.config/qtile/README.org index 47d155b..96660ca 100644 --- a/.config/qtile/README.org +++ b/.config/qtile/README.org @@ -257,14 +257,14 @@ keys = [ #+end_src * Groups -Groups are really workspaces. group_names should remain 1-9 so the MOD+1-9 keybindings work as expected. group_labels are the labels of the groups that are displayed in the bar. Feel free to change group_labels to anything you wish. group_layouts sets the default layout for each group. +Groups are really workspaces. group_names should remain 0-9 so the MOD+0-9 keybindings work as expected. group_labels are the labels of the groups that are displayed in the bar. Feel free to change group_labels to anything you wish. group_layouts sets the default layout for each group. #+begin_src python groups = [] group_names = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "0"] # Uncomment only one of the following lines -group_labels = ["", "", "👁", "", "", "", "✀", "🗯", "", "⎙"] +group_labels = ["", "", "👁", "", "", "", "✀", "꩜", "", "⎙"] #group_labels = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10"] #group_labels = ["DEV", "WWW", "SYS", "DOC", "VBOX", "CHAT", "MUS", "VID", "GFX", "MISC"] @@ -406,12 +406,11 @@ def init_widgets_list(): foreground = colors[1] ), widget.GroupBox( - font = "Ubuntu Mono", fontsize = 11, margin_y = 5, margin_x = 14, padding_y = 0, - padding_x = 1, + padding_x = 2, borderwidth = 3, active = colors[8], inactive = colors[9], diff --git a/.config/qtile/config.py b/.config/qtile/config.py index 51166b8..9a4400f 100644 --- a/.config/qtile/config.py +++ b/.config/qtile/config.py @@ -182,7 +182,7 @@ groups = [] group_names = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "0"] # Uncomment only one of the following lines -group_labels = ["", "", "👁", "", "", "", "✀", "🗯", "", "⎙"] +group_labels = ["", "", "👁", "", "", "", "✀", "꩜", "", "⎙"] #group_labels = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10"] #group_labels = ["DEV", "WWW", "SYS", "DOC", "VBOX", "CHAT", "MUS", "VID", "GFX", "MISC"] @@ -284,12 +284,11 @@ def init_widgets_list(): foreground = colors[1] ), widget.GroupBox( - font = "Ubuntu Mono", fontsize = 11, margin_y = 5, margin_x = 14, padding_y = 0, - padding_x = 1, + padding_x = 2, borderwidth = 3, active = colors[8], inactive = colors[9],