summaryrefslogtreecommitdiff
path: root/dotfiles
diff options
context:
space:
mode:
Diffstat (limited to 'dotfiles')
-rw-r--r--dotfiles/hyprland/.config/hypr/hyprland.conf1
-rwxr-xr-xdotfiles/hyprland/.local/bin/waybar-date6
-rwxr-xr-xdotfiles/hyprland/.local/bin/waybar-worldclock2
3 files changed, 5 insertions, 4 deletions
diff --git a/dotfiles/hyprland/.config/hypr/hyprland.conf b/dotfiles/hyprland/.config/hypr/hyprland.conf
index 54139af..8572dcf 100644
--- a/dotfiles/hyprland/.config/hypr/hyprland.conf
+++ b/dotfiles/hyprland/.config/hypr/hyprland.conf
@@ -108,6 +108,7 @@ cursor {
input {
kb_layout = us
kb_options = ctrl:nocaps
+ numlock_by_default = true
follow_mouse = 0
float_switch_override_focus = 0
mouse_refocus = false
diff --git a/dotfiles/hyprland/.local/bin/waybar-date b/dotfiles/hyprland/.local/bin/waybar-date
index 72a0000..260b239 100755
--- a/dotfiles/hyprland/.local/bin/waybar-date
+++ b/dotfiles/hyprland/.local/bin/waybar-date
@@ -7,9 +7,9 @@ MONTH=$(date '+%B %Y')
# Generate current month (with today highlighted) stacked above next month
NEXT_M=$(date -d 'next month' '+%-m')
NEXT_Y=$(date -d 'next month' '+%Y')
-CUR=$(cal | sed "s/\b${TODAY}\b/<span color='#daa520'><b><u>${TODAY}<\/u><\/b><\/span>/")
-NEXT=$(cal "$NEXT_M" "$NEXT_Y")
-HIGHLIGHTED=$(printf '%s\n%s' "$CUR" "$NEXT")
+CUR=$(cal | sed "s/\b${TODAY}\b/<span color='#daa520'><b><u>${TODAY}<\/u><\/b><\/span>/" | sed '/^[[:space:]]*$/d')
+NEXT=$(cal "$NEXT_M" "$NEXT_Y" | sed '/^[[:space:]]*$/d')
+HIGHLIGHTED=$(printf '%s\n\n%s' "$CUR" "$NEXT")
TOOLTIP="<tt>${HIGHLIGHTED}</tt>"
diff --git a/dotfiles/hyprland/.local/bin/waybar-worldclock b/dotfiles/hyprland/.local/bin/waybar-worldclock
index 9801dad..be483ed 100755
--- a/dotfiles/hyprland/.local/bin/waybar-worldclock
+++ b/dotfiles/hyprland/.local/bin/waybar-worldclock
@@ -12,7 +12,7 @@ if [ -f "$CONF" ]; then
while IFS='|' read -r tz label; do
# Skip comments and blank lines
case "$tz" in \#*|"") continue ;; esac
- TIME=$(TZ="$tz" date '+%I:%M %p %Z')
+ TIME=$(TZ="$tz" date '+%a %I:%M %p %Z')
LINE=$(printf "%-16s %s" "$label" "$TIME")
# Highlight local timezone in gold
if [ "$tz" = "$LOCAL_TZ" ]; then