Compare commits
No commits in common. "d39c0c7892b98eab580b083a9e9c1ce3a9227e38" and "9158ac85a1ff7454377497f03ffe59617392abca" have entirely different histories.
d39c0c7892
...
9158ac85a1
@ -110,7 +110,7 @@ font:
|
|||||||
# - (macOS) Menlo
|
# - (macOS) Menlo
|
||||||
# - (Linux) monospace
|
# - (Linux) monospace
|
||||||
# - (Windows) Consolas
|
# - (Windows) Consolas
|
||||||
family: Source Code Pro
|
family: Fira Mono
|
||||||
|
|
||||||
# The `style` can be specified to pick a specific face.
|
# The `style` can be specified to pick a specific face.
|
||||||
style: Medium
|
style: Medium
|
||||||
@ -121,10 +121,10 @@ font:
|
|||||||
#
|
#
|
||||||
# If the bold family is not specified, it will fall back to the
|
# If the bold family is not specified, it will fall back to the
|
||||||
# value specified for the normal font.
|
# value specified for the normal font.
|
||||||
family: Source Code Pro
|
family: Fira Mono
|
||||||
|
|
||||||
# The `style` can be specified to pick a specific face.
|
# The `style` can be specified to pick a specific face.
|
||||||
style: Semibold
|
style: Medium
|
||||||
|
|
||||||
# Italic font face
|
# Italic font face
|
||||||
italic:
|
italic:
|
||||||
@ -132,7 +132,7 @@ font:
|
|||||||
#
|
#
|
||||||
# If the italic family is not specified, it will fall back to the
|
# If the italic family is not specified, it will fall back to the
|
||||||
# value specified for the normal font.
|
# value specified for the normal font.
|
||||||
family: Source Code Pro
|
family: Fira Mono
|
||||||
|
|
||||||
# The `style` can be specified to pick a specific face.
|
# The `style` can be specified to pick a specific face.
|
||||||
style: Italic
|
style: Italic
|
||||||
@ -143,13 +143,13 @@ font:
|
|||||||
#
|
#
|
||||||
# If the bold italic family is not specified, it will fall back to the
|
# If the bold italic family is not specified, it will fall back to the
|
||||||
# value specified for the normal font.
|
# value specified for the normal font.
|
||||||
family: Source Code Pro
|
family: Fira Mono
|
||||||
|
|
||||||
# The `style` can be specified to pick a specific face.
|
# The `style` can be specified to pick a specific face.
|
||||||
style: Semibold Italic
|
style: Medium Italic
|
||||||
|
|
||||||
# Point size
|
# Point size
|
||||||
size: 12.0
|
size: 11.0
|
||||||
|
|
||||||
# Offset is the extra space around each character. `offset.y` can be thought of
|
# Offset is the extra space around each character. `offset.y` can be thought of
|
||||||
# as modifying the line spacing, and `offset.x` as modifying the letter spacing.
|
# as modifying the line spacing, and `offset.x` as modifying the letter spacing.
|
||||||
|
12
.psqlrc
12
.psqlrc
@ -1,12 +0,0 @@
|
|||||||
\set QUIET 1
|
|
||||||
\timing on
|
|
||||||
\set ON_ERROR_ROLLBACK interactive
|
|
||||||
\set VERBOSITY verbose
|
|
||||||
\set PROMPT1 '%[%033[1;35m%]%M/%/%R%[%033[0m%]% ☘ '
|
|
||||||
\set PROMPT2 '%[%033[1;30m%]...%[%033[0m%] %R '
|
|
||||||
\set HISTFILE ~/.psql_history- :DBNAME
|
|
||||||
\set HISTCONTROL ignoredups
|
|
||||||
\set COMP_KEYWORD_CASE upper
|
|
||||||
\pset null ␀
|
|
||||||
\pset linestyle unicode
|
|
||||||
\unset QUIET
|
|
@ -1,9 +1,7 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
#
|
#
|
||||||
# Requires the following packages on Arch Linux:
|
# Install ttf-twemoji and make sure there are no other emoji fonts like
|
||||||
# - ttf-twemoji (and make sure there are no other emoji fonts like noto-fonts-emoji
|
# noto-fonts-emoji.
|
||||||
# - networkmanager
|
|
||||||
# - pulsemixer
|
|
||||||
|
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
from subprocess import check_output
|
from subprocess import check_output
|
||||||
@ -20,10 +18,7 @@ def write(data):
|
|||||||
def refresh():
|
def refresh():
|
||||||
try:
|
try:
|
||||||
ssid = (
|
ssid = (
|
||||||
check_output(
|
check_output("nmcli -g general.connection device show wlan0", shell=True)
|
||||||
"iwctl station wlan0 show | grep 'Connected network' | awk '{print $3}'",
|
|
||||||
shell=True,
|
|
||||||
)
|
|
||||||
.strip()
|
.strip()
|
||||||
.decode("utf-8")
|
.decode("utf-8")
|
||||||
)
|
)
|
||||||
@ -32,7 +27,31 @@ def refresh():
|
|||||||
|
|
||||||
wifi_status = f"{ssid} 📶"
|
wifi_status = f"{ssid} 📶"
|
||||||
|
|
||||||
|
try:
|
||||||
|
vpn_state = (
|
||||||
|
check_output("nmcli -g general.state connection show wg0", shell=True)
|
||||||
|
.strip()
|
||||||
|
.decode("utf-8")
|
||||||
|
)
|
||||||
|
except Exception:
|
||||||
|
vpn_state = ""
|
||||||
|
|
||||||
|
if vpn_state == "activated":
|
||||||
|
wifi_status = f"{wifi_status} 🔐"
|
||||||
|
|
||||||
battery_percent = int(sensors_battery().percent)
|
battery_percent = int(sensors_battery().percent)
|
||||||
|
|
||||||
|
# if battery_percent >= 90:
|
||||||
|
# battery_icon = ""
|
||||||
|
# elif battery_percent < 90 and battery_percent >= 75:
|
||||||
|
# battery_icon = "🔋"
|
||||||
|
# elif battery_percent < 75 and battery_percent >= 50:
|
||||||
|
# battery_icon = ""
|
||||||
|
# elif battery_percent < 50 and battery_percent >= 25:
|
||||||
|
# battery_icon = ""
|
||||||
|
# elif battery_percent < 25:
|
||||||
|
# battery_icon = ""
|
||||||
|
|
||||||
battery_icon = "🔋"
|
battery_icon = "🔋"
|
||||||
battery_status = f"{battery_percent} {battery_icon}"
|
battery_status = f"{battery_percent} {battery_icon}"
|
||||||
power_status = "🔌" if sensors_battery().power_plugged else ""
|
power_status = "🔌" if sensors_battery().power_plugged else ""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user