aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaKooLit <jimmielovejay@gmail.com>2024-05-28 03:38:21 +0900
committerJaKooLit <jimmielovejay@gmail.com>2024-05-28 03:38:21 +0900
commitf593df6b480bb082f4131486822b755c334fedc7 (patch)
tree98e3b3adfc51a90da1a459f0921d923a56b24697
parent467250d12a88c99a5ea8db3e3f9d86efb47b5b5c (diff)
updated copy.sh for 12H fix on waybar module
-rw-r--r--config/hypr/hyprlock.conf4
-rw-r--r--config/waybar/modules4
-rwxr-xr-xcopy.sh8
3 files changed, 8 insertions, 8 deletions
diff --git a/config/hypr/hyprlock.conf b/config/hypr/hyprlock.conf
index 7c1af41a..c763bc90 100644
--- a/config/hypr/hyprlock.conf
+++ b/config/hypr/hyprlock.conf
@@ -73,8 +73,8 @@ label {
# Time
label {
monitor =
-# text = cmd[update:1000] echo "<b><big> $(date +"%I:%M:%S %p") </big></b>" # AM/PM
-text = cmd[update:1000] echo "<b><big> $(date +"%H:%M:%S") </big></b>" # 24H
+ #text = cmd[update:1000] echo "<b><big> $(date +"%I:%M:%S %p") </big></b>" # AM/PM
+ text = cmd[update:1000] echo "<b><big> $(date +"%H:%M:%S") </big></b>" # 24H
color = $color15
font_size = 94
font_family = JetBrains Mono Nerd Font 10
diff --git a/config/waybar/modules b/config/waybar/modules
index 071efb34..9e7e646a 100644
--- a/config/waybar/modules
+++ b/config/waybar/modules
@@ -281,8 +281,8 @@
},
"clock": {
"interval": 1,
- //"format": " {:%I:%M %p}", // AM PM format
- "format": " {:%H:%M:%S}",
+ //"format": " {:%I:%M %p}", // AM PM format
+ "format": " {:%H:%M:%S}",
"format-alt": " {:%H:%M  %Y, %d %B, %A}",
"tooltip-format": "<tt><small>{calendar}</small></tt>",
"calendar": {
diff --git a/copy.sh b/copy.sh
index 8bd0b334..b05b996c 100755
--- a/copy.sh
+++ b/copy.sh
@@ -126,12 +126,12 @@ while true; do
# Check if the answer is valid
if [[ "$answer" == "y" ]]; then
# Modify waybar config if 12hr is selected
- sed -i 's/^ \/\/"format": " {:%I:%M %p}"/ "format": " {:%I:%M %p}"/' ./config/waybar/modules 2>&1 | tee -a "$LOG" || true
- sed -i 's/^ "format": " {:%H:%M:%S}"/ \/\/"format": " {:%H:%M:%S}"/' ./config/waybar/modules 2>&1 | tee -a "$LOG" || true
+ sed -i 's/^ \/\/"format": " {:%I:%M %p}"/ "format": " {:%I:%M %p}"/' config/waybar/modules 2>&1 | tee -a "$LOG"
+ sed -i 's/^ "format": " {:%H:%M:%S}"/ \/\/"format": " {:%H:%M:%S}"/' config/waybar/modules 2>&1 | tee -a "$LOG"
# for hyprlock
- sed -i 's|^# text = cmd\[update:1000\] echo "<b><big> $(date +"%I:%M:%S %p") </big></b>" # AM/PM|text = cmd\[update:1000\] echo "<b><big> $(date +"%I:%M:%S %p") </big></b>" # AM/PM|' ./config/hypr/hyprlock.conf
- sed -i 's|^text = cmd\[update:1000\] echo "<b><big> $(date +"%H:%M:%S") </big></b>" # 24H|# text = cmd\[update:1000\] echo "<b><big> $(date +"%H:%M:%S") </big></b>" # 24H|' ./config/hypr/hyprlock.conf
+ sed -i 's|^ #text = cmd\[update:1000\] echo "<b><big> $(date +"%I:%M:%S %p") </big></b>" # AM/PM| text = cmd\[update:1000\] echo "<b><big> $(date +"%I:%M:%S %p") </big></b>" # AM/PM|' config/hypr/hyprlock.conf 2>&1 | tee -a "$LOG"
+ sed -i 's|^ text = cmd\[update:1000\] echo "<b><big> $(date +"%H:%M:%S") </big></b>" # 24H| #text = cmd\[update:1000\] echo "<b><big> $(date +"%H:%M:%S") </big></b>" # 24H|' config/hypr/hyprlock.conf 2>&1 | tee -a "$LOG"
# for SDDM (simple-sddm)
sddm_folder="/usr/share/sddm/themes/simple-sddm"
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage