From 5316de1d1531e3b10465845b57f0dabe83c166c3 Mon Sep 17 00:00:00 2001 From: Solomon Laing Date: Fri, 12 Dec 2025 18:05:35 +1030 Subject: [PATCH] dummy --- .config/shell/aliasrc | 2 +- .config/tmux/tmux.conf | 2 +- .config/x11/xinitrc | 4 ++++ .local/bin/status-disk | 2 +- .local/bin/status-net | 26 +++++++++++--------------- .local/bin/sysact | 3 +-- 6 files changed, 19 insertions(+), 20 deletions(-) diff --git a/.config/shell/aliasrc b/.config/shell/aliasrc index a1c722a..c1ec139 100644 --- a/.config/shell/aliasrc +++ b/.config/shell/aliasrc @@ -83,7 +83,7 @@ alias \ alias \ calcurse="calcurse-select" \ -alias \ +alias \ usta="systemctl --user start" \ usto="systemctl --user stop" \ ures="systemctl --user restart" \ diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index e3113cf..28281cb 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -57,7 +57,7 @@ bind-key -r l select-pane -R # ----------------------------------------------------------------------------- # Plugin Manager - https://github.com/tmux-plugins/tpm -# Step 1) git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm +# Step 1) git clone https://github.com/tmux-plugins/tpm ~/.config/tmux/plugins/tpm # Step 2) Reload tmux if it's already started with `r # Step 3) Launch tmux and hit `I (capital i) to fetch any plugins # ----------------------------------------------------------------------------- diff --git a/.config/x11/xinitrc b/.config/x11/xinitrc index 24287f7..b01295e 100755 --- a/.config/x11/xinitrc +++ b/.config/x11/xinitrc @@ -20,6 +20,10 @@ case $session in exec "$HOME/.dwm/start-dwm.sh" ;; xmonad) exec "$HOME/.xmonad/start-xmonad.sh" ;; + mint) + exec cinnamon-session ;; + gnome) + exec gnome ;; *) exec twm ;; esac diff --git a/.local/bin/status-disk b/.local/bin/status-disk index 2471044..a15f316 100755 --- a/.local/bin/status-disk +++ b/.local/bin/status-disk @@ -3,7 +3,7 @@ homeval=$(df -h -B 1048576 | grep "/home") case $BUTTON in - 1) notify-send "Disk space" "$(df -h --output=target,used,size)" ;; + 1) notify-send "Disk space" "$(df -h --output=target,used,size --type=ext4 --type=nfs4)" ;; 3) notify-send "Disk module" "Shows disk usage information - Click to show all disk info." ;; 6) "$TERMINAL" -e "$EDITOR" "$0" ;; diff --git a/.local/bin/status-net b/.local/bin/status-net index 41c757c..019ea75 100755 --- a/.local/bin/status-net +++ b/.local/bin/status-net @@ -1,18 +1,13 @@ #!/bin/bash -# Show wifi  and percent strength or 󰖪 if none. -# Show  if connected to ethernet or ❎ if none. -# Show 🔒 if a vpn connection is active - case $BUTTON in 1) "$TERMINAL" -e nmtui; pkill -RTMIN+15 dwmblocks ;; - 3) notify-send "Internet module" "- Click to connect -󰯡 : wifi disabled -󰖪 : no wifi connection - : wifi connection with quality -󰅛 : no ethernet -󰱓 : ethernet working - : vpn is active + 3) notify-send "Internet module" "Click to connect +󰖪 : no wifi + : wifi connection +󰈂 : no ethernet +󰈁 : ethernet connection + : vpn active " ;; 6) "$TERMINAL" -e "$EDITOR" "$0" ;; esac @@ -20,16 +15,17 @@ esac # Wifi if [ "$(cat /sys/class/net/w*/operstate 2>/dev/null)" = 'up' ] ; then - wifiicon="$(awk '/^\s*w/ { print " ", int($3 * 100 / 70) "% " }' /proc/net/wireless)" -elif [ "$(cat /sys/class/net/w*/operstate 2>/dev/null)" = 'down' ] ; then +# this is broken, god knows why, who needs signal strength anyway... +# wifiicon="$(awk '/^\s*w/ { print " ", int($3 * 100 / 70) "% " }' /proc/net/wireless)" +# elif [ "$(cat /sys/class/net/w*/operstate 2>/dev/null)" = 'down' ] ; then [ "$(cat /sys/class/net/w*/flags 2>/dev/null)" = '0x1003' ] && wifiicon="󰖩 " || wifiicon="󰖪 " fi # Ethernet -[ "$(cat /sys/class/net/e*/operstate 2>/dev/null)" = 'up' ] && ethericon="🌐" || ethericon="󰪎" +[ "$(cat /sys/class/net/e*/operstate 2>/dev/null)" = 'up' ] && ethericon="󰈁 " || ethericon="󰈂 " # TUN -[ -n "$(cat /sys/class/net/tun*/operstate 2>/dev/null)" ] && tunicon=" " +[ -n "$(cat /sys/class/net/tun*/operstate 2>/dev/null)" ] && tunicon=" " printf "%s%s%s\n" "$wifiicon" "$ethericon" "$tunicon" diff --git a/.local/bin/sysact b/.local/bin/sysact index c6ab8cd..ab17374 100755 --- a/.local/bin/sysact +++ b/.local/bin/sysact @@ -23,11 +23,10 @@ lock(){ kill -44 $(pidof dwmblocks) } -case "$(printf "lock\nleave $WM\nrenew $WM\nhibernate\nreboot\nshutdown\nsleep\ndisplay off" | dmenu -i -p 'Action: ')" in +case "$(printf "lock\nleave $WM\nrenew $WM\nreboot\nshutdown\nsleep\ndisplay off" | dmenu -i -p 'Action: ')" in 'lock') lock ;; "leave $WM") kill -TERM "$(wmpid)" ;; "renew $WM") kill -HUP "$(wmpid)" ;; - 'hibernate') slock $ctl hibernate -i ;; 'sleep') slock $ctl suspend -i ;; 'reboot') $ctl reboot -i ;; 'shutdown') $ctl poweroff -i ;;