aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.config/shell/profile2
-rwxr-xr-x.local/bin/statusbar/sb-clock4
-rwxr-xr-x.local/bin/statusbar/sb-doppler2
-rwxr-xr-x.local/bin/statusbar/sb-forecast6
-rwxr-xr-x.local/bin/statusbar/sb-internet2
-rwxr-xr-x.local/bin/statusbar/sb-mailbox4
-rwxr-xr-x.local/bin/statusbar/sb-memory4
-rwxr-xr-x.local/bin/statusbar/sb-microphone4
-rwxr-xr-x.local/bin/statusbar/sb-nettraf4
-rwxr-xr-x.local/bin/statusbar/sb-volume4
-rw-r--r--dependencies.txt2
11 files changed, 20 insertions, 18 deletions
diff --git a/.config/shell/profile b/.config/shell/profile
index 4388c6d..056dfdd 100644
--- a/.config/shell/profile
+++ b/.config/shell/profile
@@ -2,6 +2,8 @@ export PATH="$PATH:$(find ~/.local/bin -type d | paste -sd ':' -)"
export ZDOTDIR="$HOME/.config/zsh"
export BROWSER="firefox"
export EDITOR="nvim"
+export TERMINAL="foot"
+export TERMINAL_PROG="foot"
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_DATA_HOME="$HOME/.local/share"
diff --git a/.local/bin/statusbar/sb-clock b/.local/bin/statusbar/sb-clock
index 3e7dd23..b2ed96a 100755
--- a/.local/bin/statusbar/sb-clock
+++ b/.local/bin/statusbar/sb-clock
@@ -20,10 +20,10 @@ esac
case $1 in
1) notify-send "This Month" "$(cal | sed "s/\<$(date +'%e'|tr -d ' ')\>/<b><span color='red'>&<\/span><\/b>/")" && notify-send "Appointments" "$(calcurse -d3)" ;;
- 2) hyprctl dispatch exec "kitty -e calcurse" ;;
+ 2) hyprctl dispatch exec "$TERMINAL -e calcurse" ;;
3) notify-send "πŸ“… Time/date module" "\- Left click to show upcoming appointments for the next three days via \`calcurse -d3\` and show the month via \`cal\`
- Middle click opens calcurse if installed" ;;
- 6) hyprctl dispatch exec "kitty -e \"$EDITOR\" \"$0\"" ;;
+ 6) hyprctl dispatch exec "$TERMINAL -e \"$EDITOR\" \"$0\"" ;;
esac
date "+%Y %b %d (%a) $icon %H:%M"
diff --git a/.local/bin/statusbar/sb-doppler b/.local/bin/statusbar/sb-doppler
index a29203a..e6062a3 100755
--- a/.local/bin/statusbar/sb-doppler
+++ b/.local/bin/statusbar/sb-doppler
@@ -16,7 +16,7 @@ case $1 in
3) notify-send "πŸ—ΊοΈ Doppler RADAR module" "\- Left click for local Doppler RADAR.
- Middle click to update RADAR location.
After $secs seconds, new clicks will also automatically update the doppler RADAR." ;;
- 6) hyprctl dispatch exec "kitty -e \"$EDITOR\" \"$0\"" ;;
+ 6) hyprctl dispatch exec "$TERMINAL -e \"$EDITOR\" \"$0\"" ;;
esac
echo πŸŒ…
diff --git a/.local/bin/statusbar/sb-forecast b/.local/bin/statusbar/sb-forecast
index c912d75..4167dc6 100755
--- a/.local/bin/statusbar/sb-forecast
+++ b/.local/bin/statusbar/sb-forecast
@@ -38,11 +38,11 @@ showweather() {
}
openterm() {
- hyprctl dispatch exec "[float; size 1800 1300;]" 'kitty -e sh -c "curl wttr.in/Moscow; read _"'
+ hyprctl dispatch exec "[float; size 1800 1300;]" '$TERMINAL -e sh -c "curl wttr.in/Moscow; read _"'
}
case $1 in
- 1) hyprctl dispatch exec "[float; size 1700 1100;]" "kitty -e less -Sfr \"$weatherreport\""
+ 1) hyprctl dispatch exec "[float; size 1700 1100;]" "$TERMINAL -e less -Sfr \"$weatherreport\""
;;
2) getforecast && showweather ;;
3) notify-send "🌈 Weather module" "\- Left click for full forecast.
@@ -50,7 +50,7 @@ case $1 in
β˜”: Chance of rain/snow
πŸ₯Ά: Daily low
🌞: Daily high" ;;
- 6) hyprctl dispatch exec "kitty -e \"$EDITOR\" \"$0\"" ;;
+ 6) hyprctl dispatch exec "$TERMINAL -e \"$EDITOR\" \"$0\"" ;;
esac
checkforecast || getforecast
diff --git a/.local/bin/statusbar/sb-internet b/.local/bin/statusbar/sb-internet
index 7ba5a0e..0e21c3b 100755
--- a/.local/bin/statusbar/sb-internet
+++ b/.local/bin/statusbar/sb-internet
@@ -24,7 +24,7 @@ case $1 in
🌐: ethernet working
πŸ”’: vpn is active
" ;;
- 6) hyprctl dispatch exec "kitty -e \"$EDITOR\" \"$0\"" ;;
+ 6) hyprctl dispatch exec "$TERMINAL -e \"$EDITOR\" \"$0\"" ;;
esac
# Wifi
diff --git a/.local/bin/statusbar/sb-mailbox b/.local/bin/statusbar/sb-mailbox
index 0fe9556..b03724f 100755
--- a/.local/bin/statusbar/sb-mailbox
+++ b/.local/bin/statusbar/sb-mailbox
@@ -4,13 +4,13 @@
# When clicked, brings up `neomutt`.
case $1 in
- 1) hyprctl dispatch exec 'kitty -e neomutt'; pkill -RTMIN+12 waybar ;;
+ 1) hyprctl dispatch exec '$TERMINAL -e neomutt'; pkill -RTMIN+12 waybar ;;
2) setsid -f mailsync >/dev/null ;;
3) notify-send "πŸ“¬ Mail module" "\- Shows unread mail
- Shows πŸ”ƒ if syncing mail
- Left click opens neomutt
- Middle click syncs mail" ;;
- 6) hyprctl dispatch exec "kitty -e \"$EDITOR\" \"$0\"" ;;
+ 6) hyprctl dispatch exec "$TERMINAL -e \"$EDITOR\" \"$0\"" ;;
esac
unread="$(find "${XDG_DATA_HOME:-$HOME/.local/share}"/mail/*/[Ii][Nn][Bb][Oo][Xx]/new/* -type f | wc -l 2>/dev/null)"
diff --git a/.local/bin/statusbar/sb-memory b/.local/bin/statusbar/sb-memory
index 45e2701..c39488f 100755
--- a/.local/bin/statusbar/sb-memory
+++ b/.local/bin/statusbar/sb-memory
@@ -2,11 +2,11 @@
case $1 in
1) notify-send "🧠 Memory hogs" "$(ps axch -o cmd:15,%mem --sort=-%mem | head)" ;;
- 2) hyprctl dispatch exec 'kitty -e sh -c "btop"' ;;
+ 2) hyprctl dispatch exec '$TERMINAL -e sh -c "btop"' ;;
3) notify-send "🧠 Memory module" "\- Shows Memory Used/Total.
- Click to show memory hogs.
- Middle click to open btop." ;;
- 6) hyprctl dispatch exec "kitty -e \"$EDITOR\" \"$0\"" ;;
+ 6) hyprctl dispatch exec "$TERMINAL -e \"$EDITOR\" \"$0\"" ;;
esac
free --mebi | sed -n '2{p;q}' | awk '{printf ("🧠%2.2fGiB/%2.2fGiB\n", ( $3 / 1024), ($2 / 1024))}'
diff --git a/.local/bin/statusbar/sb-microphone b/.local/bin/statusbar/sb-microphone
index 3b83060..610eb21 100755
--- a/.local/bin/statusbar/sb-microphone
+++ b/.local/bin/statusbar/sb-microphone
@@ -3,11 +3,11 @@
# Prints the current microphone volume or ο„± if muted.
case $1 in
- 1) hyprctl dispatch exec "kitty -e pulsemixer" ;;
+ 1) hyprctl dispatch exec "$TERMINAL -e pulsemixer" ;;
3) notify-send "🎀 Microphone volume module" "\- Shows volume πŸŽ™οΈ, ο„± if muted.
- Middle click to mute.
- Scroll to change." ;;
- 6) hyprctl dispatch exec "kitty -e \"$EDITOR\" \"$0\"" ;;
+ 6) hyprctl dispatch exec "$TERMINAL -e \"$EDITOR\" \"$0\"" ;;
esac
vol="$(wpctl get-volume @DEFAULT_AUDIO_SOURCE@)"
diff --git a/.local/bin/statusbar/sb-nettraf b/.local/bin/statusbar/sb-nettraf
index 8f2ee77..0f4201b 100755
--- a/.local/bin/statusbar/sb-nettraf
+++ b/.local/bin/statusbar/sb-nettraf
@@ -5,10 +5,10 @@
# second, gives network traffic per second.
case $1 in
- 1) hyprctl dispatch exec "kitty -e bmon" ;;
+ 1) hyprctl dispatch exec "$TERMINAL -e bmon" ;;
3) notify-send "🌐 Network traffic module" "πŸ”»: Traffic received
πŸ”Ί: Traffic transmitted" ;;
- 6) hyprctl dispatch exec "kitty -e \"$EDITOR\" \"$0\"" ;;
+ 6) hyprctl dispatch exec "$TERMINAL -e \"$EDITOR\" \"$0\"" ;;
esac
update() {
diff --git a/.local/bin/statusbar/sb-volume b/.local/bin/statusbar/sb-volume
index 702742c..3b77433 100755
--- a/.local/bin/statusbar/sb-volume
+++ b/.local/bin/statusbar/sb-volume
@@ -3,11 +3,11 @@
# Prints the current volume or πŸ”‡ if muted.
case $1 in
- 1) hyprctl dispatch exec "kitty -e pulsemixer" ;;
+ 1) hyprctl dispatch exec "$TERMINAL -e pulsemixer" ;;
3) notify-send "πŸ“’ Volume module" "\- Shows volume πŸ”Š, πŸ”‡ if muted.
- Middle click to mute.
- Scroll to change." ;;
- 6) hyprctl dispatch exec "kitty -e \"$EDITOR\" \"$0\"" ;;
+ 6) hyprctl dispatch exec "$TERMINAL -e \"$EDITOR\" \"$0\"" ;;
esac
vol="$(wpctl get-volume @DEFAULT_AUDIO_SINK@)"
diff --git a/dependencies.txt b/dependencies.txt
index a5e5efa..0b17241 100644
--- a/dependencies.txt
+++ b/dependencies.txt
@@ -33,7 +33,7 @@ bat
chafa
# apps
-kitty
+foot
firefox
wl-clipboard
neovim