alpha
Login
or
Join now
j3s.sh
/
dotfiles
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
my dotz
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
general maintenance
author
Jes Olson
date
2 years ago
(Nov 26, 2023, 2:19 PM -0600)
commit
18c978bd
18c978bdb729c2206e487cf03821e1fcb9f3031e
parent
960e7f5f
960e7f5f79211800596baf121fcdb13e4b8e8239
+24
-10
4 changed files
Expand all
Collapse all
Unified
Split
.config
chromium-flags.conf
kanshi
config
bin
zora
drosh
statusbar
+1
.config/chromium-flags.conf
Reviewed
···
2
2
--ignore-gpu-blocklist
3
3
--enable-gpu-rasterization
4
4
--enable-zero-copy
5
5
+
--enable-features=VaapiVideoDecoder
+9
.config/kanshi/config
Reviewed
···
30
30
output eDP-1 disable
31
31
output "Dell Inc. DELL S3220DGF 7S3NF43" enable
32
32
}
33
33
+
34
34
+
profile {
35
35
+
output "Dell Inc. DELL S3220DGF 7S3NF43" enable
36
36
+
}
37
37
+
38
38
+
profile {
39
39
+
output eDP-1 disable
40
40
+
output "Dell Inc. DELL U2515H YKFWP5320LZL" enable
41
41
+
}
+1
-1
bin/zora/drosh
Reviewed
···
1
1
-
/home/j3s/code/drosh/drosh
1
1
+
/home/j3s/code/drosh-public/drosh
+13
-9
bin/zora/statusbar
Reviewed
···
2
2
3
3
while true
4
4
do
5
5
-
vpn="off"
6
6
-
if ip link ls tun0 > /dev/null 2>&1; then
7
7
-
vpn="on"
8
8
-
fi
9
5
wifi="disconnected (0%)"
10
6
if nmcli dev show wlp0s20f3 | grep GENERAL.STATE | grep -q connected; then
11
7
wifiname="$(nmcli -t dev show wlp0s20f3 | grep GENERAL.CONNECTION | cut -d ':' -f 2)"
12
12
-
wifistrength="$(nmcli dev show wlp0s20f3 | awk '/GENERAL.STATE/ {print $2}')"
13
13
-
wifi="$wifiname ($wifistrength%)"
8
8
+
# wifistrength="$(nmcli dev show wlp0s20f3 | awk '/GENERAL.STATE/ {print $2}')"
9
9
+
# wifi="$wifiname ($wifistrength%)"
10
10
+
wifi="$wifiname"
11
11
+
fi
12
12
+
vpn="off"
13
13
+
if ip link ls gpd0 | grep -q UP; then
14
14
+
vpn="on"
14
15
fi
15
16
battery="$(cat /sys/class/power_supply/BAT0/capacity)%"
16
16
-
time=$(date +"%A %Y-%m-%d %I:%M %p")
17
17
-
est_time=$(TZ=America/New_York date +"(🗽%I:%M ET)")
18
18
-
time="$time $est_time $(date -u +"(🤖%H:%M UTC)")"
17
17
+
# time=$(date +"%A %Y-%m-%d %I:%M %p")
18
18
+
pst_time=$(TZ=America/Los_Angeles date +"%I:%M PT ")
19
19
+
cst_time=$(TZ=America/Chicago date +"[%I:%M CT] ")
20
20
+
est_time=$(TZ=America/New_York date +"%I:%M ET ")
21
21
+
utc_time=$(date -u +"%H:%M UTC ")
22
22
+
time="$pst_time $cst_time $est_time $utc_time"
19
23
# --date='TZ="America/New_York"
20
24
printf "%s | %s | %s\n" "wifi: ${wifi} vpn: $vpn" "bat: ${battery}" "${time}"
21
25
sleep 10