Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat adding Pyrland #1197

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions Configs/.config/hypr/hyprland.conf
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ exec-once = wl-paste --type text --watch cliphist store # clipboard store text d
exec-once = wl-paste --type image --watch cliphist store # clipboard store image data
exec-once = $scrPath/swwwallpaper.sh # start wallpaper daemon
exec-once = $scrPath/batterynotify.sh # battery notification
exec-once = pypr # pyrland extending hyprland's features



Expand Down
7 changes: 7 additions & 0 deletions Configs/.config/hypr/keybindings.conf
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,13 @@ bind = $mainMod ALT, 8, movetoworkspacesilent, 8
bind = $mainMod ALT, 9, movetoworkspacesilent, 9
bind = $mainMod ALT, 0, movetoworkspacesilent, 10

# Scratchpads
bind = $mainMod, B, exec, pypr toggle btop && hyprctl dispatch bringactivetotop # scratchpads - Toggle btop
bind = $mainMod SHIFT, V, exec, pypr toggle volume # scratchpads - Toggle volume
bind = $mainMod SHIFT, I, exec, pypr toggle gpt && hyprctl dispatch bringactivetotop # scratchpads - Toggle gpt
bind = $mainMod SHIFT, B, exec, pypr toggle bluetooth && hyprctl dispatch bringactivetotop # scratchpads - Toggle bluetooth
bind = $mainMod SHIFT, E, exec, pypr toggle yazi && hyprctl dispatch bringactivetotop # scratchpads - Toggle yazi

# Trigger when the switch is turning off, Might cause bugs. Recommend to use logind instead.
#bindl= , switch:on:Lid Switch, exec, swaylock && systemctl suspend

50 changes: 50 additions & 0 deletions Configs/.config/hypr/pyprland.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
[pyprland]
plugins = ["scratchpads", "expose", "magnify"]

[scratchpads.volume]
command = "pavucontrol"
unfocus = "hide"
position = "1% 8%"
lazy = true

[scratchpads.pavucontrol3]
command = "pavucontrol -t 3"
unfocus = "hide"
position = "1% 8%"
lazy = true


[scratchpads.pavucontrol4]
command = "pavucontrol -t 4"
unfocus = "hide"
position = "1% 8%"
lazy = true

[scratchpads.terminal]
command = "kitty --class scratchpad"
excludes = ["dots"]
lazy = true

[scratchpads.yazi]
command = "kitty --class scratchpad yazi"
lazy = true

[scratchpads.gpt]
command = "kitty --class scratchpad tgpt -m"
lazy = true

[scratchpads.dots]
command = "kitty --class scratchpad yadm enter lazygit"
excludes = ["terminal"]
lazy = true

[scratchpads.btop]
command = "kitty --class scratchpad btop"
lazy = true

[scratchpads.bluetooth]
command = "blueman-manager"
animation = "fromRight"
unfocus = "hide"
margin = 20
lazy = true
14 changes: 14 additions & 0 deletions Configs/.config/hypr/windowrules.conf
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,17 @@ layerrule = blur,swaync-control-center
layerrule = ignorezero,swaync-control-center
layerrule = blur,logout_dialog

q
# Scratchpads

$scratchpad = class:^(scratchpad)$
windowrulev2 = float, $scratchpad
windowrulev2 = center 1, $scratchpad
windowrulev2 = size 70% 70%, $scratchpad
windowrulev2 = workspace special:scratchpad silent, $scratchpad

$sideScratchpad = class:^(.*pavucontrol.*)$|(.*blueman-manager.*)$
windowrulev2 = workspace special:scratchpad silent, $sideScratchpad
windowrulev2 = size 30% 90%, $sideScratchpad
windowrulev2 = float, $sideScratchpad
windowrulev2 = center 1, $sideScratchpad
4 changes: 2 additions & 2 deletions Configs/.config/waybar/modules/pulseaudio.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"format": "{icon} {volume}",
"rotate": ${r_deg},
"format-muted": "婢",
"on-click": "pavucontrol -t 3",
"on-click": "pypr toggle pavucontrol3", // pavucontrol -t 3
"on-click-middle": "${ScrDir}/volumecontrol.sh -o m",
"on-scroll-up": "${ScrDir}/volumecontrol.sh -o i",
"on-scroll-down": "${ScrDir}/volumecontrol.sh -o d",
Expand All @@ -24,7 +24,7 @@
"rotate": ${r_deg},
"format-source": "",
"format-source-muted": "",
"on-click": "pavucontrol -t 4",
"on-click": "pypr toggle pavucontrol4", // pavucontrol -t 4
"on-click-middle": "${ScrDir}/volumecontrol.sh -i m",
"on-scroll-up": "${ScrDir}/volumecontrol.sh -i i",
"on-scroll-down": "${ScrDir}/volumecontrol.sh -i d",
Expand Down
1 change: 1 addition & 0 deletions Scripts/custom_hypr.lst
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ qt5-graphicaleffects # for sddm theme effects

# --------------------------------------------------- // Window Manager
hyprland # wlroots-based wayland compositor
pyprland # scratchpads
dunst # notification daemon
rofi-lbonn-wayland-git # application launcher
waybar # system bar
Expand Down