updating and adding a hyprland module
This commit is contained in:
parent
6cb1b9875c
commit
8adb361b82
106
flake.lock
106
flake.lock
|
@ -30,11 +30,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1672769487,
|
"lastModified": 1673168783,
|
||||||
"narHash": "sha256-WD7RIDdFq5eO8JOb7L60fj/km/9Oee1+sqls/rJgawo=",
|
"narHash": "sha256-LuZw82DsEiPtcsBI0JMyTaHLPbi/CNVAcIMNKH8VQXs=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "emacs-overlay",
|
"repo": "emacs-overlay",
|
||||||
"rev": "1a5a0d8953242f28f66662285c7f7dab3d21d2ea",
|
"rev": "77633dd37d94ade8e927b519722ed5481e4c9425",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -52,11 +52,11 @@
|
||||||
"rust-overlay": "rust-overlay"
|
"rust-overlay": "rust-overlay"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1670426053,
|
"lastModified": 1672946489,
|
||||||
"narHash": "sha256-OrFeZuwiiw+pIwhB+VaYzgUJu3CDaXkv0eYIXVDUnPs=",
|
"narHash": "sha256-IliWerC9qk4MxYNRoe/8uuQZkqjPJPsph46fmVBvo9U=",
|
||||||
"owner": "elkowar",
|
"owner": "elkowar",
|
||||||
"repo": "eww",
|
"repo": "eww",
|
||||||
"rev": "678e4dbc6b6439bf50898ae2b13fcc65900c439c",
|
"rev": "6a64a286291456984011c4fb160def106ee55dff",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -77,11 +77,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1667229260,
|
"lastModified": 1671802034,
|
||||||
"narHash": "sha256-+J7woVK3pnMwHvJSrB0kYKWqEB4yYDqBcFFg8IhIFhw=",
|
"narHash": "sha256-mkv2u5nQJEV3KlWiopkt/gMz0OM4nmEXSfzkSw6welQ=",
|
||||||
"owner": "erikarvstedt",
|
"owner": "erikarvstedt",
|
||||||
"repo": "extra-container",
|
"repo": "extra-container",
|
||||||
"rev": "3fce6c52bad520110c570c8ec5f02e2e6b93ce68",
|
"rev": "e34f0cca15f6f0f2e598dad0b329196d0dab6d4f",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -205,11 +205,11 @@
|
||||||
"utils": "utils"
|
"utils": "utils"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1672776592,
|
"lastModified": 1673089714,
|
||||||
"narHash": "sha256-4L1Ger9CqQKNkvg5bxAtWNRWnuIZDvjE1Vgl+gFe1v0=",
|
"narHash": "sha256-D58SGNOVe+s7r2iewnCA8q68gyrfQcOnD1TdJo1wFLY=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "498c46ea5d7e05b74049730582153535be5a4c54",
|
"rev": "9e565f0d9d41c19a94f55af205c328ec5177fc0a",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -227,11 +227,11 @@
|
||||||
"xdph": "xdph"
|
"xdph": "xdph"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1672757503,
|
"lastModified": 1673116395,
|
||||||
"narHash": "sha256-2MKfXQ9f2GUYEt+Yht/Qp5JpkamRu5pqRGX0HVwe13Q=",
|
"narHash": "sha256-FaMCRqErobvmmwXRxDVVj6e530JM64z9E4P3iniR+mE=",
|
||||||
"owner": "hyprwm",
|
"owner": "hyprwm",
|
||||||
"repo": "Hyprland",
|
"repo": "Hyprland",
|
||||||
"rev": "0e3547e0f6b4016aa308292a86c43cd47dd206fd",
|
"rev": "b1104b1ca70372c377289efe6ed99f2d1f6a1ca3",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -241,29 +241,18 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"hyprland-protocols": {
|
"hyprland-protocols": {
|
||||||
"flake": false,
|
"inputs": {
|
||||||
"locked": {
|
"nixpkgs": [
|
||||||
"lastModified": 1670703428,
|
"hyprland",
|
||||||
"narHash": "sha256-4KUW5SKR0Y9uaYGcYwy53YJ3B/sgiprCL4fRGO+mpOA=",
|
"nixpkgs"
|
||||||
"owner": "hyprwm",
|
]
|
||||||
"repo": "hyprland-protocols",
|
|
||||||
"rev": "d0d6db8cb5bef6d93ca3ad8fb2124964173396da",
|
|
||||||
"type": "github"
|
|
||||||
},
|
},
|
||||||
"original": {
|
|
||||||
"owner": "hyprwm",
|
|
||||||
"repo": "hyprland-protocols",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"hyprland-protocols_2": {
|
|
||||||
"flake": false,
|
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1670703428,
|
"lastModified": 1671839510,
|
||||||
"narHash": "sha256-4KUW5SKR0Y9uaYGcYwy53YJ3B/sgiprCL4fRGO+mpOA=",
|
"narHash": "sha256-+PY1qqJfmZzzROgcIY4I7AkCwpnC+qBIYk2eFoA9RWc=",
|
||||||
"owner": "hyprwm",
|
"owner": "hyprwm",
|
||||||
"repo": "hyprland-protocols",
|
"repo": "hyprland-protocols",
|
||||||
"rev": "d0d6db8cb5bef6d93ca3ad8fb2124964173396da",
|
"rev": "b8f55e02a328c47ed373133c52483bbfa20a1b75",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -300,11 +289,11 @@
|
||||||
"nixpkgs-unstable": "nixpkgs-unstable"
|
"nixpkgs-unstable": "nixpkgs-unstable"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1671285162,
|
"lastModified": 1673175426,
|
||||||
"narHash": "sha256-Qd751zQXNUpMFnk8m9nRDf+stE2KhYUoDmCTbiOtXfw=",
|
"narHash": "sha256-kMaXo7VDVZPUoKsJ1aJI2owBsbE4RevFEHoI045bXII=",
|
||||||
"owner": "fort-nix",
|
"owner": "fort-nix",
|
||||||
"repo": "nix-bitcoin",
|
"repo": "nix-bitcoin",
|
||||||
"rev": "932e4c93bcc75eddae5259574b7e49a399715df0",
|
"rev": "dfeff7b17b0c231fa9d0c7415045547671d980f6",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -316,11 +305,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1671722432,
|
"lastModified": 1672791794,
|
||||||
"narHash": "sha256-ojcZUekIQeOZkHHzR81st7qxX99dB1Eaaq6PU5MNeKc=",
|
"narHash": "sha256-mqGPpGmwap0Wfsf3o2b6qHJW1w2kk/I6cGCGIU+3t6o=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "652e92b8064949a11bc193b90b74cb727f2a1405",
|
"rev": "9813adc7f7c0edd738c6bdd8431439688bb0cb3d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -348,11 +337,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs-unstable": {
|
"nixpkgs-unstable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1670918062,
|
"lastModified": 1672756850,
|
||||||
"narHash": "sha256-iOhkyBYUU9Jfkk0lvI4ahpjyrTsLXj9uyJWwmjKg+gg=",
|
"narHash": "sha256-Smbq3+fitwA13qsTMeaaurv09/KVbZfW7m7lINwzDGA=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "84575b0bd882be979516f4fecfe4d7c8de8f6a92",
|
"rev": "298add347c2bbce14020fcb54051f517c391196b",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -396,27 +385,27 @@
|
||||||
},
|
},
|
||||||
"nixpkgs_4": {
|
"nixpkgs_4": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1670700605,
|
"lastModified": 1672844754,
|
||||||
"narHash": "sha256-5dlpATkcyITpdtMflhltuD+A3RNpsVI1Mb+dtKkll6Y=",
|
"narHash": "sha256-o26WabuHABQsaHxxmIrR3AQRqDFUEdLckLXkVCpIjSU=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "7b9eeb856cbf976482fa8d1cb295ea03fb3e1277",
|
"rev": "e9ade2c8240e00a4784fac282a502efff2786bdc",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"ref": "nixos-22.05",
|
"ref": "nixos-22.11",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs_5": {
|
"nixpkgs_5": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1672617983,
|
"lastModified": 1672953546,
|
||||||
"narHash": "sha256-68WDiCBs631mbDDk4UAKdGURKcsfW6hjb7wgudTAe5o=",
|
"narHash": "sha256-oz757DnJ1ITvwyTovuwG3l9cX6j9j6/DH9eH+cXFJmc=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "0fc9fca9c8d43edd79d33fea0dd8409d7c4580f4",
|
"rev": "a518c77148585023ff56022f09c4b2c418a51ef5",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -506,11 +495,11 @@
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"host": "gitlab.freedesktop.org",
|
"host": "gitlab.freedesktop.org",
|
||||||
"lastModified": 1671723353,
|
"lastModified": 1671183014,
|
||||||
"narHash": "sha256-G1jiI0SA7eiZusO+iJytErMRNbKbwqJJJGL+sNoBNoQ=",
|
"narHash": "sha256-oMWT5Zbe/3HFINAk38jNVxiZ4PCYvPJj2Jo4iiyBtm0=",
|
||||||
"owner": "wlroots",
|
"owner": "wlroots",
|
||||||
"repo": "wlroots",
|
"repo": "wlroots",
|
||||||
"rev": "b28a9afd4b0b86e9a66a40f6b44b69f59947b7d6",
|
"rev": "dc7cc98cf21a8dc19ab8895505500e3700646af0",
|
||||||
"type": "gitlab"
|
"type": "gitlab"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -522,18 +511,21 @@
|
||||||
},
|
},
|
||||||
"xdph": {
|
"xdph": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"hyprland-protocols": "hyprland-protocols_2",
|
"hyprland-protocols": [
|
||||||
|
"hyprland",
|
||||||
|
"hyprland-protocols"
|
||||||
|
],
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"hyprland",
|
"hyprland",
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1671837878,
|
"lastModified": 1673116118,
|
||||||
"narHash": "sha256-OmFDyktTc/l+3wHboHeFpAQgPt3r7jjqZf8MrwuUGMo=",
|
"narHash": "sha256-eR0yDSkR2XYMesfdRWJs25kAdXET2mbNNHu5t+KUcKA=",
|
||||||
"owner": "hyprwm",
|
"owner": "hyprwm",
|
||||||
"repo": "xdg-desktop-portal-hyprland",
|
"repo": "xdg-desktop-portal-hyprland",
|
||||||
"rev": "e47f4cec698080768821b271510985ab94a37e91",
|
"rev": "d479c846531fd0e1d2357c9588b8310a2b859ef2",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
@ -74,7 +74,7 @@ with lib;
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = rec {
|
settings = rec {
|
||||||
initial_session = {
|
initial_session = {
|
||||||
command = "dbus-run-session startplasma-wayland";
|
command = "/home/chris/bin/hyprland";
|
||||||
user = "chris";
|
user = "chris";
|
||||||
};
|
};
|
||||||
default_session = {
|
default_session = {
|
||||||
|
|
213
user/home.nix
213
user/home.nix
|
@ -1,6 +1,9 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
|
imports = [
|
||||||
|
./modules/hyprland.nix
|
||||||
|
];
|
||||||
# Home Manager needs a bit of information about you and the
|
# Home Manager needs a bit of information about you and the
|
||||||
# paths it should manage.
|
# paths it should manage.
|
||||||
home.username = "chris";
|
home.username = "chris";
|
||||||
|
@ -242,216 +245,6 @@
|
||||||
source = if builtins.readFile "/etc/hostname" == "syl\n" then ../mpv-syl else ../mpv;
|
source = if builtins.readFile "/etc/hostname" == "syl\n" then ../mpv-syl else ../mpv;
|
||||||
};
|
};
|
||||||
|
|
||||||
home.file.".config/hypr/hyprpaper.conf" = {
|
|
||||||
source = if builtins.readFile "/etc/hostname" == "syl\n" then /home/chris/.dotfiles/hypr/hyprpaper.conf else /home/chris/.dotfiles/hypr/hyprpaper.conf;
|
|
||||||
};
|
|
||||||
home.file.".config/hypr/hyprsome" = {
|
|
||||||
source = if builtins.readFile "/etc/hostname" == "syl\n" then /home/chris/.dotfiles/hypr/hyprsome else /home/chris/.dotfiles/hypr/hyprsome;
|
|
||||||
};
|
|
||||||
|
|
||||||
home.file.".config/hypr/hyprland.conf" = {
|
|
||||||
text = ''
|
|
||||||
monitor=eDP-1,2256x1504@60,0x0,1.5
|
|
||||||
workspace=eDP-1,1
|
|
||||||
monitor=DVI-D-1,preferred,0x0,1
|
|
||||||
monitor=HDMI-A-1,preferred,0x0,1
|
|
||||||
monitor=DP-3,preferred,1080x0,1.5
|
|
||||||
workspace=DVI-D-1,2
|
|
||||||
workspace=DP-3,1
|
|
||||||
workspace=HDMI-A-1,2
|
|
||||||
monitor=DVI-D-1,transform,1
|
|
||||||
|
|
||||||
input {
|
|
||||||
# kb_layout=
|
|
||||||
# kb_variant=
|
|
||||||
# kb_model=
|
|
||||||
# kb_options=
|
|
||||||
# kb_rules=
|
|
||||||
repeat_rate=140
|
|
||||||
repeat_delay=180
|
|
||||||
natural_scroll=0
|
|
||||||
sensitivity=0.85
|
|
||||||
accel_profile=adaptive
|
|
||||||
|
|
||||||
follow_mouse=2
|
|
||||||
|
|
||||||
touchpad {
|
|
||||||
natural_scroll=1
|
|
||||||
clickfinger_behavior=1
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
general {
|
|
||||||
max_fps=60 # deprecated, unused
|
|
||||||
# main_mod=SUPER
|
|
||||||
|
|
||||||
gaps_in=15
|
|
||||||
gaps_out=20
|
|
||||||
border_size=0
|
|
||||||
col.active_border=0x66ee1111
|
|
||||||
col.inactive_border=0x66333333
|
|
||||||
|
|
||||||
#damage_tracking=full # leave it on full unless you hate your GPU and want to make it suffer
|
|
||||||
layout=master
|
|
||||||
}
|
|
||||||
|
|
||||||
gestures {
|
|
||||||
workspace_swipe=true
|
|
||||||
workspace_swipe_fingers=3
|
|
||||||
}
|
|
||||||
|
|
||||||
decoration {
|
|
||||||
rounding=18
|
|
||||||
active_opacity=0.95
|
|
||||||
inactive_opacity=0.85
|
|
||||||
fullscreen_opacity=1.0
|
|
||||||
blur=true
|
|
||||||
blur_new_optimizations=true
|
|
||||||
blur_size=9# minimum 1
|
|
||||||
blur_passes=5 # minimum 1, more passes = more resource intensive.
|
|
||||||
# Your blur "amount" is blur_size * blur_passes, but high blur_size (over around 5-ish) will produce artifacts.
|
|
||||||
# if you want heavy blur, you need to up the blur_passes.
|
|
||||||
# the more passes, the more you can up the blur_size without noticing artifacts.
|
|
||||||
drop_shadow=true
|
|
||||||
shadow_range=20
|
|
||||||
shadow_offset=2 2
|
|
||||||
shadow_render_power=1
|
|
||||||
dim_inactive=true
|
|
||||||
dim_strength=0.2
|
|
||||||
}
|
|
||||||
|
|
||||||
bezier=snapslide,0.07,0.66,0.04,1.02
|
|
||||||
|
|
||||||
animations {
|
|
||||||
enabled=1
|
|
||||||
animation=windows,1,2,snapslide
|
|
||||||
# animation=borders,1,10,default
|
|
||||||
animation=fadeIn,1,2,snapslide
|
|
||||||
animation=workspaces,1,2,snapslide
|
|
||||||
animation=specialWorkspace,1,2,snapslide,slidevert
|
|
||||||
}
|
|
||||||
|
|
||||||
dwindle {
|
|
||||||
pseudotile=0 # enable pseudotiling on dwindle
|
|
||||||
}
|
|
||||||
|
|
||||||
master {
|
|
||||||
special_scale_factor=0.7
|
|
||||||
new_is_master=false
|
|
||||||
new_on_top=false
|
|
||||||
}
|
|
||||||
|
|
||||||
# misc:disable_autoreload = true
|
|
||||||
|
|
||||||
# example window rules
|
|
||||||
# for windows named/classed as abc and xyz
|
|
||||||
windowrule=opaque,firefox
|
|
||||||
windowrule=float,dolphin
|
|
||||||
${if builtins.readFile "/etc/hostname" == "syl\n" then "# this is a kaladin space" else "windowrule=workspace 1,mpv"}
|
|
||||||
windowrule=float,mpv
|
|
||||||
${if builtins.readFile "/etc/hostname" == "syl\n" then "windowrule=size 90% 76%,mpv" else "windowrule=size 85% 85%,mpv"}
|
|
||||||
windowrule=center,mpv
|
|
||||||
windowrule=float,pulsemixer
|
|
||||||
windowrule=workspace 1,firefox
|
|
||||||
windowrule=workspace 2,emacs
|
|
||||||
windowrule=float,btop
|
|
||||||
windowrule=size 70% 70%,btop
|
|
||||||
windowrule=center,btop
|
|
||||||
windowrule=float,presenter
|
|
||||||
windowrule=size 80% 80%,presenter
|
|
||||||
windowrule=center,presenter
|
|
||||||
|
|
||||||
# example binds
|
|
||||||
bind = SUPER,RETURN,exec,alacritty
|
|
||||||
bind = SUPER,C,killactive,
|
|
||||||
bind = SUPERSHIFT,Q,exit,
|
|
||||||
bind = SUPERSHIFT,D,exec,dolphin
|
|
||||||
bind = SUPERSHIFT,F,togglefloating,
|
|
||||||
bindr = SUPER,Super_L,exec,/home/chris/bin/launcher.sh
|
|
||||||
bindr = ALT,Alt_L,exec,/home/chris/bin/window.sh
|
|
||||||
bind = SUPER,w,exec,/home/chris/bin/window.sh
|
|
||||||
bind = SUPER,E,exec,/home/chris/bin/emacslof
|
|
||||||
bind = SUPER,d,exec,emacsclient -c -e '(dired-jump)'
|
|
||||||
bind = SUPER,B,exec,/home/chris/bin/fflof
|
|
||||||
bind = SUPER,A,exec,alacritty --class pulsemixer -e pulsemixer
|
|
||||||
bind = SUPERCTRL,i,exec,alacritty --class btop -e btop
|
|
||||||
|
|
||||||
bind = SUPER,P,exec,/home/chris/bin/rbw.sh
|
|
||||||
bind = SUPER,M,fullscreen,1
|
|
||||||
bind = SUPER,F,fullscreen,0
|
|
||||||
|
|
||||||
bind = SUPER,h,movefocus,l
|
|
||||||
bind = SUPER,l,movefocus,r
|
|
||||||
bind = SUPER,k,cyclenext,prev
|
|
||||||
bind = SUPER,j,cyclenext
|
|
||||||
bind = SUPERSHIFT,h,movewindow,l
|
|
||||||
bind = SUPERSHIFT,l,movewindow,r
|
|
||||||
bind = SUPERSHIFT,k,movewindow,u
|
|
||||||
bind = SUPERSHIFT,j,movewindow,d
|
|
||||||
bind = SUPERCTRL,l,splitratio,+0.05
|
|
||||||
bind = SUPERCTRL,h,splitratio,-0.05
|
|
||||||
bind = SUPERCTRL,c,centerwindow
|
|
||||||
|
|
||||||
bind = SUPER,1,workspace,1
|
|
||||||
bind = SUPER,2,workspace,2
|
|
||||||
bind = SUPER,3,workspace,3
|
|
||||||
bind = SUPER,4,workspace,4
|
|
||||||
bind = SUPER,5,workspace,5
|
|
||||||
bind = SUPER,6,workspace,6
|
|
||||||
bind = SUPER,7,workspace,7
|
|
||||||
bind = SUPER,8,workspace,8
|
|
||||||
bind = SUPER,9,workspace,9
|
|
||||||
bind = SUPER,0,workspace,10
|
|
||||||
|
|
||||||
bind = SUPERALT,l,workspace,m+1
|
|
||||||
bind = SUPERALT,h,workspace,m-1
|
|
||||||
|
|
||||||
bind = SUPERSHIFT,1,movetoworkspace,1
|
|
||||||
bind = SUPERSHIFT,2,movetoworkspace,2
|
|
||||||
bind = SUPERSHIFT,3,movetoworkspace,3
|
|
||||||
bind = SUPERSHIFT,4,movetoworkspace,4
|
|
||||||
bind = SUPERSHIFT,5,movetoworkspace,5
|
|
||||||
bind = SUPERSHIFT,6,movetoworkspace,6
|
|
||||||
bind = SUPERSHIFT,7,movetoworkspace,7
|
|
||||||
bind = SUPERSHIFT,8,movetoworkspace,8
|
|
||||||
bind = SUPERSHIFT,9,movetoworkspace,9
|
|
||||||
bind = SUPERSHIFT,0,movetoworkspace,10
|
|
||||||
|
|
||||||
bind = SUPER,o,movewindow,mon: next
|
|
||||||
bind = SUPER,y,togglespecialworkspace
|
|
||||||
bind = SUPER,i,movewindow,left
|
|
||||||
bind = SUPERSHIFT,p,pin
|
|
||||||
bind = SUPER,n,movetoworkspace,special
|
|
||||||
|
|
||||||
binde = , XF86AudioMute, exec, pamixer -t
|
|
||||||
binde = , XF86AudioRaiseVolume, exec, /home/chris/bin/volup
|
|
||||||
binde = , XF86AudioLowerVolume, exec, /home/chris/bin/voldown
|
|
||||||
binde = ,F1, exec, pamixer -t
|
|
||||||
binde = ,F3, exec, /home/chris/bin/volup
|
|
||||||
binde = ,F2, exec, /home/chris/bin/voldown
|
|
||||||
binde = , XF86MonBrightnessUp, exec, brightnessctl s +10%
|
|
||||||
binde = , XF86MonBrightnessDown, exec, brightnessctl s 10%-
|
|
||||||
|
|
||||||
bind=SUPERCTRL,b,exec,eww.sh
|
|
||||||
bind=SUPERALT,n,exec,eww update rightside=true
|
|
||||||
|
|
||||||
bindm=SUPER,mouse:272,movewindow
|
|
||||||
bindm=SUPER,mouse:273,resizewindow
|
|
||||||
|
|
||||||
# Blur waybar
|
|
||||||
# blurls=gtk-layer-shell
|
|
||||||
# blurls=notifications
|
|
||||||
|
|
||||||
exec-once = /home/chris/bin/startup.sh
|
|
||||||
exec-once = hyprpaper
|
|
||||||
exec-once = dunst
|
|
||||||
exec-once = hyprctl dispatch --batch "splitratio 1; splitration -0.35"
|
|
||||||
exec-once = dbus-update-activation-environment --systemd --all
|
|
||||||
exec-once = jellyfin-mpv-shim
|
|
||||||
exec-once = hyprctl setcursor phinger-cursors-light
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
services.nextcloud-client = {
|
services.nextcloud-client = {
|
||||||
enable = true;
|
enable = true;
|
||||||
startInBackground = true;
|
startInBackground = true;
|
||||||
|
|
213
user/modules/hyprland.nix
Normal file
213
user/modules/hyprland.nix
Normal file
|
@ -0,0 +1,213 @@
|
||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
home.file.".config/hypr/hyprpaper.conf" = {
|
||||||
|
source = if builtins.readFile "/etc/hostname" == "syl\n" then /home/chris/.dotfiles/hypr/hyprpaper.conf else /home/chris/.dotfiles/hypr/hyprpaper.conf;
|
||||||
|
};
|
||||||
|
home.file.".config/hypr/hyprsome" = {
|
||||||
|
source = if builtins.readFile "/etc/hostname" == "syl\n" then /home/chris/.dotfiles/hypr/hyprsome else /home/chris/.dotfiles/hypr/hyprsome;
|
||||||
|
};
|
||||||
|
|
||||||
|
home.file.".config/hypr/hyprland.conf" = {
|
||||||
|
text = ''
|
||||||
|
monitor=eDP-1,2256x1504@60,0x0,1.5
|
||||||
|
workspace=eDP-1,1
|
||||||
|
monitor=DVI-D-1,preferred,0x0,1
|
||||||
|
monitor=HDMI-A-1,preferred,0x0,1
|
||||||
|
monitor=DP-3,preferred,1080x0,1.5
|
||||||
|
workspace=DVI-D-1,2
|
||||||
|
workspace=DP-3,1
|
||||||
|
workspace=HDMI-A-1,2
|
||||||
|
monitor=DVI-D-1,transform,1
|
||||||
|
|
||||||
|
input {
|
||||||
|
# kb_layout=
|
||||||
|
# kb_variant=
|
||||||
|
# kb_model=
|
||||||
|
# kb_options=
|
||||||
|
# kb_rules=
|
||||||
|
repeat_rate=140
|
||||||
|
repeat_delay=180
|
||||||
|
natural_scroll=0
|
||||||
|
sensitivity=0.85
|
||||||
|
accel_profile=adaptive
|
||||||
|
|
||||||
|
follow_mouse=2
|
||||||
|
|
||||||
|
touchpad {
|
||||||
|
natural_scroll=1
|
||||||
|
clickfinger_behavior=1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
general {
|
||||||
|
max_fps=60 # deprecated, unused
|
||||||
|
# main_mod=SUPER
|
||||||
|
|
||||||
|
gaps_in=15
|
||||||
|
gaps_out=20
|
||||||
|
border_size=0
|
||||||
|
col.active_border=0x66ee1111
|
||||||
|
col.inactive_border=0x66333333
|
||||||
|
|
||||||
|
#damage_tracking=full # leave it on full unless you hate your GPU and want to make it suffer
|
||||||
|
layout=master
|
||||||
|
}
|
||||||
|
|
||||||
|
gestures {
|
||||||
|
workspace_swipe=true
|
||||||
|
workspace_swipe_fingers=3
|
||||||
|
}
|
||||||
|
|
||||||
|
decoration {
|
||||||
|
rounding=18
|
||||||
|
active_opacity=0.95
|
||||||
|
inactive_opacity=0.85
|
||||||
|
fullscreen_opacity=1.0
|
||||||
|
blur=true
|
||||||
|
blur_new_optimizations=true
|
||||||
|
blur_size=9# minimum 1
|
||||||
|
blur_passes=5 # minimum 1, more passes = more resource intensive.
|
||||||
|
# Your blur "amount" is blur_size * blur_passes, but high blur_size (over around 5-ish) will produce artifacts.
|
||||||
|
# if you want heavy blur, you need to up the blur_passes.
|
||||||
|
# the more passes, the more you can up the blur_size without noticing artifacts.
|
||||||
|
drop_shadow=true
|
||||||
|
shadow_range=20
|
||||||
|
shadow_offset=2 2
|
||||||
|
shadow_render_power=1
|
||||||
|
dim_inactive=true
|
||||||
|
dim_strength=0.2
|
||||||
|
}
|
||||||
|
|
||||||
|
bezier=snapslide,0.07,0.66,0.04,1.02
|
||||||
|
|
||||||
|
animations {
|
||||||
|
enabled=1
|
||||||
|
animation=windows,1,2,snapslide
|
||||||
|
# animation=borders,1,10,default
|
||||||
|
animation=fadeIn,1,2,snapslide
|
||||||
|
animation=workspaces,1,2,snapslide
|
||||||
|
animation=specialWorkspace,1,2,snapslide,slidevert
|
||||||
|
}
|
||||||
|
|
||||||
|
dwindle {
|
||||||
|
pseudotile=0 # enable pseudotiling on dwindle
|
||||||
|
}
|
||||||
|
|
||||||
|
master {
|
||||||
|
special_scale_factor=0.7
|
||||||
|
new_is_master=false
|
||||||
|
new_on_top=false
|
||||||
|
}
|
||||||
|
|
||||||
|
# misc:disable_autoreload = true
|
||||||
|
|
||||||
|
# example window rules
|
||||||
|
# for windows named/classed as abc and xyz
|
||||||
|
windowrule=opaque,firefox
|
||||||
|
windowrule=float,dolphin
|
||||||
|
${if builtins.readFile "/etc/hostname" == "syl\n" then "# this is a kaladin space" else "windowrule=workspace 1,mpv"}
|
||||||
|
windowrule=float,mpv
|
||||||
|
${if builtins.readFile "/etc/hostname" == "syl\n" then "windowrule=size 90% 76%,mpv" else "windowrule=size 85% 85%,mpv"}
|
||||||
|
windowrule=center,mpv
|
||||||
|
windowrule=float,pulsemixer
|
||||||
|
windowrule=workspace 1,firefox
|
||||||
|
windowrule=workspace 2,emacs
|
||||||
|
windowrule=float,btop
|
||||||
|
windowrule=size 70% 70%,btop
|
||||||
|
windowrule=center,btop
|
||||||
|
windowrule=float,presenter
|
||||||
|
windowrule=size 80% 80%,presenter
|
||||||
|
windowrule=center,presenter
|
||||||
|
|
||||||
|
# example binds
|
||||||
|
bind = SUPER,RETURN,exec,alacritty
|
||||||
|
bind = SUPER,C,killactive,
|
||||||
|
bind = SUPERSHIFT,Q,exit,
|
||||||
|
bind = SUPERSHIFT,D,exec,dolphin
|
||||||
|
bind = SUPERSHIFT,F,togglefloating,
|
||||||
|
bindr = SUPER,Super_L,exec,/home/chris/bin/launcher.sh
|
||||||
|
bindr = ALT,Alt_L,exec,/home/chris/bin/window.sh
|
||||||
|
bind = SUPER,w,exec,/home/chris/bin/window.sh
|
||||||
|
bind = SUPER,E,exec,/home/chris/bin/emacslof
|
||||||
|
bind = SUPER,d,exec,emacsclient -c -e '(dired-jump)'
|
||||||
|
bind = SUPER,B,exec,/home/chris/bin/fflof
|
||||||
|
bind = SUPER,A,exec,alacritty --class pulsemixer -e pulsemixer
|
||||||
|
bind = SUPERCTRL,i,exec,alacritty --class btop -e btop
|
||||||
|
|
||||||
|
bind = SUPER,P,exec,/home/chris/bin/rbw.sh
|
||||||
|
bind = SUPER,M,fullscreen,1
|
||||||
|
bind = SUPER,F,fullscreen,0
|
||||||
|
|
||||||
|
bind = SUPER,h,movefocus,l
|
||||||
|
bind = SUPER,l,movefocus,r
|
||||||
|
bind = SUPER,k,cyclenext,prev
|
||||||
|
bind = SUPER,j,cyclenext
|
||||||
|
bind = SUPERSHIFT,h,movewindow,l
|
||||||
|
bind = SUPERSHIFT,l,movewindow,r
|
||||||
|
bind = SUPERSHIFT,k,movewindow,u
|
||||||
|
bind = SUPERSHIFT,j,movewindow,d
|
||||||
|
bind = SUPERCTRL,l,splitratio,+0.05
|
||||||
|
bind = SUPERCTRL,h,splitratio,-0.05
|
||||||
|
bind = SUPERCTRL,c,centerwindow
|
||||||
|
|
||||||
|
bind = SUPER,1,workspace,1
|
||||||
|
bind = SUPER,2,workspace,2
|
||||||
|
bind = SUPER,3,workspace,3
|
||||||
|
bind = SUPER,4,workspace,4
|
||||||
|
bind = SUPER,5,workspace,5
|
||||||
|
bind = SUPER,6,workspace,6
|
||||||
|
bind = SUPER,7,workspace,7
|
||||||
|
bind = SUPER,8,workspace,8
|
||||||
|
bind = SUPER,9,workspace,9
|
||||||
|
bind = SUPER,0,workspace,10
|
||||||
|
|
||||||
|
bind = SUPERALT,l,workspace,m+1
|
||||||
|
bind = SUPERALT,h,workspace,m-1
|
||||||
|
|
||||||
|
bind = SUPERSHIFT,1,movetoworkspace,1
|
||||||
|
bind = SUPERSHIFT,2,movetoworkspace,2
|
||||||
|
bind = SUPERSHIFT,3,movetoworkspace,3
|
||||||
|
bind = SUPERSHIFT,4,movetoworkspace,4
|
||||||
|
bind = SUPERSHIFT,5,movetoworkspace,5
|
||||||
|
bind = SUPERSHIFT,6,movetoworkspace,6
|
||||||
|
bind = SUPERSHIFT,7,movetoworkspace,7
|
||||||
|
bind = SUPERSHIFT,8,movetoworkspace,8
|
||||||
|
bind = SUPERSHIFT,9,movetoworkspace,9
|
||||||
|
bind = SUPERSHIFT,0,movetoworkspace,10
|
||||||
|
|
||||||
|
bind = SUPER,o,movewindow,mon: next
|
||||||
|
bind = SUPER,y,togglespecialworkspace
|
||||||
|
bind = SUPER,i,movewindow,left
|
||||||
|
bind = SUPERSHIFT,p,pin
|
||||||
|
bind = SUPER,n,movetoworkspace,special
|
||||||
|
|
||||||
|
binde = , XF86AudioMute, exec, pamixer -t
|
||||||
|
binde = , XF86AudioRaiseVolume, exec, /home/chris/bin/volup
|
||||||
|
binde = , XF86AudioLowerVolume, exec, /home/chris/bin/voldown
|
||||||
|
binde = ,F1, exec, pamixer -t
|
||||||
|
binde = ,F3, exec, /home/chris/bin/volup
|
||||||
|
binde = ,F2, exec, /home/chris/bin/voldown
|
||||||
|
binde = , XF86MonBrightnessUp, exec, brightnessctl s +10%
|
||||||
|
binde = , XF86MonBrightnessDown, exec, brightnessctl s 10%-
|
||||||
|
|
||||||
|
bind=SUPERCTRL,b,exec,eww.sh
|
||||||
|
bind=SUPERALT,n,exec,eww update rightside=true
|
||||||
|
|
||||||
|
bindm=SUPER,mouse:272,movewindow
|
||||||
|
bindm=SUPER,mouse:273,resizewindow
|
||||||
|
|
||||||
|
# Blur waybar
|
||||||
|
# blurls=gtk-layer-shell
|
||||||
|
# blurls=notifications
|
||||||
|
|
||||||
|
exec-once = /home/chris/bin/startup.sh
|
||||||
|
exec-once = hyprpaper
|
||||||
|
exec-once = dunst
|
||||||
|
exec-once = hyprctl dispatch --batch "splitratio 1; splitration -0.35"
|
||||||
|
exec-once = dbus-update-activation-environment --systemd --all
|
||||||
|
exec-once = jellyfin-mpv-shim
|
||||||
|
exec-once = hyprctl setcursor phinger-cursors-light
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue