This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| DAT=$(dirname "${BASH_SOURCE[0]}")/otp.dat | |
| MENU="dmenu" | |
| NOTIFY=notify-send | |
| TOPIC="oathtool" | |
| KEYDESC="OTP" | |
| if [ ! -f "$DAT" ]; then | |
| touch "$DAT" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #if 0 | |
| gcc -o list_keycodes list_keycodes.c -lX11 | |
| exit | |
| #endif | |
| #include <X11/Xlib.h> | |
| #include <X11/XKBlib.h> | |
| #include <stdio.h> | |
| int |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| COLOR=^c#FF0000^ | |
| BATTERY_ICON=๐ฑ | |
| FILE=$(ls /sys/class/power_supply/hidpp_battery_*/capacity_level 2>/dev/null | head -n 1) | |
| if [ ! -z "$FILE" ]; then | |
| CAPACITY=$(cat $FILE) | |
| if [ $CAPACITY = "Low" ]; then | |
| echo "${COLOR}${BATTERY_ICON} ${CAPACITY}^d^" | |
| fi | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # Sets the class of a window, depends on dmenu and xdotool | |
| LABEL=$(echo | dmenu) | |
| if [ ! -z "$LABEL" ]; then | |
| xdotool getactivewindow set_window --class "$LABEL" | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| COLOR_SYMBOL=^c#FFB14A^ | |
| # COLOR_HL=^c#FFF7D4^ | |
| # COLOR_NORM=^c#C6BDBD^ | |
| COLOR_HL= | |
| COLOR_NORM= | |
| symb='๎๎๎๎๎๎๎๎๎๎๎๎ ๎ก๎ข๎ฃ๎ฃ' | |
| mem=($(free | awk '/Mem/ {printf "%d %d", $3 / 1024.0, $2 / 1024.0 }')) | |
| NOM=${mem[0]} | |
| DEN=${mem[1]} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| #COLOR=^c#FFF7D4^ | |
| COLOR= | |
| if [[ $(pacmd list-sinks | grep -c "muted: yes") > 0 ]]; then | |
| echo "๐" | |
| exit | |
| fi | |
| VOLUME=$(pacmd list-sinks | awk ' | |
| BEGIN { | |
| FOUND=0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| #COLOR=^c#FFF7D4^ | |
| TIME="$(date '+%B %dXX' | sed -r -e 's/(1[123])XX/\1th/;s/1XX/1st/;s/2XX/2nd/;s/3XX/3rd/;s/XX/th/;s/ 0/ /'), $(date +'%H:%M:%S')" | |
| echo "${COLOR}${TIME}^d^" |
NewerOlder