aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-x.config/herbstluftwm/mpc-status.sh6
-rwxr-xr-x.config/herbstluftwm/pvol.sh2
-rwxr-xr-x.config/init/funcs/srcopen4
-rw-r--r--.config/init/gen/cava.sh14
-rw-r--r--.config/init/gen/dunstrc.sh2
-rw-r--r--.config/qmk_firmware/keyboards/keebio/nyquist/keymaps/ageha/keymap.c24
6 files changed, 46 insertions, 6 deletions
diff --git a/.config/herbstluftwm/mpc-status.sh b/.config/herbstluftwm/mpc-status.sh
index f1c8130..221b0a9 100755
--- a/.config/herbstluftwm/mpc-status.sh
+++ b/.config/herbstluftwm/mpc-status.sh
@@ -15,12 +15,12 @@ esac
mpc status >/dev/null 2>&1
if [[ $? -ne 0 ]]; then
- dunstify -r 109112100 "mpd disconnected"
+ dunstify -h string:x-dunst-stack-tag:mpd "mpd disconnected"
exit
fi
if [[ -z $(mpc status | grep -E '\[(playing|paused)\]') ]]; then
- dunstify -r 109112100 "mpd stopped"
+ dunstify -h string:x-dunst-stack-tag:mpd "mpd stopped"
exit
fi
@@ -30,4 +30,4 @@ message="$(mpc current -f '##%track% %title% (%date%)\n%artist% - %album%')
$(mpc status | tail -n -2 | sed -re 's/volume.*repeat/\nrepeat/' -e 's/( ){3,4}/\n/g' -e '/volume: /d')"
-dunstify -t 4000 -r 109112100 --icon="$HOME/music/$dir/cover-small.png" $message
+dunstify -t 4000 -h string:x-dunst-stack-tag:mpd --icon="$HOME/music/$dir/cover-small.png" $message
diff --git a/.config/herbstluftwm/pvol.sh b/.config/herbstluftwm/pvol.sh
index 8d5984e..4d08ff1 100755
--- a/.config/herbstluftwm/pvol.sh
+++ b/.config/herbstluftwm/pvol.sh
@@ -18,4 +18,4 @@ esac
pactl get-sink-volume @DEFAULT_SINK@ | sed -e N -e 's/\n//g' -e 's/.* \([0-9]\{1,2\}%\).*/\1/'
} | read body
-dunstify -r 118111108 $body
+dunstify -h string:x-dunst-stack-tag:pvol $body
diff --git a/.config/init/funcs/srcopen b/.config/init/funcs/srcopen
index f4bd773..46fec5f 100755
--- a/.config/init/funcs/srcopen
+++ b/.config/init/funcs/srcopen
@@ -21,9 +21,11 @@ search_map=(
"elixir" "\.(ex|exs)"
"go" "\.go"
"html" "\.(html|xhtml)"
+ "lua" "\.lua"
"markdown" "\.md"
"ocaml" "\.(ml|mli)"
- "js" "\.js"
+ "js" "\.(js|jsx)"
+ "shell" "\.sh"
"tex" "\.tex"
"vim" "\.vim"
)
diff --git a/.config/init/gen/cava.sh b/.config/init/gen/cava.sh
new file mode 100644
index 0000000..42efe1b
--- /dev/null
+++ b/.config/init/gen/cava.sh
@@ -0,0 +1,14 @@
+echo "\
+[input]
+method = pulse
+source = auto
+
+[color]
+gradient = 1
+gradient_color_1 = '$std_blue'
+gradient_color_2 = '$std_cyan'
+gradient_color_3 = '$std_green'
+gradient_color_4 = '$std_yellow'
+gradient_color_5 = '$std_red'
+gradient_color_6 = '$std_magenta'
+" > $tmpdir/cava
diff --git a/.config/init/gen/dunstrc.sh b/.config/init/gen/dunstrc.sh
index 99a7993..d436954 100644
--- a/.config/init/gen/dunstrc.sh
+++ b/.config/init/gen/dunstrc.sh
@@ -5,7 +5,7 @@ echo "\
width = (0, 1000)
# height = 300
origin = top-right
- offset = 4x$(($bheight + 4))
+ offset = (4, $(($bheight + 4)))
scale = 0
notification_limit = 0
progress_bar = true
diff --git a/.config/qmk_firmware/keyboards/keebio/nyquist/keymaps/ageha/keymap.c b/.config/qmk_firmware/keyboards/keebio/nyquist/keymaps/ageha/keymap.c
index 48ef150..8b1f82c 100644
--- a/.config/qmk_firmware/keyboards/keebio/nyquist/keymaps/ageha/keymap.c
+++ b/.config/qmk_firmware/keyboards/keebio/nyquist/keymaps/ageha/keymap.c
@@ -4,6 +4,7 @@
#define _QWERTY 1
#define _FN 2
#define _MOUSE 3
+#define _NUMPAD 4
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
@@ -91,17 +92,40 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
),
+/* NUMPAD
+ * ,------------------------------------------ ------------------------------------------.
+ * | | | / | * | Bksp | | | | | | | | |
+ * |------+------+------+------+------+------+ +------+------+------+------+------+------|
+ * | | 7 | 8 | 9 | + | | | | | | | | |
+ * |------+------+------+------+------+------+ +------+------+------+------+------+------|
+ * | | 4 | 5 | 6 | - | | | | | | | | |
+ * |------+------+------+------+------+------+ +------+------+------+------+------+------|
+ * | | 1 | 2 | 3 |Enter | | | | | | | | |
+ * |------+------+------+------+------+------+ +------+------+------+------+------+------|
+ * | | 0 | | . | | | | | | | |
+ * `------------------------------------------ ------------------------------------------'
+ */
+[_NUMPAD] = LAYOUT(
+ _______, _______, KC_PSLS, KC_PAST, KC_BSPC, _______, _______, _______, _______, _______, _______, _______,
+ _______, KC_P7, KC_P8, KC_P9, KC_PPLS, _______, _______, _______, _______, _______, _______, _______,
+ _______, KC_P4, KC_P5, KC_P6, KC_PMNS, _______, _______, _______, _______, _______, _______, _______,
+ _______, KC_P1, KC_P2, KC_P3, KC_PENT, _______, _______, _______, _______, _______, _______, _______,
+ _______, KC_P0, _______, KC_PDOT, _______, _______, _______, _______, _______, _______, _______, _______
+),
+
};
const uint16_t PROGMEM combo_qwerty[] = { KC_LCTL, KC_RCTL, COMBO_END };
const uint16_t PROGMEM combo_fn[] = { KC_LALT, KC_RALT, COMBO_END };
const uint16_t PROGMEM combo_mouse[] = { KC_LSFT, KC_RSFT, COMBO_END };
+const uint16_t PROGMEM combo_numpad[] = { KC_TAB, KC_BSPC, COMBO_END };
combo_t key_combos[] = {
COMBO(combo_qwerty, TG(_QWERTY)),
COMBO(combo_fn, TG(_FN)),
COMBO(combo_mouse, TG(_MOUSE)),
+ COMBO(combo_numpad, TG(_NUMPAD)),
};
uint16_t COMBO_LEN = sizeof(key_combos) / sizeof(combo_t);