From 0242d8428d258a886bed6305dc6e37e61ab86046 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Wed, 15 Apr 2020 14:42:36 -0400 Subject: help renamed to avoid conflicts --- .config/i3blocks/config | 2 +- .local/bin/statusbar/help | 16 ---------------- .local/bin/statusbar/help-icon | 16 ++++++++++++++++ 3 files changed, 17 insertions(+), 17 deletions(-) delete mode 100755 .local/bin/statusbar/help create mode 100755 .local/bin/statusbar/help-icon diff --git a/.config/i3blocks/config b/.config/i3blocks/config index 457a9a2..e83de5a 100644 --- a/.config/i3blocks/config +++ b/.config/i3blocks/config @@ -64,5 +64,5 @@ interval=30 [internet] interval=10 -[help] +[help-icon] interval=once diff --git a/.local/bin/statusbar/help b/.local/bin/statusbar/help deleted file mode 100755 index 4d8e3c2..0000000 --- a/.local/bin/statusbar/help +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh - -# The clickable help menu. Middle click to restart wm. - -# If dwm is running, use dwm's readme and restart. -ps ax | grep -q "\sdwm$" && - READMEFILE=/usr/local/share/dwm/larbs.mom - restartwm() { pkill -HUP dwm ;} || - restartwm() { i3 restart ;} - -case $BLOCK_BUTTON in - 1) groff -mom "${READMEFILE:-${XDG_DATA_HOME:-$HOME/.local/share}/larbs/readme.mom}" -Tpdf | zathura - ;; - 2) restartwm ;; - 3) notify-send "❓ Help module" "\- Left click to open LARBS guide. -- Middle click to refresh window manager.";; -esac; echo "❓" diff --git a/.local/bin/statusbar/help-icon b/.local/bin/statusbar/help-icon new file mode 100755 index 0000000..4d8e3c2 --- /dev/null +++ b/.local/bin/statusbar/help-icon @@ -0,0 +1,16 @@ +#!/bin/sh + +# The clickable help menu. Middle click to restart wm. + +# If dwm is running, use dwm's readme and restart. +ps ax | grep -q "\sdwm$" && + READMEFILE=/usr/local/share/dwm/larbs.mom + restartwm() { pkill -HUP dwm ;} || + restartwm() { i3 restart ;} + +case $BLOCK_BUTTON in + 1) groff -mom "${READMEFILE:-${XDG_DATA_HOME:-$HOME/.local/share}/larbs/readme.mom}" -Tpdf | zathura - ;; + 2) restartwm ;; + 3) notify-send "❓ Help module" "\- Left click to open LARBS guide. +- Middle click to refresh window manager.";; +esac; echo "❓" -- cgit v1.3.1