Minor edits

Merge branch 'master' of gitlab.com:dwt1/dotfiles
This commit is contained in:
Derek Taylor
2025-05-10 10:32:24 -05:00
12 changed files with 9 additions and 117 deletions
+5 -5
View File
@@ -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,11 +406,11 @@ def init_widgets_list():
foreground = colors[1]
),
widget.GroupBox(
fontsize = 12,
fontsize = 11,
margin_y = 5,
margin_x = 16,
margin_x = 14,
padding_y = 0,
padding_x = 0,
padding_x = 2,
borderwidth = 3,
active = colors[8],
inactive = colors[9],
+4 -4
View File
@@ -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,11 @@ def init_widgets_list():
foreground = colors[1]
),
widget.GroupBox(
fontsize = 12,
fontsize = 11,
margin_y = 5,
margin_x = 16,
margin_x = 14,
padding_y = 0,
padding_x = 0,
padding_x = 2,
borderwidth = 3,
active = colors[8],
inactive = colors[9],
-4
View File
@@ -1,4 +0,0 @@
#! /bin/bash
dte="$(date +"%a, %B %d %l:%M%p"| sed 's/ / /g')"
echo -e "$dte"
-17
View File
@@ -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: ' "$@")
-4
View File
@@ -1,4 +0,0 @@
#! /bin/bash
kern="$(uname -r)"
echo -e "$kern "
-4
View File
@@ -1,4 +0,0 @@
#! /bin/bash
mem="$(free -h | awk '/^Mem:/ {print $3 "/" $2}')"
echo -e "$mem RAM "
-41
View File
@@ -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
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
cupd=$(checkupdates | wc -l)
echo "$cupd updates "
-13
View File
@@ -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..."
-13
View File
@@ -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..."
-4
View File
@@ -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 "
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
vol="$(amixer get Master | tail -n1 | sed -r 's/.*\[(.*)%\].*/\1/')"
echo "${vol}% volume "