mirror of
https://gitlab.com/Zaney/zaneyos.git
synced 2025-03-10 02:58:17 +01:00
Add pyprland plugin for awesome scratchpads - THANKS TO DDUBS
This commit is contained in:
parent
2a81d9d498
commit
2787a0766c
@ -1,6 +1,6 @@
|
|||||||
{pkgs, ...}: {
|
{pkgs, ...}: {
|
||||||
programs = {
|
programs = {
|
||||||
firefox.enable = false;
|
firefox.enable = false; # Firefox is not installed by defualt
|
||||||
dconf.enable = true;
|
dconf.enable = true;
|
||||||
seahorse.enable = true;
|
seahorse.enable = true;
|
||||||
fuse.userAllowOther = true;
|
fuse.userAllowOther = true;
|
||||||
@ -67,7 +67,7 @@
|
|||||||
usbutils
|
usbutils
|
||||||
v4l-utils
|
v4l-utils
|
||||||
virt-viewer
|
virt-viewer
|
||||||
ytmdl
|
|
||||||
wget
|
wget
|
||||||
|
ytmdl
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -1,17 +1,17 @@
|
|||||||
{ host,
|
{
|
||||||
|
host,
|
||||||
username,
|
username,
|
||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}:
|
}: let
|
||||||
let
|
inherit
|
||||||
inherit (import ../../../hosts/${host}/variables.nix)
|
(import ../../../hosts/${host}/variables.nix)
|
||||||
browser
|
browser
|
||||||
terminal
|
terminal
|
||||||
extraMonitorSettings
|
extraMonitorSettings
|
||||||
keyboardLayout
|
keyboardLayout
|
||||||
;
|
;
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
wayland.windowManager.hyprland = {
|
wayland.windowManager.hyprland = {
|
||||||
settings = {
|
settings = {
|
||||||
exec-once = [
|
exec-once = [
|
||||||
@ -22,6 +22,7 @@ in
|
|||||||
"killall -q swaync;sleep .5 && swaync"
|
"killall -q swaync;sleep .5 && swaync"
|
||||||
"nm-applet --indicator"
|
"nm-applet --indicator"
|
||||||
"lxqt-policykit-agent"
|
"lxqt-policykit-agent"
|
||||||
|
"pypr &"
|
||||||
"sleep 1.5 && swww img /home/${username}/Pictures/Wallpapers/zaney-wallpaper.jpg"
|
"sleep 1.5 && swww img /home/${username}/Pictures/Wallpapers/zaney-wallpaper.jpg"
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -114,11 +115,12 @@ in
|
|||||||
"$modifier,O,exec,obs"
|
"$modifier,O,exec,obs"
|
||||||
"$modifier,C,exec,hyprpicker -a"
|
"$modifier,C,exec,hyprpicker -a"
|
||||||
"$modifier,G,exec,gimp"
|
"$modifier,G,exec,gimp"
|
||||||
"$modifier SHIFT,G,exec,godot4"
|
"$modifier,T,exec,pypr toggle term"
|
||||||
"$modifier,T,exec,thunar"
|
"$modifier SHIFT,T,exec,pypr toggle thunar"
|
||||||
"$modifier,M,exec,spotify"
|
"$modifier,M,exec,pavucontrol"
|
||||||
"$modifier,Q,killactive,"
|
"$modifier,Q,killactive,"
|
||||||
"$modifier,P,pseudo,"
|
"$modifier,P,exec,pypr toggle volume"
|
||||||
|
"$modifier SHIFT,P,pseudo,"
|
||||||
"$modifier SHIFT,I,togglesplit,"
|
"$modifier SHIFT,I,togglesplit,"
|
||||||
"$modifier,F,fullscreen,"
|
"$modifier,F,fullscreen,"
|
||||||
"$modifier SHIFT,F,togglefloating,"
|
"$modifier SHIFT,F,togglefloating,"
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
{ ... }:
|
{...}: {
|
||||||
{
|
|
||||||
imports = [
|
imports = [
|
||||||
|
./config.nix
|
||||||
./hypridle.nix
|
./hypridle.nix
|
||||||
./hyprland.nix
|
./hyprland.nix
|
||||||
./hyprlock.nix
|
./hyprlock.nix
|
||||||
./config.nix
|
./pyprland.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -2,9 +2,7 @@
|
|||||||
pkgs,
|
pkgs,
|
||||||
username,
|
username,
|
||||||
...
|
...
|
||||||
}:
|
}: {
|
||||||
|
|
||||||
{
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
swww
|
swww
|
||||||
grim
|
grim
|
||||||
|
30
modules/home/hyprland/pyprland.nix
Normal file
30
modules/home/hyprland/pyprland.nix
Normal 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%"
|
||||||
|
'';
|
||||||
|
}
|
@ -1,6 +1,6 @@
|
|||||||
{pkgs, ...}: {
|
{pkgs, ...}: {
|
||||||
programs.kitty = {
|
programs.kitty = {
|
||||||
enable = false;
|
enable = true;
|
||||||
package = pkgs.kitty;
|
package = pkgs.kitty;
|
||||||
settings = {
|
settings = {
|
||||||
wheel_scroll_min_lines = 1;
|
wheel_scroll_min_lines = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user