Add pyprland plugin for awesome scratchpads - THANKS TO DDUBS

This commit is contained in:
Tyler Kelley 2025-02-21 19:03:31 -06:00
parent 2a81d9d498
commit 2787a0766c
6 changed files with 50 additions and 20 deletions

View File

@ -1,6 +1,6 @@
{pkgs, ...}: {
programs = {
firefox.enable = false;
firefox.enable = false; # Firefox is not installed by defualt
dconf.enable = true;
seahorse.enable = true;
fuse.userAllowOther = true;
@ -67,7 +67,7 @@
usbutils
v4l-utils
virt-viewer
ytmdl
wget
ytmdl
];
}

View File

@ -1,17 +1,17 @@
{ host,
{
host,
username,
config,
...
}:
let
inherit (import ../../../hosts/${host}/variables.nix)
...
}: let
inherit
(import ../../../hosts/${host}/variables.nix)
browser
terminal
extraMonitorSettings
keyboardLayout
;
in
{
in {
wayland.windowManager.hyprland = {
settings = {
exec-once = [
@ -22,6 +22,7 @@ in
"killall -q swaync;sleep .5 && swaync"
"nm-applet --indicator"
"lxqt-policykit-agent"
"pypr &"
"sleep 1.5 && swww img /home/${username}/Pictures/Wallpapers/zaney-wallpaper.jpg"
];
@ -114,11 +115,12 @@ in
"$modifier,O,exec,obs"
"$modifier,C,exec,hyprpicker -a"
"$modifier,G,exec,gimp"
"$modifier SHIFT,G,exec,godot4"
"$modifier,T,exec,thunar"
"$modifier,M,exec,spotify"
"$modifier,T,exec,pypr toggle term"
"$modifier SHIFT,T,exec,pypr toggle thunar"
"$modifier,M,exec,pavucontrol"
"$modifier,Q,killactive,"
"$modifier,P,pseudo,"
"$modifier,P,exec,pypr toggle volume"
"$modifier SHIFT,P,pseudo,"
"$modifier SHIFT,I,togglesplit,"
"$modifier,F,fullscreen,"
"$modifier SHIFT,F,togglefloating,"

View File

@ -1,9 +1,9 @@
{ ... }:
{
{...}: {
imports = [
./config.nix
./hypridle.nix
./hyprland.nix
./hyprlock.nix
./config.nix
./pyprland.nix
];
}

View File

@ -2,9 +2,7 @@
pkgs,
username,
...
}:
{
}: {
home.packages = with pkgs; [
swww
grim

View File

@ -0,0 +1,30 @@
{pkgs, ...}: {
home.packages = with pkgs; [pyprland];
home.file.".config/hypr/pyprland.toml".text = ''
[pyprland]
plugins = [
"scratchpads",
]
[scratchpads.term]
animation = "fromTop"
command = "kitty --class kitty-dropterm"
class = "kitty-dropterm"
size = "75% 60%"
max_size = "1920px 100%"
[scratchpads.volume]
animation = "fromTop"
command = "pavucontrol"
class = "pavucontrol"
lazy = true
size = "40% 90%"
[scratchpads.thunar]
animation = "fromBottom"
command = "thunar"
class = "thunar"
size = "75% 60%"
'';
}

View File

@ -1,6 +1,6 @@
{pkgs, ...}: {
programs.kitty = {
enable = false;
enable = true;
package = pkgs.kitty;
settings = {
wheel_scroll_min_lines = 1;