summaryrefslogtreecommitdiff
path: root/ar
diff options
context:
space:
mode:
Diffstat (limited to 'ar')
-rw-r--r--ar/.config/TheSiahxyz/lua/TheSiahxyz/plugins/ai.lua74
-rw-r--r--ar/.config/git/config8
-rw-r--r--ar/.config/shell/aliasrc7
-rw-r--r--ar/.config/shell/bm-dirs2
-rw-r--r--ar/.config/shell/bm-files3
-rw-r--r--ar/.config/zsh/scripts.zsh10
-rwxr-xr-xar/.local/bin/cron/checkup2
-rwxr-xr-xar/.local/bin/cron/crontog2
-rwxr-xr-xar/.local/bin/cron/newsup4
-rwxr-xr-xar/.local/bin/dmenurecord4
-rwxr-xr-xar/.local/bin/dmenuupgrade10
-rwxr-xr-xar/.local/bin/ecrypt3
-rwxr-xr-xar/.local/bin/ethwifi2
-rwxr-xr-xar/.local/bin/extractkeys1
-rwxr-xr-xar/.local/bin/gitupdate2
-rwxr-xr-xar/.local/bin/monitorbright4
-rwxr-xr-xar/.local/bin/mounter2
-rwxr-xr-xar/.local/bin/opensessions5
-rwxr-xr-xar/.local/bin/ovpn1
-rwxr-xr-xar/.local/bin/qndl4
-rwxr-xr-xar/.local/bin/statusbar/sb-battery4
-rwxr-xr-xar/.local/bin/statusbar/sb-bghitness2
-rwxr-xr-xar/.local/bin/statusbar/sb-brightness28
-rwxr-xr-xar/.local/bin/statusbar/sb-cpu2
-rwxr-xr-xar/.local/bin/statusbar/sb-forecast8
-rwxr-xr-xar/.local/bin/statusbar/sb-internet40
-rwxr-xr-xar/.local/bin/statusbar/sb-iplocate2
-rwxr-xr-xar/.local/bin/statusbar/sb-keyboard4
-rwxr-xr-xar/.local/bin/statusbar/sb-mailbox2
-rwxr-xr-xar/.local/bin/statusbar/sb-memory12
-rwxr-xr-xar/.local/bin/statusbar/sb-mpdup2
-rwxr-xr-xar/.local/bin/statusbar/sb-music2
-rwxr-xr-xar/.local/bin/statusbar/sb-packages2
-rwxr-xr-xar/.local/bin/statusbar/sb-popupgrade2
-rwxr-xr-xar/.local/bin/statusbar/sb-queues2
-rwxr-xr-xar/.local/bin/statusbar/sb-tasks2
-rwxr-xr-xar/.local/bin/statusbar/sb-torrent2
-rwxr-xr-xar/.local/bin/statusbar/sb-volume2
-rwxr-xr-xar/.local/bin/synctime2
-rwxr-xr-xar/.local/bin/sysact4
-rwxr-xr-xar/.local/bin/td-toggle2
-rwxr-xr-xar/.local/bin/tordone2
-rwxr-xr-xar/.local/bin/torwrap2
-rwxr-xr-xar/.local/bin/transadd2
44 files changed, 198 insertions, 86 deletions
diff --git a/ar/.config/TheSiahxyz/lua/TheSiahxyz/plugins/ai.lua b/ar/.config/TheSiahxyz/lua/TheSiahxyz/plugins/ai.lua
index 52ceb01..ee97612 100644
--- a/ar/.config/TheSiahxyz/lua/TheSiahxyz/plugins/ai.lua
+++ b/ar/.config/TheSiahxyz/lua/TheSiahxyz/plugins/ai.lua
@@ -260,6 +260,75 @@ return {
},
},
{
+ "greggh/claude-code.nvim",
+ dependencies = {
+ "nvim-lua/plenary.nvim", -- Required for git operations
+ },
+ config = function()
+ require("claude-code").setup({
+ -- Terminal window settings
+ window = {
+ split_ratio = 0.3, -- Percentage of screen for the terminal window (height for horizontal, width for vertical splits)
+ position = "vertical", -- Position of the window: "botright", "topleft", "vertical", "float", etc.
+ enter_insert = true, -- Whether to enter insert mode when opening Claude Code
+ hide_numbers = true, -- Hide line numbers in the terminal window
+ hide_signcolumn = true, -- Hide the sign column in the terminal window
+
+ -- Floating window configuration (only applies when position = "float")
+ float = {
+ width = "80%", -- Width: number of columns or percentage string
+ height = "80%", -- Height: number of rows or percentage string
+ row = "center", -- Row position: number, "center", or percentage string
+ col = "center", -- Column position: number, "center", or percentage string
+ relative = "editor", -- Relative to: "editor" or "cursor"
+ border = "rounded", -- Border style: "none", "single", "double", "rounded", "solid", "shadow"
+ },
+ },
+ -- File refresh settings
+ refresh = {
+ enable = true, -- Enable file change detection
+ updatetime = 100, -- updatetime when Claude Code is active (milliseconds)
+ timer_interval = 1000, -- How often to check for file changes (milliseconds)
+ show_notifications = true, -- Show notification when files are reloaded
+ },
+ -- Git project settings
+ git = {
+ use_git_root = true, -- Set CWD to git root when opening Claude Code (if in git project)
+ },
+ -- Shell-specific settings
+ shell = {
+ separator = "&&", -- Command separator used in shell commands
+ pushd_cmd = "pushd", -- Command to push directory onto stack (e.g., 'pushd' for bash/zsh, 'enter' for nushell)
+ popd_cmd = "popd", -- Command to pop directory from stack (e.g., 'popd' for bash/zsh, 'exit' for nushell)
+ },
+ -- Command settings
+ command = "claude", -- Command used to launch Claude Code
+ -- Command variants
+ command_variants = {
+ -- Conversation management
+ continue = "--continue", -- Resume the most recent conversation
+ resume = "--resume", -- Display an interactive conversation picker
+
+ -- Output options
+ verbose = "--verbose", -- Enable verbose logging with full turn-by-turn output
+ },
+ -- Keymaps
+ keymaps = {
+ toggle = {
+ normal = "<C-,>", -- Normal mode keymap for toggling Claude Code, false to disable
+ terminal = "<C-,>", -- Terminal mode keymap for toggling Claude Code, false to disable
+ variants = {
+ continue = "<leader>cC", -- Normal mode keymap for Claude Code with continue flag
+ verbose = "<leader>cV", -- Normal mode keymap for Claude Code with verbose flag
+ },
+ },
+ window_navigation = true, -- Enable window navigation keymaps (<C-h/j/k/l>)
+ scrolling = true, -- Enable scrolling keymaps (<C-f/b>) for page up/down
+ },
+ })
+ end,
+ },
+ {
"NickvanDyke/opencode.nvim",
dependencies = {
-- Recommended for `ask()` and `select()`.
@@ -277,7 +346,7 @@ return {
vim.o.autoread = true
-- Recommended/example keymaps.
- vim.keymap.set({ "n", "x" }, "<C-a>", function()
+ vim.keymap.set({ "n", "x" }, "<C-q>", function()
require("opencode").ask("@this: ", { submit = true })
end, { desc = "Ask opencode" })
vim.keymap.set({ "n", "x" }, "<C-x>", function()
@@ -387,7 +456,7 @@ return {
instructions_file = "avante.md",
---@alias Provider "claude" | "openai" | "azure" | "gemini" | "cohere" | "copilot" | string
---@type Provider
- provider = "openai", -- The provider used in Aider mode or in the planning phase of Cursor Planning Mode
+ provider = "claude", -- The provider used in Aider mode or in the planning phase of Cursor Planning Mode
---@alias Mode "agentic" | "legacy"
---@type Mode
mode = "agentic", -- The default mode for interaction. "agentic" uses tools to automatically generate code, "legacy" uses the old planning method to generate code.
@@ -398,6 +467,7 @@ return {
providers = {
claude = {
endpoint = "https://api.anthropic.com",
+ auth_type = "max", -- Set to "max" to sign in with Claude Pro/Max subscription
model = "claude-sonnet-4-20250514",
timeout = 30000, -- Timeout in milliseconds
extra_request_body = {
diff --git a/ar/.config/git/config b/ar/.config/git/config
index 7dc029b..3d9b746 100644
--- a/ar/.config/git/config
+++ b/ar/.config/git/config
@@ -83,6 +83,12 @@
[user]
name = TheSiahxyz
email = 164138827+TheSiahxyz@users.noreply.github.com
- signingkey = 67BE7AD056C803BA
+ signingkey = 6E0F6060D236F2AB
[commit]
gpgsign = true
+[credential "https://github.com"]
+ helper =
+ helper = !/usr/bin/gh auth git-credential
+[credential "https://gist.github.com"]
+ helper =
+ helper = !/usr/bin/gh auth git-credential
diff --git a/ar/.config/shell/aliasrc b/ar/.config/shell/aliasrc
index 8061a60..1e129f6 100644
--- a/ar/.config/shell/aliasrc
+++ b/ar/.config/shell/aliasrc
@@ -379,7 +379,7 @@ alias skype='skypeforlinux'
# ssh
alias gts="ssh $THESIAH_SERVER"
-alias wwr="ssh recordings"
+alias wwr="ssh diary"
# sudo
alias su='sudo su -l root'
@@ -487,7 +487,8 @@ alias sps="source ${XDG_CONFIG_HOME:-${HOME}/.config}/shell/profile"
alias szs="source ${XDG_CONFIG_HOME:-${HOME}/.config}/zsh/.zshrc"
alias ylogh='ylog -s hidden -c us | grep $(LC_TIME=C date +%d/%b) | grep -E "[0-9]{2}:[0-9]{2}:[0-9]{2} "'
-alias ylogi='ylog -s hidden -c us | grep $(LC_TIME=C date -v-1d +%d/%b) | grep -E "[0-9]{2}:[0-9]{2}:[0-9]{2} "'
+alias ylogi='ylog -s hidden -c us | grep $(LC_TIME=C date -d "1 days ago" +%d/%b) | grep -E "[0-9]{2}:[0-9]{2}:[0-9]{2} "'
alias ylogt='ylog -s diary -c us | grep $(LC_TIME=C date +%d/%b) | grep -E "[0-9]{2}:[0-9]{2}:[0-9]{2} "'
-alias ylogy='ylog -s diary -c us | grep $(LC_TIME=C date -d "yesterday" +%d/%b) | grep -E "[0-9]{2}:[0-9]{2}:[0-9]{2} "'
+alias ylogy='ylog -s diary -c us | grep $(LC_TIME=C date -d "1 days ago" +%d/%b) | grep -E "[0-9]{2}:[0-9]{2}:[0-9]{2} "'
+alias ylogr='ylog -s diary -c us | grep $(LC_TIME=C date -d "2 days ago" +%d/%b) | grep -E "[0-9]{2}:[0-9]{2}:[0-9]{2} "'
alias ylogu='ylog -s diary -c us'
diff --git a/ar/.config/shell/bm-dirs b/ar/.config/shell/bm-dirs
index 5d7eb89..6a9db9d 100644
--- a/ar/.config/shell/bm-dirs
+++ b/ar/.config/shell/bm-dirs
@@ -51,10 +51,12 @@ gdn ${XDG_DOWNLOAD_DIR:-${HOME}/Downloads}
gdo ${XDG_DOTFILES_DIR:-${HOME}/.dotfiles}
gfx $HOME/.mozilla/firefox/$USER.default
gmu ${XDG_MUSIC_DIR:-${HOME}/Music}
+gnu $HOME/.gnupg
gpb ${XDG_PUBLICSHARE_DIR:-${HOME}/Public}
gpp ${XDG_PICTURES_DIR:-${HOME}/Pictures}
gpv $HOME/Private
grr ${XDG_PICTURES_DIR:-${HOME}/Pictures}/resources
+gsh $HOME/.ssh
gss ${XDG_PICTURES_DIR:-${HOME}/Pictures}/screenshots
gtc $HOME/Torrents/complete
gti $HOME/Torrents/incomplete
diff --git a/ar/.config/shell/bm-files b/ar/.config/shell/bm-files
index fc8bce1..709c064 100644
--- a/ar/.config/shell/bm-files
+++ b/ar/.config/shell/bm-files
@@ -13,6 +13,8 @@ vff ${XDG_CONFIG_HOME:-${HOME}/.config}/fastfetch/config.jsonc
vga ${XDG_CONFIG_HOME:-${HOME}/.config}/shell/git-aliasrc # Git aliases
vgc ${XDG_CONFIG_HOME:-${HOME}/.config}/git/config # Git config
vgi ${XDG_CONFIG_HOME:-${HOME}/.config}/git/ignore # Git ignore
+vgn $HOME/.gnupg/gpg-agent.conf # GNUPG config
+vgs $HOME/.gnupg/sshcontrol # GNUPG SSH control config
vlf ${XDG_CONFIG_HOME:-${HOME}/.config}/lf/lfrc # LF (file browser) config
vlg ${XDG_CONFIG_HOME:-${HOME}/.config}/lazygit/config.yml # Lazygit config
vls ${XDG_CONFIG_HOME:-${HOME}/.config}/lf/scope # LF's scope/preview file
@@ -29,6 +31,7 @@ Vsm /etc/samba/smb.conf
vsa ${XDG_CONFIG_HOME:-${HOME}/.config}/shell/aliasrc # Aliases used by shell (and potentially other shells)
vse ${XDG_CONFIG_HOME:-${HOME}/.config}/sesh/sesh.toml # Sesh config
vsf ${XDG_SOURCES_HOME:-${HOME}/.local/src}/suckless/surf/config.def.h # Surf: a simple browser
+vsh $HOME/.ssh/config # SSH config
vsl ${XDG_SOURCES_HOME:-${HOME}/.local/src}/suckless/slock/config.def.h # Slock: lock screen
vsn ${XDG_DATA_HOME:-${HOME}/.local/share}/thesiah/snippets # Snippets
vsp ${XDG_CONFIG_HOME:-${HOME}/.config}/shell/profile # Shell profile used for system
diff --git a/ar/.config/zsh/scripts.zsh b/ar/.config/zsh/scripts.zsh
index 5a47ffa..d70522d 100644
--- a/ar/.config/zsh/scripts.zsh
+++ b/ar/.config/zsh/scripts.zsh
@@ -390,9 +390,13 @@ EOF
)
[[ -z "${SELECTED_DIRS// }" ]] && return
if [[ "$(echo "$SELECTED_DIRS" | wc -l)" -eq 1 ]]; then
- cd "$SELECTED_DIRS"
- if [[ -n "$(git -C "$SELECTED_DIRS" status --porcelain)" ]]; then
- git status --porcelain 2>/dev/null
+ if [[ -n "$TMUX" ]]; then
+ opensessions "$SELECTED_DIRS"
+ else
+ cd "$SELECTED_DIRS" || return
+ if [[ -n "$(git -C "$SELECTED_DIRS" status --porcelain 2>/dev/null)" ]]; then
+ git status --porcelain
+ fi
fi
else
opensessions "$SELECTED_DIRS"
diff --git a/ar/.local/bin/cron/checkup b/ar/.local/bin/cron/checkup
index 801d406..2ea6772 100755
--- a/ar/.local/bin/cron/checkup
+++ b/ar/.local/bin/cron/checkup
@@ -7,7 +7,7 @@ notify-send "πŸ“¦ Repository Sync" "Checking for package updates..."
sudo pacman -Syyuw --noconfirm || notify-send "β›” Error downloading updates.
Check your internet connection, if pacman is already running, or run update manually to see errors."
-pkill -RTMIN+16 "${STATUSBAR:-dwmblocks}"
+pkill -RTMIN+14 "${STATUSBAR:-dwmblocks}"
if pacman -Qu | grep -v "\[ignored\]"; then
notify-send "🎁 Repository Sync" "Updates available. Click statusbar icon (πŸ“¦) or run sb-popupgrade in terminal for update."
diff --git a/ar/.local/bin/cron/crontog b/ar/.local/bin/cron/crontog
index 70e7cf1..ccabe61 100755
--- a/ar/.local/bin/cron/crontog
+++ b/ar/.local/bin/cron/crontog
@@ -23,4 +23,4 @@ else
fi
# Notify status bar to update
-pkill -RTMIN+3 "${STATUSBAR:-dwmblocks}"
+pkill -RTMIN+2 "${STATUSBAR:-dwmblocks}"
diff --git a/ar/.local/bin/cron/newsup b/ar/.local/bin/cron/newsup
index 346ec75..f8b40b7 100755
--- a/ar/.local/bin/cron/newsup
+++ b/ar/.local/bin/cron/newsup
@@ -8,8 +8,8 @@
pgrep -f newsboat$ && /usr/bin/xdotool key --window "$(/usr/bin/xdotool search --name "^newsboat$")" R && exit
echo πŸ”ƒ >/tmp/newsupdate
-pkill -RTMIN+19 "${STATUSBAR:-dwmblocks}"
+pkill -RTMIN+17 "${STATUSBAR:-dwmblocks}"
/usr/bin/newsboat -x reload
rm -f /tmp/newsupdate
-pkill -RTMIN+19 "${STATUSBAR:-dwmblocks}"
+pkill -RTMIN+17 "${STATUSBAR:-dwmblocks}"
/usr/bin/notify-send "πŸ“° RSS feed update complete."
diff --git a/ar/.local/bin/dmenurecord b/ar/.local/bin/dmenurecord
index 621133d..a497aa4 100755
--- a/ar/.local/bin/dmenurecord
+++ b/ar/.local/bin/dmenurecord
@@ -17,7 +17,7 @@ getdim() { xrandr | grep -oP '(?<=current ).*(?=,)' | tr -d ' '; }
updateicon() {
echo "$1" >/tmp/recordingicon
- pkill -RTMIN+24 "${STATUSBAR:-dwmblocks}"
+ pkill -RTMIN+22 "${STATUSBAR:-dwmblocks}"
}
killrecording() {
@@ -25,7 +25,7 @@ killrecording() {
kill -15 "$recpid"
rm -f /tmp/recordingpid
updateicon ""
- pkill -RTMIN+24 "${STATUSBAR:-dwmblocks}"
+ pkill -RTMIN+22 "${STATUSBAR:-dwmblocks}"
}
getmonitor() {
diff --git a/ar/.local/bin/dmenuupgrade b/ar/.local/bin/dmenuupgrade
index b43ff4c..b23e80a 100755
--- a/ar/.local/bin/dmenuupgrade
+++ b/ar/.local/bin/dmenuupgrade
@@ -16,7 +16,7 @@ case "$selection" in
if [ "$(printf "No\nYes" | dmenu -i -p 'Proceed with upgrade for all packages?')" = "Yes" ]; then
notify-send "πŸ“¦ Upgrading all packages..."
yay -Syu --noconfirm
- pkill -RTMIN+16 "${STATUSBAR:-dwmblocks}"
+ pkill -RTMIN+14 "${STATUSBAR:-dwmblocks}"
notify-send "βœ… Upgrade of all packages completed."
else
notify-send "❌ Upgrade cancelled."
@@ -31,7 +31,7 @@ case "$selection" in
if [ "$(printf "No\nYes" | dmenu -i -p 'Proceed with pacman upgrade?')" = "Yes" ]; then
notify-send "πŸ“¦ Upgrading pacman packages..."
printf "%s" "$pacman_updates" | awk '{print $1}' | xargs sudo pacman -S --noconfirm
- pkill -RTMIN+16 "${STATUSBAR:-dwmblocks}"
+ pkill -RTMIN+14 "${STATUSBAR:-dwmblocks}"
notify-send "βœ… Pacman packages upgrade completed."
else
notify-send "❌ Upgrade cancelled."
@@ -46,7 +46,7 @@ case "$selection" in
if [ "$(printf "No\nYes" | dmenu -i -p 'Proceed with upgrade for this package?')" = "Yes" ]; then
notify-send "πŸ“¦ Upgrading package: $selection..."
sudo pacman -S --noconfirm "$(printf "%s" "$selection" | awk '{print $1}')"
- pkill -RTMIN+16 "${STATUSBAR:-dwmblocks}"
+ pkill -RTMIN+14 "${STATUSBAR:-dwmblocks}"
notify-send "βœ… Upgrade completed for package: $selection."
else
notify-send "❌ Upgrade cancelled."
@@ -73,7 +73,7 @@ case "$selection" in
if [ "$(printf "No\nYes" | dmenu -i -p 'Proceed with AUR upgrade?')" = "Yes" ]; then
notify-send "πŸ“¦ Upgrading AUR packages..."
yay -Syu --aur --noconfirm
- pkill -RTMIN+16 "${STATUSBAR:-dwmblocks}"
+ pkill -RTMIN+14 "${STATUSBAR:-dwmblocks}"
notify-send "βœ… AUR packages upgrade completed."
else
notify-send "❌ Upgrade cancelled."
@@ -88,7 +88,7 @@ case "$selection" in
if [ "$(printf "No\nYes" | dmenu -i -p 'Proceed with upgrade for this package?')" = "Yes" ]; then
notify-send "πŸ“¦ Upgrading AUR package: $selection..."
yay -S --noconfirm "$(printf "%s" "$selection" | awk '{print $2}')"
- pkill -RTMIN+16 "${STATUSBAR:-dwmblocks}"
+ pkill -RTMIN+14 "${STATUSBAR:-dwmblocks}"
notify-send "βœ… Upgrade completed for AUR package: $selection."
else
notify-send "❌ Upgrade cancelled."
diff --git a/ar/.local/bin/ecrypt b/ar/.local/bin/ecrypt
index e13c033..4240c71 100755
--- a/ar/.local/bin/ecrypt
+++ b/ar/.local/bin/ecrypt
@@ -27,6 +27,9 @@ attempt_mount() {
targets="$HOME/.secret"
mounts="$HOME/Private"
pw="default"
+[ -d "$targets" ] || mkdir -p "$targets"
+[ -d "$mounts" ] || mkdir -p "$mounts"
+
set -- $mounts # Set positional parameters to mounts
i=1
for target in $targets; do
diff --git a/ar/.local/bin/ethwifi b/ar/.local/bin/ethwifi
index 26366e9..c4fa0c6 100755
--- a/ar/.local/bin/ethwifi
+++ b/ar/.local/bin/ethwifi
@@ -28,4 +28,4 @@ else
fi
# Refresh status bar
-pkill -RTMIN+7 "${STATUSBAR:-dwmblocks}"
+pkill -RTMIN+6 "${STATUSBAR:-dwmblocks}"
diff --git a/ar/.local/bin/extractkeys b/ar/.local/bin/extractkeys
index b45358d..4e4e5b4 100755
--- a/ar/.local/bin/extractkeys
+++ b/ar/.local/bin/extractkeys
@@ -125,6 +125,7 @@ for file_path in "${config_files[@]}"; do
s/&layouts\[12\]/"|M|"/g;
s/&layouts\[13\]/">M>"/g;
s/^\s*//g;
+ s/pkexec //g;
/^\s*0\s*$/d
')
diff --git a/ar/.local/bin/gitupdate b/ar/.local/bin/gitupdate
index 6ee163a..87c13c3 100755
--- a/ar/.local/bin/gitupdate
+++ b/ar/.local/bin/gitupdate
@@ -87,4 +87,4 @@ printf "\n[repo] %s(%s): %s\n" "$(basename "$repo_root")" "$branch" "$message"
# Return to the original directory
cd - >/dev/null
-command -v dwmblocks >/dev/null 2>&1 && pkill -RTMIN+18 "${STATUSBAR:-dwmblocks}"
+command -v dwmblocks >/dev/null 2>&1 && pkill -RTMIN+16 "${STATUSBAR:-dwmblocks}"
diff --git a/ar/.local/bin/monitorbright b/ar/.local/bin/monitorbright
index 2de2e5d..db2bcf3 100755
--- a/ar/.local/bin/monitorbright
+++ b/ar/.local/bin/monitorbright
@@ -15,10 +15,6 @@ case "$monitor" in
esac
new_brightness=$(echo "if ($new_brightness > 1) 1 else if ($new_brightness < 0) 0 else $new_brightness" | bc -l)
xrandr --output "$monitor" --brightness "$new_brightness"
- current_brightness=$(echo "$new_brightness * 100" | bc -l)
- else
- current_brightness=$(echo "$current_brightness * 100" | bc -l)
fi
- printf "πŸͺŸ%.0f%%\n" "$current_brightness"
;;
esac
diff --git a/ar/.local/bin/mounter b/ar/.local/bin/mounter
index a9d7a61..c8eabbf 100755
--- a/ar/.local/bin/mounter
+++ b/ar/.local/bin/mounter
@@ -81,7 +81,7 @@ unopenedluks="$(for drive in $allluks; do
done | filter)"
# Get all normal, non-encrypted or decrypted partitions that are not mounted.
-normalparts="$(echo "$lsblkoutput" | grep -v crypto_LUKS | grep -v 'part 1M' | grep 'part\|rom\|crypt' | sed "s/^/πŸ’Ύ /" | filter)"
+normalparts="$(echo "$lsblkoutput" | grep -v crypto_LUKS | grep -v 'LVM2_member' | grep -v 'part 1M' | grep 'part\|rom\|crypt' | sed "s/^/πŸ’Ύ /" | filter)"
# Get all available IP addresses with open Samba shares in the wlan0 subnet, excluding eth0 IP
smbips="$(sudo arp-scan --interface=eth0 --interface=wlan0 --localnet | grep -vEi '(EFM Networks|DUP:)' | awk '/^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+/{print $1}')"
diff --git a/ar/.local/bin/opensessions b/ar/.local/bin/opensessions
index 6f9f236..d16f42f 100755
--- a/ar/.local/bin/opensessions
+++ b/ar/.local/bin/opensessions
@@ -18,7 +18,10 @@ set -- $dirs
for dir in $dirs; do
if [ -d "$dir" ]; then
session_name=$(get_session_name "$dir")
- if ! tmux has-session -t "$session_name" 2>/dev/null; then
+ if tmux has-session -t "$session_name" 2>/dev/null; then
+ session_path=$(tmux display-message -t "$session_name" -p '#{session_path}')
+ tmux send-keys -t "$session_name" "cd \"$session_path\"" C-m
+ else
tmux new-session -d -s "$session_name" -c "$dir"
if git -C "$dir" rev-parse --is-inside-work-tree >/dev/null 2>&1 && [ -n "$(git -C "$dir" status --porcelain)" ]; then
tmux send-keys -t "$session_name" "git status --porcelain" C-m
diff --git a/ar/.local/bin/ovpn b/ar/.local/bin/ovpn
index a89c357..10ecc01 100755
--- a/ar/.local/bin/ovpn
+++ b/ar/.local/bin/ovpn
@@ -7,7 +7,6 @@ turnonoffvpn() {
;;
*off*)
nmcli connection down "$THESIAH_VPN" 2>/dev/null && notify-send "βœ‚οΈ THESIAH_VPN: OFF" || notify-send "βœ‚οΈ Error to disconnect"
-
;;
esac
}
diff --git a/ar/.local/bin/qndl b/ar/.local/bin/qndl
index 46b4aa8..2757eb8 100755
--- a/ar/.local/bin/qndl
+++ b/ar/.local/bin/qndl
@@ -47,7 +47,7 @@ case $type in
video_id=$(echo "$line" | awk '{print $2}')
ytdl_cmd="$ytdl_cmd_base --output \"$ytdl_output_format\" \"https://www.youtube.com/watch?v=$video_id\""
idnum=$(tsp bash -c "$ytdl_cmd")
- pkill -RTMIN+21 "${STATUSBAR:-dwmblocks}"
+ pkill -RTMIN+19 "${STATUSBAR:-dwmblocks}"
done <"$archive_file"
exit 0
;;
@@ -120,7 +120,7 @@ filename=$($simulation_cmd 2>/dev/null)
[ -f /tmp/qplaylist ] && rm -rf /tmp/qplaylist
notify-send "⏳ Downloading $download_type:" "$filename"
idnum=$(tsp bash -c "$ytdl_cmd")
-pkill -RTMIN+21 "${STATUSBAR:-dwmblocks}"
+pkill -RTMIN+19 "${STATUSBAR:-dwmblocks}"
# Notify upon completion
tsp -D "$idnum" notify-send "βœ… $download_type download complete:" "$url" ||
diff --git a/ar/.local/bin/statusbar/sb-battery b/ar/.local/bin/statusbar/sb-battery
index faf3d04..fc02f61 100755
--- a/ar/.local/bin/statusbar/sb-battery
+++ b/ar/.local/bin/statusbar/sb-battery
@@ -10,7 +10,7 @@ get_status_icon() {
Discharging) echo "πŸ”‹" ;;
Charging) echo "πŸ”Œ" ;;
"Not charging") echo "πŸ›‘" ;;
- Unknown) echo "♻️" ;;
+ Unknown) echo "β™»" ;;
*) echo "" ;;
esac
}
@@ -57,7 +57,7 @@ case "$BLOCK_BUTTON" in
2) bluetooth && devices "hid*" ;; # Middle click for Bluetooth battery levels
3) notify-send "πŸ”‹ Battery module" "\- πŸ”‹: discharging
- πŸ›‘: not charging
-- ♻️: stagnant charge
+- β™»: stagnant charge
- πŸ”Œ: charging
- ⚑: fully charged
- ❗: battery very low!
diff --git a/ar/.local/bin/statusbar/sb-bghitness b/ar/.local/bin/statusbar/sb-bghitness
index 0aabfb6..83dc809 100755
--- a/ar/.local/bin/statusbar/sb-bghitness
+++ b/ar/.local/bin/statusbar/sb-bghitness
@@ -10,7 +10,7 @@ max_brightness=$(cat /sys/class/backlight/*/max_brightness)
brightness_per=$((100 * curr_brightness / max_brightness))
case $BLOCK_BUTTON in
-3) notify-send "πŸ’‘ Brightness module" "\- Shows current brightness level β˜€οΈ." ;;
+3) notify-send "πŸ’‘ Brightness module" "\- Shows current brightness level β˜€ ." ;;
4) pkexec brillo -A 5 -q ;;
5) pkexec brillo -U 5 -q ;;
6) setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;;
diff --git a/ar/.local/bin/statusbar/sb-brightness b/ar/.local/bin/statusbar/sb-brightness
index 909e676..e18fa2c 100755
--- a/ar/.local/bin/statusbar/sb-brightness
+++ b/ar/.local/bin/statusbar/sb-brightness
@@ -1,11 +1,31 @@
#!/bin/sh
+monitor=$(xrandr --query | grep -i '\sconnected' | grep '[0-9]x[0-9]' | grep -i 'primary' | cut -d ' ' -f1)
+[ -z "$monitor" ] && monitor=$(xrandr --query | grep -i '\sconnected' | grep '[0-9]x[0-9]' | cut -d ' ' -f1)
+case "$monitor" in
+*DP* | *HDMI*)
+ current_brightness=$(xrandr --verbose | grep -i "^$monitor connected" -A5 | grep -i "Brightness:" | cut -d ' ' -f2)
+ current_brightness=$(printf "%.0f\n" "$(echo "$current_brightness * 100" | bc -l)")
+ ;;
+esac
+
case $BLOCK_BUTTON in
3) notify-send "πŸ”† Backlight module
-- Scroll up & down changes backlight" ;;
-4) monbright -inc 5 ;;
-5) monbright -dec 5 ;;
+- Scroll up & down changes screen brightness
+- Shift + Scroll up & down changes monitor backlight" ;;
+4) pkexec brillo -A 5 -q ;;
+5) pkexec brillo -U 5 -q ;;
6) setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;;
+7) monbright -inc 5 ;;
+8) monbright -dec 5 ;;
+9) setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;;
esac
-monitorbright
+if [ -r /sys/class/backlight/*/brightness ]; then
+ curr_brightness=$(cat /sys/class/backlight/*/brightness)
+ max_brightness=$(cat /sys/class/backlight/*/max_brightness)
+ brightness_per=$((100 * curr_brightness / max_brightness))
+ printf "%s %s\n" "πŸ’‘${brightness_per}%" "πŸͺŸ$current_brightness"
+else
+ printf "%s\n" "πŸͺŸ$current_brightness"
+fi
diff --git a/ar/.local/bin/statusbar/sb-cpu b/ar/.local/bin/statusbar/sb-cpu
index 565ca26..0cb6f4f 100755
--- a/ar/.local/bin/statusbar/sb-cpu
+++ b/ar/.local/bin/statusbar/sb-cpu
@@ -9,4 +9,4 @@ case $BLOCK_BUTTON in
6) setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;;
esac
-sensors | awk '/Core 0/ {printf "🧁%d°\n", $3}'
+sensors | awk '/Tctl:/ {gsub(/[+°C]/,"",$2); printf "🧁%s°", $2}'
diff --git a/ar/.local/bin/statusbar/sb-forecast b/ar/.local/bin/statusbar/sb-forecast
index d9dded0..063c8e5 100755
--- a/ar/.local/bin/statusbar/sb-forecast
+++ b/ar/.local/bin/statusbar/sb-forecast
@@ -59,7 +59,7 @@ gethightemp() { jq -r '.weather[0].hourly[].tempC' "$weatherreportjson" | sort -
gethumidity() {
humidity=$(get_nearest_hourly | jq -r '.humidity')
case "$humidity" in
- [0-9] | [1-2][0-9]) echo "🏜️: $humidity%" ;;
+ [0-9] | [1-2][0-9]) echo "🏜: $humidity%" ;;
[3-4][0-9]) echo "🌲: $humidity%" ;;
[5-6][0-9]) echo "πŸ’§: $humidity%" ;;
[7-8][0-9]) echo "πŸ’¦: $humidity%" ;;
@@ -351,7 +351,7 @@ case $BLOCK_BUTTON in
πŸ₯Ά: Daily lowest temperature
πŸ₯΅: Daily highest temperature"
notify-send "$(todayweather)"
- notify-send "πŸ—ΊοΈ Doppler RADAR module" "\- Middle click for local Doppler RADAR
+ notify-send "πŸ—Ί Doppler RADAR module" "\- Middle click for local Doppler RADAR
- Shift + middle click to update RADAR location
After $secs seconds, new clicks will also automatically update the doppler RADAR"
;;
@@ -360,6 +360,6 @@ After $secs seconds, new clicks will also automatically update the doppler RADAR
8) setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;;
esac
-checkforecast "$weatherreport" "3600" || { getweatherreport && pkill -RTMIN+15 "${STATUSBAR:-dwmblocks}" && sleep 3; }
-checkforecast "$weatherreportjson" "86400" || { getweatherreportjson && pkill -RTMIN+15 "${STATUSBAR:-dwmblocks}" && sleep 3; }
+checkforecast "$weatherreport" "3600" || { getweatherreport && pkill -RTMIN+13 "${STATUSBAR:-dwmblocks}" && sleep 3; }
+checkforecast "$weatherreportjson" "86400" || { getweatherreportjson && pkill -RTMIN+13 "${STATUSBAR:-dwmblocks}" && sleep 3; }
showweather
diff --git a/ar/.local/bin/statusbar/sb-internet b/ar/.local/bin/statusbar/sb-internet
index acbb1f4..4dfb605 100755
--- a/ar/.local/bin/statusbar/sb-internet
+++ b/ar/.local/bin/statusbar/sb-internet
@@ -2,33 +2,31 @@
# Show wifi πŸ›œ and percent strength or πŸ“‘ if none.
# Show 🌐 if connected to ethernet or ❎ if none.
-# Show πŸ›°οΈ if a vpn connection is active
+# Show πŸ›° if a vpn connection is active
-set_eth() {
- eth_con="$(nmcli -t -f NAME,TYPE,DEVICE connection show |
- awk -F: '$2=="ethernet" && $3!="" { print $1; exit }')"
+eth_con="$(nmcli -t -f NAME,TYPE,DEVICE connection show |
+ awk -F: '$2=="ethernet" && $3!="" { print $1; exit }')"
- wifi_con="$(nmcli -t -f NAME,TYPE connection show |
- awk -F: '$2=="wifi" { print $1; exit }')"
+wifi_con="$(nmcli -t -f NAME,TYPE connection show |
+ awk -F: '$2=="wifi" { print $1; exit }')"
- if [ -n "$eth_con" ]; then
- nmcli connection modify "$eth_con" ipv4.method auto
- nmcli connection modify "$eth_con" ipv4.never-default no
- nmcli connection modify "$eth_con" ipv4.dns-priority -42
- nmcli connection modify "$eth_con" ipv4.route-metric 100
- nmcli connection modify "$eth_con" connection.autoconnect yes
- fi
+if [ -n "$eth_con" ]; then
+ nmcli connection modify "$eth_con" ipv4.method auto
+ nmcli connection modify "$eth_con" ipv4.never-default no
+ nmcli connection modify "$eth_con" ipv4.dns-priority -42
+ nmcli connection modify "$eth_con" ipv4.route-metric 100
+ nmcli connection modify "$eth_con" connection.autoconnect yes
+fi
- if [ -n "$wifi_con" ]; then
- nmcli connection modify "$wifi_con" ipv4.dns-priority 100
- nmcli connection modify "$wifi_con" ipv4.route-metric 600
- fi
-}
+if [ -n "$wifi_con" ]; then
+ nmcli connection modify "$wifi_con" ipv4.dns-priority 100
+ nmcli connection modify "$wifi_con" ipv4.route-metric 600
+fi
case $BLOCK_BUTTON in
1)
"$TERMINAL" -e nmtui
- pkill -RTMIN+7 dwmblocks
+ pkill -RTMIN+6 dwmblocks
;;
2)
wifi_dev="$(nmcli -t -f DEVICE,TYPE device |
@@ -45,7 +43,7 @@ case $BLOCK_BUTTON in
notify-send "Wi-Fi" "Wi-Fi connected"
fi
- pkill -RTMIN+7 dwmblocks
+ pkill -RTMIN+6 dwmblocks
;;
3) notify-send "🌐 Internet module" "\- Left click to connect
❌: wifi disabled
@@ -73,7 +71,7 @@ fi
grep -q 'up' /sys/class/net/e*/operstate && ethericon="🌐" || ethericon="❎"
# TUN
-grep -q 'up' /sys/class/net/tun*/operstate 2>/dev/null && tunicon="πŸ›°"
+[ -n "$(cat /sys/class/net/tun*/operstate 2>/dev/null)" ] && tunicon="πŸ›°"
icons=""
[ -n "$wifiicon" ] && icons="${icons}$wifiicon "
diff --git a/ar/.local/bin/statusbar/sb-iplocate b/ar/.local/bin/statusbar/sb-iplocate
index d84445e..d7a9349 100755
--- a/ar/.local/bin/statusbar/sb-iplocate
+++ b/ar/.local/bin/statusbar/sb-iplocate
@@ -10,6 +10,6 @@ set -e
ifinstalled "geoip"
addr="$(geoiplookup "$(curl -sfm 1 ifconfig.me 2>/dev/null)")"
name="${addr##*, }"
-flag="$(grep "flag: $name" "${XDG_DATA_HOME:-${HOME}/.local/share}/larbs/emoji")"
+flag="$(grep "flag: $name" "${XDG_DATA_HOME:-${HOME}/.local/share}/thesiah/chars/emoji")"
flag="${flag%% *}"
printf "%s %s\\n" "$flag" "$name"
diff --git a/ar/.local/bin/statusbar/sb-keyboard b/ar/.local/bin/statusbar/sb-keyboard
index 67b5f6d..2257b1b 100755
--- a/ar/.local/bin/statusbar/sb-keyboard
+++ b/ar/.local/bin/statusbar/sb-keyboard
@@ -3,7 +3,7 @@
# works on any init system
# requirements: dmenu, xorg-setxkbmap
case $BLOCK_BUTTON in
-1) fcitx5-remote -t && kill -44 "$(pidof "${STATUSBAR:-dwmblocks}")" ;;
+1) fcitx5-remote -t && kill -43 "$(pidof "${STATUSBAR:-dwmblocks}")" ;;
2) remaps ;;
3) notify-send "⌨ Input Method module" "\- Shows current input method (defalt US)
- Left click to switch language (EN/KO)
@@ -14,7 +14,7 @@ case $BLOCK_BUTTON in
[ -z "$kb_choice" ] && exit 0
kb="$(echo "$kb_choice" | awk '{print $3}')"
setxkbmap "$kb"
- pkill -RTMIN+10 "${STATUSBAR:-dwmblocks}"
+ pkill -RTMIN+9 "${STATUSBAR:-dwmblocks}"
;;
esac
diff --git a/ar/.local/bin/statusbar/sb-mailbox b/ar/.local/bin/statusbar/sb-mailbox
index c772a0d..6926b6e 100755
--- a/ar/.local/bin/statusbar/sb-mailbox
+++ b/ar/.local/bin/statusbar/sb-mailbox
@@ -6,7 +6,7 @@
case $BLOCK_BUTTON in
1)
setsid -w -f "$TERMINAL" -e neomutt
- pkill -RTMIN+20 "${STATUSBAR:-dwmblocks}"
+ pkill -RTMIN+18 "${STATUSBAR:-dwmblocks}"
;;
2) setsid -f mw -Y >/dev/null ;;
3) notify-send "πŸ“¬ Mail module" "\- Shows unread mail
diff --git a/ar/.local/bin/statusbar/sb-memory b/ar/.local/bin/statusbar/sb-memory
index 5b06d29..3c9dd03 100755
--- a/ar/.local/bin/statusbar/sb-memory
+++ b/ar/.local/bin/statusbar/sb-memory
@@ -10,9 +10,15 @@ case $BLOCK_BUTTON in
esac
width=$(xrandr | grep "\*" | awk '{print $1}' | sed 's/x[0-9]*//g' | head -n1)
+nvme_temp=$(sensors 2>/dev/null |
+ awk '/Composite:/ {gsub(/[+Β°C]/,"",$2); print $2; exit}')
if [ -n "$width" ] && [ "$width" -eq "$width" ] 2>/dev/null; then
- [ "$width" -lt 1920 ] &&
- free --mebi | sed -n '2{p;q}' | awk '{printf ("🐏%d%%\n", ($3/$2)*100+0.5 )}' ||
- free --mebi | sed -n '2{p;q}' | awk '{printf ("🐏%dGB/%dGB", $3/1000+0.5,$2/1000+0.5)}'
+ if [ "$width" -lt 1920 ]; then
+ free --mebi | sed -n '2{p;q}' |
+ awk -v t="$nvme_temp" '{printf "🌑%s° 🐏%d%%\n", t, ($3/$2)*100+0.5}'
+ else
+ free --mebi | sed -n '2{p;q}' |
+ awk -v t="$nvme_temp" '{printf "🌑%s° 🐏%dGB/%dGB", t, $3/1000+0.5, $2/1000+0.5}'
+ fi
fi
diff --git a/ar/.local/bin/statusbar/sb-mpdup b/ar/.local/bin/statusbar/sb-mpdup
index 90e9c7e..fa9b61b 100755
--- a/ar/.local/bin/statusbar/sb-mpdup
+++ b/ar/.local/bin/statusbar/sb-mpdup
@@ -4,5 +4,5 @@
# music player's status. mpd must be running on X's start for this to work.
while :; do
- mpc idle >/dev/null && kill -57 "$(pidof "${STATUSBAR:-dwmblocks}")" || break
+ mpc idle >/dev/null && kill -55 "$(pidof "${STATUSBAR:-dwmblocks}")" || break
done
diff --git a/ar/.local/bin/statusbar/sb-music b/ar/.local/bin/statusbar/sb-music
index a71969f..d730116 100755
--- a/ar/.local/bin/statusbar/sb-music
+++ b/ar/.local/bin/statusbar/sb-music
@@ -61,7 +61,7 @@ case $BLOCK_BUTTON in
1) setsid -f "$TERMINAL" -e ncmpcpp ;; # left click, opens ncmpcpp
2) mpc toggle ;; # middle click, pause/unpause
3) # right click
- { [ -n "$(mpc current)" ] && [ -n "$(mpc queued)" ]; } && notify-send "🎡 $(mpc current)" "⏭️ $(mpc queued)"
+ { [ -n "$(mpc current)" ] && [ -n "$(mpc queued)" ]; } && notify-send "🎡 $(mpc current)" "⏭ $(mpc queued)"
notify-send "🎡 Music module" "\- Shows mpd song playing and status
- 🎡 if playing
- ⏸ if paused
diff --git a/ar/.local/bin/statusbar/sb-packages b/ar/.local/bin/statusbar/sb-packages
index 5955c75..467bfb3 100755
--- a/ar/.local/bin/statusbar/sb-packages
+++ b/ar/.local/bin/statusbar/sb-packages
@@ -15,7 +15,7 @@
# [Action]
# Description = Updating statusbar...
# When = PostTransaction
-# Exec = /usr/bin/pkill -RTMIN+16 dwmblocks # Or i3blocks if using i3.
+# Exec = /usr/bin/pkill -RTMIN+14 dwmblocks # Or i3blocks if using i3.
case $BLOCK_BUTTON in
1) setsid -f "$TERMINAL" -e sb-popupgrade && remaps ;;
diff --git a/ar/.local/bin/statusbar/sb-popupgrade b/ar/.local/bin/statusbar/sb-popupgrade
index 14036eb..221c7db 100755
--- a/ar/.local/bin/statusbar/sb-popupgrade
+++ b/ar/.local/bin/statusbar/sb-popupgrade
@@ -3,7 +3,7 @@
printf "Beginning upgrade\\n"
yay -Syu
-pkill -RTMIN+16 "${STATUSBAR:-dwmblocks}"
+pkill -RTMIN+14 "${STATUSBAR:-dwmblocks}"
printf "\\nUpgrade complete.\\nPress <Enter> to exit window.\\n\\n"
read -r _
diff --git a/ar/.local/bin/statusbar/sb-queues b/ar/.local/bin/statusbar/sb-queues
index 40445f8..477fa7f 100755
--- a/ar/.local/bin/statusbar/sb-queues
+++ b/ar/.local/bin/statusbar/sb-queues
@@ -18,7 +18,7 @@ EOF
if [ -z "$url" ]; then
notify-send "πŸ’€ No active yt-dlp downloads"
fi
- pkill -RTMIN+21 "${STATUSBAR:-dwmblocks}"
+ pkill -RTMIN+19 "${STATUSBAR:-dwmblocks}"
}
# This block displays the number of running and queued background tasks. Requires tsp.
diff --git a/ar/.local/bin/statusbar/sb-tasks b/ar/.local/bin/statusbar/sb-tasks
index 66be81b..5fc61df 100755
--- a/ar/.local/bin/statusbar/sb-tasks
+++ b/ar/.local/bin/statusbar/sb-tasks
@@ -67,7 +67,7 @@ $(printf "%b" "$overdue_list")"
;;
2) check_task_sync ;;
3)
- notify-send "πŸ—‚οΈ Task Module" "Shows task counts.
+ notify-send "πŸ—‚ Task Module" "Shows task counts.
- Left click: Show tasks due soon.
- Middle click: Show follow-up tasks."
;;
diff --git a/ar/.local/bin/statusbar/sb-torrent b/ar/.local/bin/statusbar/sb-torrent
index ec104b4..3e4b729 100755
--- a/ar/.local/bin/statusbar/sb-torrent
+++ b/ar/.local/bin/statusbar/sb-torrent
@@ -5,7 +5,7 @@ status=$(transmission-remote -l | grep % |
s/.*Stopped.*/A πŸ›‘/;
s/.*Seeding.*/Z 🌱/;
s/.*100%.*/N βœ…/;
- s/.*Idle.*/B πŸ•°οΈ/;
+ s/.*Idle.*/B πŸ•°/;
s/.*Uploading.*/L πŸ”Ό/;
s/.*Downloading.*/M πŸ”½/;
s/.*%.*/Q ❓/" |
diff --git a/ar/.local/bin/statusbar/sb-volume b/ar/.local/bin/statusbar/sb-volume
index 7881bfd..291e78d 100755
--- a/ar/.local/bin/statusbar/sb-volume
+++ b/ar/.local/bin/statusbar/sb-volume
@@ -5,7 +5,7 @@
case $BLOCK_BUTTON in
1)
setsid -w -f "$TERMINAL" -e pulsemixer
- pkill -RTMIN+5 "${STATUSBAR:-dwmblocks}"
+ pkill -RTMIN+4 "${STATUSBAR:-dwmblocks}"
;;
2) wpctl set-mute @DEFAULT_SINK@ toggle ;;
3) notify-send "πŸ“’ Volume module" "\- Shows volume πŸ”Š, πŸ”‡ if muted
diff --git a/ar/.local/bin/synctime b/ar/.local/bin/synctime
index 47f4310..664639f 100755
--- a/ar/.local/bin/synctime
+++ b/ar/.local/bin/synctime
@@ -19,4 +19,4 @@ sudo hwclock --systohc
echo "Current timezone: $current_zone"
date
-pkill -RTMIN+3 ${STATUSBAR:-dwmblocks}
+pkill -RTMIN+2 ${STATUSBAR:-dwmblocks}
diff --git a/ar/.local/bin/sysact b/ar/.local/bin/sysact
index d4f3653..64ef127 100755
--- a/ar/.local/bin/sysact
+++ b/ar/.local/bin/sysact
@@ -11,10 +11,10 @@ lock() {
mpc pause
pauseallmpv
wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
- kill -39 "$(pidof dwmblocks)"
+ kill -38 "$(pidof dwmblocks)"
slock
wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
- kill -39 "$(pidof dwmblocks)"
+ kill -38 "$(pidof dwmblocks)"
}
wmpid() { # This function is needed if there are multiple instances of the window manager.
diff --git a/ar/.local/bin/td-toggle b/ar/.local/bin/td-toggle
index 4bbe75c..c71d53f 100755
--- a/ar/.local/bin/td-toggle
+++ b/ar/.local/bin/td-toggle
@@ -8,4 +8,4 @@ else
ifinstalled transmission-cli || exit
[ "$(printf "No\\nYes" | dmenu -i -p "Turn on transmission daemon?")" = "Yes" ] && transmission-daemon && notify-send "πŸš„ transmission-daemon enabled."
fi
-sleep 3 && pkill -RTMIN+22 "${STATUSBAR:-dwmblocks}"
+sleep 3 && pkill -RTMIN+20 "${STATUSBAR:-dwmblocks}"
diff --git a/ar/.local/bin/tordone b/ar/.local/bin/tordone
index 4e097a0..016568f 100755
--- a/ar/.local/bin/tordone
+++ b/ar/.local/bin/tordone
@@ -5,6 +5,6 @@ if [ -n "$completed_torrents" ]; then
for torrent_id in $completed_torrents; do
transmission-remote -n "$USER" -t "$torrent_id" -r
done
- pkill -RTMIN+22 "${STATUSBAR:-dwmblocks}" && notify-send "βœ… Transmission-daemon" "Torrent(s) $TR_TORRENT_NAME has completed downloading. Deleting torrent files."
+ pkill -RTMIN+20 "${STATUSBAR:-dwmblocks}" && notify-send "βœ… Transmission-daemon" "Torrent(s) $TR_TORRENT_NAME has completed downloading. Deleting torrent files."
[ -z "$(transmission-remote -n "$USER" -l | grep -v "Sum:")" ] && killall transmission-daemon && notify-send "❌ Transmission-daemon disabled."
fi
diff --git a/ar/.local/bin/torwrap b/ar/.local/bin/torwrap
index 54f5c0e..624778a 100755
--- a/ar/.local/bin/torwrap
+++ b/ar/.local/bin/torwrap
@@ -5,4 +5,4 @@ ifinstalled stig transmission-cli || exit 1
! pidof transmission-daemon >/dev/null && transmission-daemon && notify-send "Starting torrent daemon..."
"${TERMINAL:-st}" -n stig -e stig
-pkill -RTMIN+22 "${STATUSBAR:-dwmblocks}"
+pkill -RTMIN+20 "${STATUSBAR:-dwmblocks}"
diff --git a/ar/.local/bin/transadd b/ar/.local/bin/transadd
index ffd8ded..567b1bc 100755
--- a/ar/.local/bin/transadd
+++ b/ar/.local/bin/transadd
@@ -4,7 +4,7 @@
# transmission-daemon sometimes fails to take remote requests in its first moments, hence the sleep.
-pidof transmission-daemon >/dev/null || (transmission-daemon && notify-send "πŸ’‘ Starting transmission daemon..." && sleep 3 && pkill -RTMIN+22 "${STATUSBAR:-dwmblocks}")
+pidof transmission-daemon >/dev/null || (transmission-daemon && notify-send "πŸ’‘ Starting transmission daemon..." && sleep 3 && pkill -RTMIN+20 "${STATUSBAR:-dwmblocks}")
directory="$HOME/Torrents"