summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-02-09 11:14:54 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-02-09 11:14:54 +0900
commit4cd33a03503496a6cb276ef600e3a2f2abfe13fd (patch)
tree1f19ea0dd92ad22bc44fea3e494a29f768be6e68
parentda41110493a89042cce569f839c9674c4fc8b0b8 (diff)
modified bin/extractkeys, modified statusbar/sb-music
-rwxr-xr-xar/.local/bin/extractkeys6
-rwxr-xr-xar/.local/bin/statusbar/sb-music2
2 files changed, 4 insertions, 4 deletions
diff --git a/ar/.local/bin/extractkeys b/ar/.local/bin/extractkeys
index 4a8d82d..60c4748 100755
--- a/ar/.local/bin/extractkeys
+++ b/ar/.local/bin/extractkeys
@@ -6,7 +6,7 @@ readme_file="${XDG_DATA_HOME:-${HOME}/.local/share}/thesiah/thesiah.mom"
output_file="$path.mom"
temp_file_before="$path.tmp.before"
temp_file_after="$path.tmp.after"
-start_phrase="When config.h in DWM and ST is saved, key bindings will be extracted and updated below."
+start_phrase="When config.def.h in DWM and ST is saved, key bindings will be extracted and updated below."
end_phrase=".HEADING 2 \"Other buttons\""
[ -f "$path.mom" ] && source_file="$path.mom" || source_file="$path-default.mom"
@@ -28,8 +28,8 @@ echo "$start_phrase" >>"$temp_file_before"
# Define your configuration files
mapfile -t config_files <<EOF
-${XDG_SOURCES_HOME:-${HOME}/.local/src}/suckless/dwm/config.h
-${XDG_SOURCES_HOME:-${HOME}/.local/src}/suckless/st/config.h
+${XDG_SOURCES_HOME:-${HOME}/.local/src}/suckless/dwm/config.def.h
+${XDG_SOURCES_HOME:-${HOME}/.local/src}/suckless/st/config.def.h
EOF
# Process each configuration file and append content
diff --git a/ar/.local/bin/statusbar/sb-music b/ar/.local/bin/statusbar/sb-music
index e47fb06..674202a 100755
--- a/ar/.local/bin/statusbar/sb-music
+++ b/ar/.local/bin/statusbar/sb-music
@@ -36,7 +36,7 @@ filter() {
[ "$(mpc status %random%)" = "on" ] && indicators="${indicators}🔂"
[ "$(mpc status %repeat%)" = "on" ] && indicators="${indicators}🔁"
- sig=$(grep "${0##*/}" "${XDG_SOURCES_HOME:-${HOME}/.local/src}/suckless/dwmblocks/config.h" | awk -F',' '{print $3}')
+ sig=$(grep "${0##*/}" "${XDG_SOURCES_HOME:-${HOME}/.local/src}/suckless/dwmblocks/config.def.h" | awk -F',' '{print $3}')
case $sig in
*0*)
echo "$prefix$artist - $title$([ -n "$indicators" ] && echo "$indicators")"