Update Hypr and Waybar
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
# Minecraft Launcher
|
||||
windowrulev2 = tile, floating:0, xwayland:1, class:Minecraft Launcher
|
||||
windowrulev2 = pseudo, class:^(Minecraft Launcher)$
|
||||
# Floating
|
||||
windowrulev2 = float, title:Play Timer
|
||||
windowrulev2 = float, class:play-timer
|
||||
|
||||
# Opacity
|
||||
windowrule = opacity 0.85 0.75 ,class:^(kitty)$
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ env = NVD_BACKEND,direct
|
||||
# }
|
||||
|
||||
# permission = /usr/(bin|local/bin)/grim, screencopy, allow
|
||||
# permission = /usr/(lib|libexec|lib64)/xdg-desktop-portal-hyprland, screencopy, allow
|
||||
# permission = /usr/(lib|libexec|lib64)/xdg-deskclass:(?!Minecraft Launcher).*top-portal-hyprland, screencopy, allow
|
||||
# permission = /usr/(bin|local/bin)/hyprpm, plugin, allow
|
||||
|
||||
|
||||
@@ -144,10 +144,6 @@ exec-once = hyprctl setcursor Breeze 24
|
||||
### KEYBINDINGS ###
|
||||
##################
|
||||
|
||||
source = ~/.config/hypr/keybinds.conf
|
||||
source = ~/.config/hypr/applications.conf
|
||||
source = ~/.config/hypr/decoration.conf
|
||||
|
||||
# See https://wiki.hypr.land/Configuring/Keywords/
|
||||
$mainMod = SUPER # Sets "Windows" key as main modifier
|
||||
|
||||
@@ -226,7 +222,15 @@ bindl = , XF86AudioPrev, exec, playerctl previous
|
||||
# windowrule = float,class:^(kitty)$,title:^(kitty)$
|
||||
|
||||
# Ignore maximize requests from apps. You'll probably like this.
|
||||
windowrule = suppressevent maximize, class:.*
|
||||
windowrule = suppressevent maximize, class:(?!Minecraft Launcher).*
|
||||
|
||||
# Fix some dragging issues with XWayland
|
||||
windowrule = nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0
|
||||
|
||||
windowrule = pseudo,class:^$,title:^$,xwayland:1
|
||||
|
||||
source = ~/.config/hypr/keybinds.conf
|
||||
source = ~/.config/hypr/applications.conf
|
||||
source = ~/.config/hypr/decoration.conf
|
||||
|
||||
|
||||
|
||||
@@ -6,14 +6,14 @@
|
||||
"modules-left": [
|
||||
"hyprland/workspaces",
|
||||
"custom/uptime",
|
||||
"cpu"
|
||||
"cpu",
|
||||
"tray"
|
||||
],
|
||||
|
||||
"modules-center": ["clock"],
|
||||
|
||||
"modules-right": [
|
||||
"custom/music",
|
||||
"custom/pomodoro",
|
||||
"bluetooth",
|
||||
"network",
|
||||
"pulseaudio",
|
||||
@@ -204,13 +204,5 @@
|
||||
"format" : ""
|
||||
},
|
||||
|
||||
"custom/pomodoro": {
|
||||
"format": "{}",
|
||||
"return-type": "json",
|
||||
"exec": "waybar-module-pomodoro --no-work-icons",
|
||||
"on-click": "waybar-module-pomodoro toggle",
|
||||
"on-click-right": "waybar-module-pomodoro reset",
|
||||
},
|
||||
|
||||
}
|
||||
|
||||
|
||||
13
.config/waybar/scripts/pomo-menu.sh
Normal file
13
.config/waybar/scripts/pomo-menu.sh
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
choice=$(printf "25 min work\n50 min work\nShort break (5)\nLong break (15)\nStop timer" |
|
||||
wofi --dmenu --prompt "Pomodoro")
|
||||
|
||||
case "$choice" in
|
||||
"25 min work") waybar-module-pomodoro work -w 25 ;;
|
||||
"50 min work") waybar-module-pomodoro work -w 50 ;;
|
||||
"Short break (5)") waybar-module-pomodoro break -s 5 ;;
|
||||
"Long break (15)") waybar-module-pomodoro break -l 15 ;;
|
||||
"Stop timer") waybar-module-pomodoro reset ;;
|
||||
esac
|
||||
|
||||
BIN
.config/waybar/scripts/waybar_timer
Executable file
BIN
.config/waybar/scripts/waybar_timer
Executable file
Binary file not shown.
Reference in New Issue
Block a user