summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2023-05-24 03:20:31 +0100
committerubq323 <ubq323@ubq323.website>2023-05-24 03:20:31 +0100
commitce9afcf6114d0ac7fa0d8acf5739feaa18d76803 (patch)
treeadb928f69a22252d77d85176ebc6257f565ff9fe
parentdc5f2cfd52638a0a2ca5bf7c507579d8235edcfc (diff)
multitudes
-rw-r--r--.bashrc2
-rw-r--r--.config/git/config7
-rw-r--r--.config/sway/config8
-rwxr-xr-xbin/status.sh10
4 files changed, 19 insertions, 8 deletions
diff --git a/.bashrc b/.bashrc
index 5b29fdb..7b3e317 100644
--- a/.bashrc
+++ b/.bashrc
@@ -38,6 +38,8 @@ apwd () {
pwd | sed -e 's!'"$HOME"'!~!'
}
+alias mirror='mpv --untimed --profile=low-latency --vf=hflip /dev/video0'
+
set_title () { printf "\e]2;%s\e\\" "$1"; }
_lastcmd () { history 1 | sed -e 's/^ *[0-9]* *//g' ; }
trap 'set_title "$(_lastcmd)"' DEBUG
diff --git a/.config/git/config b/.config/git/config
index 6275dc3..91308e0 100644
--- a/.config/git/config
+++ b/.config/git/config
@@ -9,3 +9,10 @@
pager = less -F -X
[log]
date=iso
+[sendemail]
+ smtpserver=ubq323.website
+ smtpuser=ubq323@ubq323.website
+ smtpencryption=tls
+ smtpserverport=587
+ confirm=always
+ annotate=yes
diff --git a/.config/sway/config b/.config/sway/config
index 5b3ae5a..9cce4d7 100644
--- a/.config/sway/config
+++ b/.config/sway/config
@@ -8,7 +8,7 @@ set $right l
set $term foot
set $menu bemenu-run | xargs swaymsg exec --
-output * bg /home/rebecca/img/lagana.png stretch
+output * bg /home/rebecca/art/img/lagana.png stretch
### Idle configuration
#
@@ -16,8 +16,8 @@ output * bg /home/rebecca/img/lagana.png stretch
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
-# timeout 600 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \
-# before-sleep 'swaylock -f -c 000000'
+# timeout 600 'swaymsg "output * power off"' resume 'swaymsg "output * power on"'
+# # before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
@@ -153,7 +153,7 @@ bindsym XF86MonBrightnessDown exec 'brightnessctl --min-value=500 s 10%-'
client.focused #663399 #663399 #ffffff
-bindsym Print exec slurp|grim -g- -|feh - -.wG -A'[upload]rupload -x png %F'
+bindsym Print exec slurp|grim -g- -|feh - -.wG -A'[upload]/home/rebecca/bin/rupload -x png %F' --action1 '[copy]wl-copy -t image/png <%F'
exec wlsunset -T 6500 -t 3200 -L -2 -l 53
diff --git a/bin/status.sh b/bin/status.sh
index 5bd9e4c..35ae205 100755
--- a/bin/status.sh
+++ b/bin/status.sh
@@ -34,10 +34,12 @@ while true; do
bat_status="$(cat $BDIR/status | tr 'a-z' 'A-Z' | head -c 3)"
bat_level="$(cat $BDIR/capacity)"
color="#ffffff"
- if [ "$bat_level" -le 10 ]; then
- color="#ff0000"
- elif [ "$bat_level" -le 25 ]; then
- color="#ffff00"
+ if [ "$bat_status" != "CHA" ]; then
+ if [ "$bat_level" -le 10 ]; then
+ color="#ff0000"
+ elif [ "$bat_level" -le 25 ]; then
+ color="#ffff00"
+ fi
fi
block_color "$bat_status $bat_level%" "$color"