aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hypr/.config/hypr/hyprland.conf51
-rwxr-xr-xhypr/.config/hypr/scripts/pomodoro.sh137
-rwxr-xr-xhypr/.config/hypr/waybar-alt-5/config.ini223
-rwxr-xr-xhypr/.config/hypr/waybar-alt-5/style.css7
-rwxr-xr-xhypr/.config/hypr/waybar/config.ini223
-rwxr-xr-xhypr/.config/hypr/waybar/style.css7
6 files changed, 414 insertions, 234 deletions
diff --git a/hypr/.config/hypr/hyprland.conf b/hypr/.config/hypr/hyprland.conf
index 1c2cdb7..eafebe9 100644
--- a/hypr/.config/hypr/hyprland.conf
+++ b/hypr/.config/hypr/hyprland.conf
@@ -1,14 +1,25 @@
# mirror two screens HDMI-A-1 to left of HDMI-A-2
-# monitor=HDMI-A-1,1920x1080@60,0x0,1,mirror,HDMI-A-2
+# monitor=HDMI-A-1,1920x1080@60,0x0,1,mirror,DV-3
# monitor=,preferred,auto,1,mirror,HDMI-A-1
# Output
# Configure your Display resolution, offset, scale and Monitors here, use `hyprctl monitors` to get the info.
-#monitor=HDMI-A-1,1920x1080@60,0x0,1
-#workspace=HDMI-A-1,1
-#monitor=HDMI-A-2,1920x1080@60,1920x0,1
-#workspace=HDMI-A-2,2
+monitor=DP-3,1920x1080@60,0x0,1
+monitor=HDMI-A-1,1920x1080@60,1920x0,1
+
+workspace=1,monitor:DP-3
+workspace=2,monitor:DP-3
+workspace=3,monitor:DP-3
+workspace=4,monitor:HDMI-A-1
+workspace=5,monitor:HDMI-A-1
+workspace=6,monitor:HDMI-A-1
+workspace=7,monitor:HDMI-A-1
+workspace=8,monitor:HDMI-A-1
+workspace=9,monitor:HDMI-A-1
+
+bind = SUPER SHIFT, bracketright, movewindow, mon:+1
+bind = SUPER SHIFT, bracketleft, movewindow, mon:-1
# Example :
#monitor=eDP-1,1920x1080@60,0x0,1
@@ -21,7 +32,7 @@ $mainMod = SUPER
$localBin = $HOME/.local/bin
$scriptsDir = $HOME/.config/hypr/scripts
$hyprDir = $HOME/.config/hypr
-$term = ghostty
+$term = alacritty
$menu = $scriptsDir/menu
$fullmenu = $scriptsDir/fullmenu
$volume = $scriptsDir/volume
@@ -31,7 +42,7 @@ $lock = $scriptsDir/lockscreen
$colorpicker = $scriptsDir/colorpicker
$wofi_beats = $scriptsDir/wofi-beats
$files = thunar
-$browser = brave --ozone-platform-hint=auto
+$browser = brave
$editor = nvim
# Some default env vars
@@ -47,7 +58,8 @@ exec-once = $scriptsDir/portal
exec-once = [workspace 1 silent] $browser
exec-once = [workspace 2 silent] $term
-exec-once = [workspace 4 silent] ticktick
+exec-once = [workspace 4 silent] obsidian
+exec-once = [workspace 5 silent] ticktick
# with lock - hyprctl
# exec-once = swayidle -w timeout 1200 '$lock' timeout 1200 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on' before-sleep '$lock'
@@ -66,9 +78,6 @@ input {
# qwerty
kb_layout = us,eg
- # azerty
- #kb_layout = be
-
# kb_variant = qwerty
kb_options = grp:alt_shift_toggle, caps:escape
@@ -125,7 +134,7 @@ decoration {
blur {
enabled = true
size = 1
- passes = 2
+ passes = 4
}
shadow {
@@ -139,7 +148,7 @@ decoration {
blurls = waybar
animations {
- enabled = true
+ enabled = false
# Some default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more
@@ -181,7 +190,7 @@ gestures {
# windowrule = float, yad|nm-connection-editor|pavucontrol
# windowrule = float, feh|Gimp|qt5ct
-windowrule = float, nlogout
+# windowrule = float, nlogout
# Example windowrule v2
windowrulev2 = tile, class:^(Spotify)$
@@ -237,7 +246,9 @@ bind = $mainMod, F9, exec, lollypop
bind = $mainMod, F10, exec, spotify
bind = $mainMod, d, exec, rofi -show run
bind = $mainMod, o, exec, rofi -show drun
+bind = $mainMod, i, exec, rofi -show calc
bind = $mainMod, w, exec, rofi -show window
+bind = $mainMod SHIFT, e, exec, rofi -show emoji
# Special Keys
bind = , xf86audioraisevolume, exec, $volume --inc
@@ -315,7 +326,8 @@ bind = , Print, exec, $screenshot --now
bind = $mainMod, Print, exec, $screenshot --in5
bind = SHIFT, Print, exec, $screenshot --in10
bind = CTRL, Print, exec, $screenshot --win
-bind = $mainMod SHIFT, S, exec, flameshot gui
+bind = $mainMod SHIFT, G, exec, flameshot gui
+bind = $mainMod SHIFT, S, exec, flameshot screen --clipboard
# Qwerty
# Switch workspaces with mainMod + [0-9]
@@ -357,11 +369,10 @@ bind = $mainMod SHIFT, 7, movetoworkspacesilent, 7
bind = $mainMod SHIFT, 8, movetoworkspacesilent, 8
bind = $mainMod SHIFT, 9, movetoworkspacesilent, 9
bind = $mainMod SHIFT, 0, movetoworkspacesilent, 10
-bind = $mainMod SHIFT, bracketleft, movetoworkspacesilent, -1
-bind = $mainMod SHIFT, bracketright, movetoworkspacesilent, +1
# Personal scripts
bind = $alt,b,exec, $HOME/.scripts/books.sh
-bind = $mainMod,p,exec, $HOME/.scripts/toggle_waybar.sh
-bind = $mainMod,y,exec, $HOME/.scripts/config_files.sh
-bind = $mainMod,t,exec, $HOME/.scripts/create_tmp.sh
+bind = $mainMod, p,exec, $HOME/.scripts/toggle_waybar.sh
+bind = $mainMod, y,exec, $HOME/.scripts/config_files.sh
+bind = $mainMod, t,exec, $HOME/.scripts/create_tmp.sh
+bind = $mainMod SHIFT, p,exec, $HOME/.config/hypr/scripts/pomodoro.sh menu
diff --git a/hypr/.config/hypr/scripts/pomodoro.sh b/hypr/.config/hypr/scripts/pomodoro.sh
new file mode 100755
index 0000000..109355e
--- /dev/null
+++ b/hypr/.config/hypr/scripts/pomodoro.sh
@@ -0,0 +1,137 @@
+#!/bin/bash
+
+# Pomodoro Timer Script for Waybar
+# Save this as ~/.config/waybar/scripts/pomodoro.sh
+
+TIMER_FILE="/tmp/pomodoro_timer"
+PID_FILE="/tmp/pomodoro_pid"
+
+# Function to start timer
+start_timer() {
+ local duration=$1
+ local end_time=$(($(date +%s) + duration * 60))
+
+ # Save timer info
+ echo "$end_time" >"$TIMER_FILE"
+
+ # Start background timer process
+ (
+ while true; do
+ current_time=$(date +%s)
+ if [ $current_time -ge $end_time ]; then
+ # Timer finished
+ notify-send "🍅 Pomodoro" "Timer finished! Take a break." --urgency=critical
+ rm -f "$TIMER_FILE" "$PID_FILE"
+ break
+ fi
+ sleep 1
+ done
+ ) &
+
+ # Save PID
+ echo $! >"$PID_FILE"
+}
+
+# Function to stop timer
+stop_timer() {
+ if [ -f "$PID_FILE" ]; then
+ kill $(cat "$PID_FILE") 2>/dev/null
+ rm -f "$PID_FILE"
+ fi
+ rm -f "$TIMER_FILE"
+ notify-send "🍅 Pomodoro" "Timer stopped."
+}
+
+# Function to get current status
+get_status() {
+ if [ -f "$TIMER_FILE" ]; then
+ local end_time=$(cat "$TIMER_FILE")
+ local current_time=$(date +%s)
+ local remaining=$((end_time - current_time))
+
+ if [ $remaining -le 0 ]; then
+ rm -f "$TIMER_FILE" "$PID_FILE"
+ echo "🍅 00:00"
+ else
+ local minutes=$((remaining / 60))
+ local seconds=$((remaining % 60))
+ printf "🍅 %02d:%02d" $minutes $seconds
+ fi
+ else
+ echo "🍅 Ready"
+ fi
+}
+
+# Function to show menu and start timer
+show_menu() {
+ # Check if rofi is available, fallback to zenity or basic selection
+ if command -v rofi >/dev/null 2>&1; then
+ choice=$(echo -e "15 minutes\n25 minutes\n35 minutes\n45 minutes\nStop Timer" | rofi -dmenu -p "Pomodoro Timer:")
+ elif command -v zenity >/dev/null 2>&1; then
+ choice=$(zenity --list --title="Pomodoro Timer" --column="Duration" \
+ "15 minutes" "25 minutes" "35 minutes" "45 minutes" "Stop Timer" 2>/dev/null)
+ else
+ # Fallback to terminal menu
+ echo "Select Pomodoro duration:"
+ echo "1) 15 minutes"
+ echo "2) 25 minutes"
+ echo "3) 35 minutes"
+ echo "4) 45 minutes"
+ echo "5) Stop Timer"
+ read -p "Choice (1-5): " num_choice
+ case $num_choice in
+ 1) choice="15 minutes" ;;
+ 2) choice="25 minutes" ;;
+ 3) choice="35 minutes" ;;
+ 4) choice="45 minutes" ;;
+ 5) choice="Stop Timer" ;;
+ *) exit 1 ;;
+ esac
+ fi
+
+ case "$choice" in
+ "15 minutes")
+ stop_timer
+ start_timer 15
+ notify-send "🍅 Pomodoro" "15-minute timer started!"
+ ;;
+ "25 minutes")
+ stop_timer
+ start_timer 25
+ notify-send "🍅 Pomodoro" "25-minute timer started!"
+ ;;
+ "35 minutes")
+ stop_timer
+ start_timer 35
+ notify-send "🍅 Pomodoro" "35-minute timer started!"
+ ;;
+ "45 minutes")
+ stop_timer
+ start_timer 45
+ notify-send "🍅 Pomodoro" "45-minute timer started!"
+ ;;
+ "Stop Timer")
+ stop_timer
+ ;;
+ esac
+}
+
+# Main logic
+case "$1" in
+"status")
+ get_status
+ ;;
+"menu")
+ show_menu
+ ;;
+"stop")
+ stop_timer
+ ;;
+*)
+ echo "Usage: $0 {status|menu|stop}"
+ echo " status - Get current timer status"
+ echo " menu - Show timer selection menu"
+ echo " stop - Stop current timer"
+ exit 1
+ ;;
+esac
diff --git a/hypr/.config/hypr/waybar-alt-5/config.ini b/hypr/.config/hypr/waybar-alt-5/config.ini
index d2ef21f..f3f09bb 100755
--- a/hypr/.config/hypr/waybar-alt-5/config.ini
+++ b/hypr/.config/hypr/waybar-alt-5/config.ini
@@ -1,7 +1,7 @@
{
"layer": "bottom", // Waybar at top layer
"position": "top", // Waybar position (top|bottom|left|right)
- "height": 40,
+ "height": 10,
"width":1920,
"margin": "0 0 0 0",
"spacing":0,
@@ -10,7 +10,7 @@
"modules-left": ["hyprland/workspaces"],
"modules-center": ["custom/spotify"],
- "modules-right": ["custom/weather", "temperature", "custom-keyboard-layout", "cpu", "memory", "pulseaudio", "clock", "tray", "custom/power"],
+ "modules-right": ["custom/weather", "temperature", "custom-keyboard-layout", "custom/pomodoro", "cpu", "memory", "pulseaudio", "battery", "clock", "tray", "custom/power"],
// Modules configuration
// waybar-spotify
@@ -42,8 +42,8 @@
"8": "8",
"9": "9",
"10": "10",
- "urgent": "",
- "default": ""
+ "urgent": "",
+ "default": ""
},
"sort-by-number": true
},
@@ -59,112 +59,121 @@
},
- "idle_inhibitor": {
- "format": "{icon}",
- "format-icons": {
- "activated": "",
- "deactivated": ""
- },
- },
- "tray": {
- "icon-size": 20,
- "spacing": 5
- },
- "clock": {
- "tooltip-format": "<big>{:%A, %d.%B %Y }</big>\n<tt><small>{calendar}</small></tt>",
- "format": " {:%a %d %b %I:%M %p}", //12 hour format
- //"format": " {:%a %d %b %H:%M}", //24 hour format
- "format-alt": " {:%d/%m/%Y %H:%M:%S}",
- "timezones": [ "$TZ" ],
- //"max-length": 200
- "interval": 1,
- },
- "cpu": {
- "format": "🖳{usage}%",
- "on-click": "foot -e htop"
- },
- "memory": {
- "format": "🖴 {: >3}%",
- "on-click": "foot -e htop"
- },
- "temperature": {
- "thermal-zone": 7, // Check with: # cat /sys/class/hwmon/hwmon*/temp1_input
- "hwmon-path": "/sys/class/hwmon/hwmon7/temp1_input",
- "critical-threshold": 80,
- "format-critical": "{temperatureC}°C ",
- "format": "{temperatureC}°C "
- },
- "backlight": {
- // "device": "acpi_video1",
- "format": "{icon} {percent: >3}%",
- "format-icons": ["", ""],
- "on-scroll-down": "brightnessctl -c backlight set 1%-",
- "on-scroll-up": "brightnessctl -c backlight set +1%",
- "on-click": "~/.config/waybar/scripts/backlight-hint.sh"
- },
- "battery": {
- "states": {
- // "good": 95,
- "warning": 30,
- "critical": 15
- },
- "format": "{icon} {capacity: >3}%",
- "format-icons": ["", "", "", "", ""]
- // "format-good": "", // An empty format will hide the module
- // "format-full": "",
- //"format-icons": ["", "", "", "", "", "", "", "", "", ""]
- //"format": "&#x202b;{icon}&#x202c; {capacity}%",
- //"format-icons": ["ﱉ","ﱊ","ﱌ","ﱍ","ﱋ"]
- },
- "network": {
- //"interface": "wlp0s20f3", // (Optional) To force the use of this interface "format-wifi": " {essid}",
- "format": "⚠Disabled",
- "format-wifi": "",
- "format-ethernet": "",
- "format-linked": "{ifname} (No IP)",
- "format-disconnected": "⚠Disabled",
- "format-alt": "{ifname}: {ipaddr}/{cidr}",
- "family": "ipv4",
- "tooltip-format-wifi": " {ifname} @ {essid}\nIP: {ipaddr}\nStrength: {signalStrength}%\nFreq: {frequency}MHz\nUp: {bandwidthUpBits} Down: {bandwidthDownBits}",
- "tooltip-format-ethernet": " {ifname}\nIP: {ipaddr}\n up: {bandwidthUpBits} down: {bandwidthDownBits}",
- //"min-length": 2,
- //"max-length": 2,
- "on-click": "nm-connection-editor"
+ "idle_inhibitor": {
+ "format": "{icon}",
+ "format-icons": {
+ "activated": "",
+ "deactivated": ""
},
- "custom/pacman": {
- "format": " {}",
- "interval": 7200, // every two hours
- "exec": "checkupdates | wc -l", // # of updates
- //"exec": "i=$(checkupdates); echo \"$i\" |wc -l; echo \"$i\" |column -t |tr '\n' '\r'", // # of updates and tooltip details
- "exec-if": "exit 0", // always run; consider advanced run conditions
- "on-click": "kitty --class update -T update -o font_size=13 -e yay -Syu && notify-send 'The system has been updated' ",
- "signal": 8
+ },
+ "tray": {
+ "icon-size": 20,
+ "spacing": 5
+ },
+ "clock": {
+ "tooltip-format": "<big>{:%A, %d.%B %Y }</big>\n<tt><small>{calendar}</small></tt>",
+ "format": "{:%a %d %b %I:%M %p}", //12 hour format
+ //"format": " {:%a %d %b %H:%M}", //24 hour format
+ "format-alt": "{:%d/%m/%Y %H:%M:%S}",
+ "timezones": [ "$TZ" ],
+ //"max-length": 200
+ "interval": 1,
+ },
+ "cpu": {
+ "format": "🖳{usage}%",
+ "on-click": "kitty -e htop"
+ },
+ "memory": {
+ "format": "🖴 {: >3}%",
+ "on-click": "kitty -e htop"
+ },
+ "temperature": {
+ "thermal-zone": 7, // Check with: # cat /sys/class/hwmon/hwmon*/temp1_input
+ "hwmon-path": "/sys/class/hwmon/hwmon7/temp1_input",
+ "critical-threshold": 80,
+ "format-critical": "{temperatureC}°C ",
+ "format": "{temperatureC}°C "
+ },
+ "backlight": {
+ // "device": "acpi_video1",
+ "format": "{icon} {percent: >3}%",
+ "format-icons": ["", ""],
+ "on-scroll-down": "brightnessctl -c backlight set 1%-",
+ "on-scroll-up": "brightnessctl -c backlight set +1%",
+ "on-click": "~/.config/waybar/scripts/backlight-hint.sh"
+ },
+ "battery": {
+ "states": {
+ // "good": 95,
+ "warning": 30,
+ "critical": 15
},
- "custom/power": {
+ "format": "{icon} {capacity: >3}%",
+ "format-icons": ["", "", "", "", ""]
+ // "format-good": "", // An empty format will hide the module
+ // "format-full": "",
+ //"format-icons": ["", "", "", "", "", "", "", "", "", ""]
+ //"format": "&#x202b;{icon}&#x202c; {capacity}%",
+ //"format-icons": ["ﱉ","ﱊ","ﱌ","ﱍ","ﱋ"]
+ },
+ "network": {
+ //"interface": "wlp0s20f3", // (Optional) To force the use of this interface "format-wifi": " {essid}",
+ "format": "⚠Disabled",
+ "format-wifi": "",
+ "format-ethernet": "",
+ "format-linked": "{ifname} (No IP)",
+ "format-disconnected": "⚠Disabled",
+ "format-alt": "{ifname}: {ipaddr}/{cidr}",
+ "family": "ipv4",
+ "tooltip-format-wifi": " {ifname} @ {essid}\nIP: {ipaddr}\nStrength: {signalStrength}%\nFreq: {frequency}MHz\nUp: {bandwidthUpBits} Down: {bandwidthDownBits}",
+ "tooltip-format-ethernet": " {ifname}\nIP: {ipaddr}\n up: {bandwidthUpBits} down: {bandwidthDownBits}",
+ //"min-length": 2,
+ //"max-length": 2,
+ "on-click": "nm-connection-editor"
+ },
+ "custom/pacman": {
+ "format": " {}",
+ "interval": 7200, // every two hours
+ "exec": "checkupdates | wc -l", // # of updates
+ //"exec": "i=$(checkupdates); echo \"$i\" |wc -l; echo \"$i\" |column -t |tr '\n' '\r'", // # of updates and tooltip details
+ "exec-if": "exit 0", // always run; consider advanced run conditions
+ "on-click": "kitty --class update -T update -o font_size=13 -e yay -Syu && notify-send 'The system has been updated' ",
+ "signal": 8
+ },
+ "custom/power": {
"format": "⏻",
"on-click": "archlinux-logout",
"tooltip": false
+ },
+ "custom/pomodoro": {
+ "format": "{}",
+ "exec": "$HOME/.config/hypr/scripts/pomodoro.sh status",
+ "interval": 1,
+ "on-click": "$HOME/.config/hypr/scripts/pomodoro.sh menu",
+ "on-click-right": "$HOME/.config/hypr/scripts/pomodoro.sh stop",
+ "tooltip": true,
+ "tooltip-format": "Left click: Start timer\nRight click: Stop timer"
+ },
+ "pulseaudio": {
+ "scroll-step": 3, // %, can be a float
+ "format": "{volume}%{format_source}",
+ "format-bluetooth": "{volume}% {icon} {format_source}",
+ "format-bluetooth-muted": " {icon} {format_source}",
+ "format-muted": "mute{format_source}",
+ //"format-source": "{volume}% ",
+ //"format-source-muted": "",
+ "format-source": "",
+ "format-source-muted": "",
+ "format-icons": {
+ "headphone": "",
+ "hands-free": "",
+ "headset": "",
+ "phone": "",
+ "portable": "",
+ "car": "",
+ "default": ["", "", ""]
},
- "pulseaudio": {
- "scroll-step": 3, // %, can be a float
- "format": "{volume}% {format_source}",
- "format-bluetooth": "{volume}% {icon} {format_source}",
- "format-bluetooth-muted": " {icon} {format_source}",
- "format-muted": " {format_source}",
- //"format-source": "{volume}% ",
- //"format-source-muted": "",
- "format-source": "",
- "format-source-muted": "",
- "format-icons": {
- "headphone": "",
- "hands-free": "",
- "headset": "",
- "phone": "",
- "portable": "",
- "car": "",
- "default": ["", "", ""]
- },
- "on-click": "pavucontrol",
- "on-click-right": "pactl set-source-mute @DEFAULT_SOURCE@ toggle"
- },
- }
+ "on-click": "pavucontrol",
+ "on-click-right": "pactl set-source-mute @DEFAULT_SOURCE@ toggle"
+ }
+}
diff --git a/hypr/.config/hypr/waybar-alt-5/style.css b/hypr/.config/hypr/waybar-alt-5/style.css
index 2736b13..e1e18ad 100755
--- a/hypr/.config/hypr/waybar-alt-5/style.css
+++ b/hypr/.config/hypr/waybar-alt-5/style.css
@@ -55,6 +55,8 @@ nord15 #b48ead
window#waybar {
background: rgba (0, 0, 0, 1.0);
+ /* This to fix weird rendering bug around the bar on hyprland */
+ background-color: rgba(0, 0, 0, 0.99999);
/*border-radius: 5px 5px 5px 5px;*/
}
@@ -74,6 +76,7 @@ window#waybar {
#custom-spotify,
#clock,
#battery,
+#custom-pomodoro,
#cpu,
#memory,
#idle_inhibitor,
@@ -139,6 +142,10 @@ window#waybar {
color: #a9b665;
}
+#custom-pomodoro {
+ color: #fc5773;
+}
+
#memory {
color: #ea6963;
}
diff --git a/hypr/.config/hypr/waybar/config.ini b/hypr/.config/hypr/waybar/config.ini
index d2ef21f..f3f09bb 100755
--- a/hypr/.config/hypr/waybar/config.ini
+++ b/hypr/.config/hypr/waybar/config.ini
@@ -1,7 +1,7 @@
{
"layer": "bottom", // Waybar at top layer
"position": "top", // Waybar position (top|bottom|left|right)
- "height": 40,
+ "height": 10,
"width":1920,
"margin": "0 0 0 0",
"spacing":0,
@@ -10,7 +10,7 @@
"modules-left": ["hyprland/workspaces"],
"modules-center": ["custom/spotify"],
- "modules-right": ["custom/weather", "temperature", "custom-keyboard-layout", "cpu", "memory", "pulseaudio", "clock", "tray", "custom/power"],
+ "modules-right": ["custom/weather", "temperature", "custom-keyboard-layout", "custom/pomodoro", "cpu", "memory", "pulseaudio", "battery", "clock", "tray", "custom/power"],
// Modules configuration
// waybar-spotify
@@ -42,8 +42,8 @@
"8": "8",
"9": "9",
"10": "10",
- "urgent": "",
- "default": ""
+ "urgent": "",
+ "default": ""
},
"sort-by-number": true
},
@@ -59,112 +59,121 @@
},
- "idle_inhibitor": {
- "format": "{icon}",
- "format-icons": {
- "activated": "",
- "deactivated": ""
- },
- },
- "tray": {
- "icon-size": 20,
- "spacing": 5
- },
- "clock": {
- "tooltip-format": "<big>{:%A, %d.%B %Y }</big>\n<tt><small>{calendar}</small></tt>",
- "format": " {:%a %d %b %I:%M %p}", //12 hour format
- //"format": " {:%a %d %b %H:%M}", //24 hour format
- "format-alt": " {:%d/%m/%Y %H:%M:%S}",
- "timezones": [ "$TZ" ],
- //"max-length": 200
- "interval": 1,
- },
- "cpu": {
- "format": "🖳{usage}%",
- "on-click": "foot -e htop"
- },
- "memory": {
- "format": "🖴 {: >3}%",
- "on-click": "foot -e htop"
- },
- "temperature": {
- "thermal-zone": 7, // Check with: # cat /sys/class/hwmon/hwmon*/temp1_input
- "hwmon-path": "/sys/class/hwmon/hwmon7/temp1_input",
- "critical-threshold": 80,
- "format-critical": "{temperatureC}°C ",
- "format": "{temperatureC}°C "
- },
- "backlight": {
- // "device": "acpi_video1",
- "format": "{icon} {percent: >3}%",
- "format-icons": ["", ""],
- "on-scroll-down": "brightnessctl -c backlight set 1%-",
- "on-scroll-up": "brightnessctl -c backlight set +1%",
- "on-click": "~/.config/waybar/scripts/backlight-hint.sh"
- },
- "battery": {
- "states": {
- // "good": 95,
- "warning": 30,
- "critical": 15
- },
- "format": "{icon} {capacity: >3}%",
- "format-icons": ["", "", "", "", ""]
- // "format-good": "", // An empty format will hide the module
- // "format-full": "",
- //"format-icons": ["", "", "", "", "", "", "", "", "", ""]
- //"format": "&#x202b;{icon}&#x202c; {capacity}%",
- //"format-icons": ["ﱉ","ﱊ","ﱌ","ﱍ","ﱋ"]
- },
- "network": {
- //"interface": "wlp0s20f3", // (Optional) To force the use of this interface "format-wifi": " {essid}",
- "format": "⚠Disabled",
- "format-wifi": "",
- "format-ethernet": "",
- "format-linked": "{ifname} (No IP)",
- "format-disconnected": "⚠Disabled",
- "format-alt": "{ifname}: {ipaddr}/{cidr}",
- "family": "ipv4",
- "tooltip-format-wifi": " {ifname} @ {essid}\nIP: {ipaddr}\nStrength: {signalStrength}%\nFreq: {frequency}MHz\nUp: {bandwidthUpBits} Down: {bandwidthDownBits}",
- "tooltip-format-ethernet": " {ifname}\nIP: {ipaddr}\n up: {bandwidthUpBits} down: {bandwidthDownBits}",
- //"min-length": 2,
- //"max-length": 2,
- "on-click": "nm-connection-editor"
+ "idle_inhibitor": {
+ "format": "{icon}",
+ "format-icons": {
+ "activated": "",
+ "deactivated": ""
},
- "custom/pacman": {
- "format": " {}",
- "interval": 7200, // every two hours
- "exec": "checkupdates | wc -l", // # of updates
- //"exec": "i=$(checkupdates); echo \"$i\" |wc -l; echo \"$i\" |column -t |tr '\n' '\r'", // # of updates and tooltip details
- "exec-if": "exit 0", // always run; consider advanced run conditions
- "on-click": "kitty --class update -T update -o font_size=13 -e yay -Syu && notify-send 'The system has been updated' ",
- "signal": 8
+ },
+ "tray": {
+ "icon-size": 20,
+ "spacing": 5
+ },
+ "clock": {
+ "tooltip-format": "<big>{:%A, %d.%B %Y }</big>\n<tt><small>{calendar}</small></tt>",
+ "format": "{:%a %d %b %I:%M %p}", //12 hour format
+ //"format": " {:%a %d %b %H:%M}", //24 hour format
+ "format-alt": "{:%d/%m/%Y %H:%M:%S}",
+ "timezones": [ "$TZ" ],
+ //"max-length": 200
+ "interval": 1,
+ },
+ "cpu": {
+ "format": "🖳{usage}%",
+ "on-click": "kitty -e htop"
+ },
+ "memory": {
+ "format": "🖴 {: >3}%",
+ "on-click": "kitty -e htop"
+ },
+ "temperature": {
+ "thermal-zone": 7, // Check with: # cat /sys/class/hwmon/hwmon*/temp1_input
+ "hwmon-path": "/sys/class/hwmon/hwmon7/temp1_input",
+ "critical-threshold": 80,
+ "format-critical": "{temperatureC}°C ",
+ "format": "{temperatureC}°C "
+ },
+ "backlight": {
+ // "device": "acpi_video1",
+ "format": "{icon} {percent: >3}%",
+ "format-icons": ["", ""],
+ "on-scroll-down": "brightnessctl -c backlight set 1%-",
+ "on-scroll-up": "brightnessctl -c backlight set +1%",
+ "on-click": "~/.config/waybar/scripts/backlight-hint.sh"
+ },
+ "battery": {
+ "states": {
+ // "good": 95,
+ "warning": 30,
+ "critical": 15
},
- "custom/power": {
+ "format": "{icon} {capacity: >3}%",
+ "format-icons": ["", "", "", "", ""]
+ // "format-good": "", // An empty format will hide the module
+ // "format-full": "",
+ //"format-icons": ["", "", "", "", "", "", "", "", "", ""]
+ //"format": "&#x202b;{icon}&#x202c; {capacity}%",
+ //"format-icons": ["ﱉ","ﱊ","ﱌ","ﱍ","ﱋ"]
+ },
+ "network": {
+ //"interface": "wlp0s20f3", // (Optional) To force the use of this interface "format-wifi": " {essid}",
+ "format": "⚠Disabled",
+ "format-wifi": "",
+ "format-ethernet": "",
+ "format-linked": "{ifname} (No IP)",
+ "format-disconnected": "⚠Disabled",
+ "format-alt": "{ifname}: {ipaddr}/{cidr}",
+ "family": "ipv4",
+ "tooltip-format-wifi": " {ifname} @ {essid}\nIP: {ipaddr}\nStrength: {signalStrength}%\nFreq: {frequency}MHz\nUp: {bandwidthUpBits} Down: {bandwidthDownBits}",
+ "tooltip-format-ethernet": " {ifname}\nIP: {ipaddr}\n up: {bandwidthUpBits} down: {bandwidthDownBits}",
+ //"min-length": 2,
+ //"max-length": 2,
+ "on-click": "nm-connection-editor"
+ },
+ "custom/pacman": {
+ "format": " {}",
+ "interval": 7200, // every two hours
+ "exec": "checkupdates | wc -l", // # of updates
+ //"exec": "i=$(checkupdates); echo \"$i\" |wc -l; echo \"$i\" |column -t |tr '\n' '\r'", // # of updates and tooltip details
+ "exec-if": "exit 0", // always run; consider advanced run conditions
+ "on-click": "kitty --class update -T update -o font_size=13 -e yay -Syu && notify-send 'The system has been updated' ",
+ "signal": 8
+ },
+ "custom/power": {
"format": "⏻",
"on-click": "archlinux-logout",
"tooltip": false
+ },
+ "custom/pomodoro": {
+ "format": "{}",
+ "exec": "$HOME/.config/hypr/scripts/pomodoro.sh status",
+ "interval": 1,
+ "on-click": "$HOME/.config/hypr/scripts/pomodoro.sh menu",
+ "on-click-right": "$HOME/.config/hypr/scripts/pomodoro.sh stop",
+ "tooltip": true,
+ "tooltip-format": "Left click: Start timer\nRight click: Stop timer"
+ },
+ "pulseaudio": {
+ "scroll-step": 3, // %, can be a float
+ "format": "{volume}%{format_source}",
+ "format-bluetooth": "{volume}% {icon} {format_source}",
+ "format-bluetooth-muted": " {icon} {format_source}",
+ "format-muted": "mute{format_source}",
+ //"format-source": "{volume}% ",
+ //"format-source-muted": "",
+ "format-source": "",
+ "format-source-muted": "",
+ "format-icons": {
+ "headphone": "",
+ "hands-free": "",
+ "headset": "",
+ "phone": "",
+ "portable": "",
+ "car": "",
+ "default": ["", "", ""]
},
- "pulseaudio": {
- "scroll-step": 3, // %, can be a float
- "format": "{volume}% {format_source}",
- "format-bluetooth": "{volume}% {icon} {format_source}",
- "format-bluetooth-muted": " {icon} {format_source}",
- "format-muted": " {format_source}",
- //"format-source": "{volume}% ",
- //"format-source-muted": "",
- "format-source": "",
- "format-source-muted": "",
- "format-icons": {
- "headphone": "",
- "hands-free": "",
- "headset": "",
- "phone": "",
- "portable": "",
- "car": "",
- "default": ["", "", ""]
- },
- "on-click": "pavucontrol",
- "on-click-right": "pactl set-source-mute @DEFAULT_SOURCE@ toggle"
- },
- }
+ "on-click": "pavucontrol",
+ "on-click-right": "pactl set-source-mute @DEFAULT_SOURCE@ toggle"
+ }
+}
diff --git a/hypr/.config/hypr/waybar/style.css b/hypr/.config/hypr/waybar/style.css
index 2736b13..e1e18ad 100755
--- a/hypr/.config/hypr/waybar/style.css
+++ b/hypr/.config/hypr/waybar/style.css
@@ -55,6 +55,8 @@ nord15 #b48ead
window#waybar {
background: rgba (0, 0, 0, 1.0);
+ /* This to fix weird rendering bug around the bar on hyprland */
+ background-color: rgba(0, 0, 0, 0.99999);
/*border-radius: 5px 5px 5px 5px;*/
}
@@ -74,6 +76,7 @@ window#waybar {
#custom-spotify,
#clock,
#battery,
+#custom-pomodoro,
#cpu,
#memory,
#idle_inhibitor,
@@ -139,6 +142,10 @@ window#waybar {
color: #a9b665;
}
+#custom-pomodoro {
+ color: #fc5773;
+}
+
#memory {
color: #ea6963;
}