Compare commits
No commits in common. "67bf01f74a484f3f3b74943f9557f16ac4d700d7" and "a1c8347057859a9126cea64c0eee6eca68302f2d" have entirely different histories.
67bf01f74a
...
a1c8347057
|
@ -1,130 +0,0 @@
|
|||
# Set environment variables to force wayland
|
||||
env = XCURSOR_SIZE,24
|
||||
env = GDK_BACKEND,wayland,x11
|
||||
env = QT_QPA_PLATFORM,wayland;xcb
|
||||
env = SDL_VIDEODRIVER,wayland
|
||||
env = CLUTTER_BACKEND,wayland
|
||||
input {
|
||||
kb_layout = us
|
||||
kb_variant =
|
||||
kb_model =
|
||||
kb_options =
|
||||
kb_rules =
|
||||
follow_mouse = 1
|
||||
}
|
||||
|
||||
general {
|
||||
# See https://wiki.hyprland.org/Configuring/Variables/ for more
|
||||
gaps_in = 5
|
||||
gaps_out = 10
|
||||
border_size = 3
|
||||
col.active_border = rgba(3fc5b7ee) rgba(70b433ee) 45deg
|
||||
col.inactive_border = rgba(252525aa)
|
||||
layout = dwindle
|
||||
}
|
||||
decoration {
|
||||
rounding = 10
|
||||
blur = true
|
||||
blur_size = 3
|
||||
blur_passes = 1
|
||||
blur_new_optimizations = true
|
||||
drop_shadow = true
|
||||
shadow_range = 4
|
||||
shadow_render_power = 3
|
||||
col.shadow = rgba(181818ee)
|
||||
}
|
||||
|
||||
animations {
|
||||
enabled = true;
|
||||
bezier = myBezier, 0.05, 0.9, 0.1, 1.05
|
||||
animation = windows, 1, 7, myBezier
|
||||
animation = windowsOut, 1, 7, default, popin 80%
|
||||
animation = border, 1, 10, default
|
||||
animation = borderangle, 1, 8, default
|
||||
animation = fade, 1, 7, default
|
||||
animation = workspaces, 1, 6, default
|
||||
}
|
||||
|
||||
dwindle {
|
||||
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
|
||||
pseudotile = true # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
|
||||
preserve_split = true # you probably want this
|
||||
}
|
||||
|
||||
gestures {
|
||||
workspace_swipe = false
|
||||
}
|
||||
|
||||
$mainMod = SUPER
|
||||
|
||||
bind = $mainMod, Q, exec, alacritty
|
||||
bind = $mainMod, C, killactive,
|
||||
bind = $mainMod, M, exit,
|
||||
bind = $mainMod, E, exec, dolphin
|
||||
bind = $mainMod, V, togglefloating,
|
||||
bind = $mainMod, R, exec, ${fuzzel-command}
|
||||
bind = $mainMod, P, pseudo, # dwindle
|
||||
bind = $mainMod, B, togglesplit, # dwindle
|
||||
bind = $mainMod, Z, exec, ${swaylock-command}
|
||||
|
||||
# Move focus with mainMod + arrow keys
|
||||
bind = $mainMod, H, movefocus, l
|
||||
bind = $mainMod, L, movefocus, r
|
||||
bind = $mainMod, K, movefocus, u
|
||||
bind = $mainMod, J, movefocus, d
|
||||
|
||||
# Switch workspaces with mainMod + [0-9]
|
||||
bind = $mainMod, 1, workspace, 1
|
||||
bind = $mainMod, 2, workspace, 2
|
||||
bind = $mainMod, 3, workspace, 3
|
||||
bind = $mainMod, 4, workspace, 4
|
||||
bind = $mainMod, 5, workspace, 5
|
||||
bind = $mainMod, 6, workspace, 6
|
||||
bind = $mainMod, 7, workspace, 7
|
||||
bind = $mainMod, 8, workspace, 8
|
||||
bind = $mainMod, 9, workspace, 9
|
||||
bind = $mainMod, 0, workspace, 10
|
||||
|
||||
# Move active window to a workspace with mainMod + SHIFT + [0-9]
|
||||
bind = $mainMod SHIFT, 1, movetoworkspace, 1
|
||||
bind = $mainMod SHIFT, 2, movetoworkspace, 2
|
||||
bind = $mainMod SHIFT, 3, movetoworkspace, 3
|
||||
bind = $mainMod SHIFT, 4, movetoworkspace, 4
|
||||
bind = $mainMod SHIFT, 5, movetoworkspace, 5
|
||||
bind = $mainMod SHIFT, 6, movetoworkspace, 6
|
||||
bind = $mainMod SHIFT, 7, movetoworkspace, 7
|
||||
bind = $mainMod SHIFT, 8, movetoworkspace, 8
|
||||
bind = $mainMod SHIFT, 9, movetoworkspace, 9
|
||||
bind = $mainMod SHIFT, 0, movetoworkspace, 10
|
||||
|
||||
# Scroll through existing workspaces with mainMod + scroll
|
||||
bind = $mainMod, mouse_down, workspace, e+1
|
||||
bind = $mainMod, mouse_up, workspace, e-1
|
||||
|
||||
# Move/resize windows with mainMod + LMB/RMB and dragging
|
||||
bindm = $mainMod, mouse:272, movewindow
|
||||
bindm = $mainMod, mouse:273, resizewindow
|
||||
|
||||
# Media key binds
|
||||
bind = , xf86audioraisevolume, exec, swayosd --output-volume=raise
|
||||
bind = SHIFT, xf86audioraisevolume, exec, swayosd --output-volume=+2
|
||||
bind = , xf86audiolowervolume, exec, swayosd --output-volume=lower
|
||||
bind = SHIFT, xf86audiolowervolume, exec, swayosd --output-volume=-2
|
||||
bind = , xf86audiomute, exec, swayosd --output-volume mute-toggle
|
||||
|
||||
# Screenshots
|
||||
bind = , print, exec, grimblast copysave area ~/Pictures/Screenshots/$(date -Iseconds).png
|
||||
bind = SHIFT, print, exec, grimblast copysave output ~/Pictures/Screenshots/$(date -Iseconds).png
|
||||
|
||||
# Caps lock indicator
|
||||
bindr = CAPS, caps_lock, exec, swayosd --caps-lock
|
||||
|
||||
# Notif bind
|
||||
bind = $mainMod, T, exec, swaync-client -t -sw
|
||||
|
||||
# systemd integration
|
||||
exec-once=dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY HYPRLAND_INSTANCE_SIGNATURE XDG_CURRENT_DESKTOP && sleep 2 && systemctl --user start hyprland-session.target
|
||||
|
||||
# Clipboard history management
|
||||
exec-once=wl-paste --watch cliphist store
|
||||
bind = $mainMod, X, exec, cliphist list | ${fuzzel-command} --dmenu | cliphist decode | wl-copy
|
63
flake.lock
63
flake.lock
|
@ -182,11 +182,11 @@
|
|||
"xdph": "xdph"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1686819210,
|
||||
"narHash": "sha256-mM+9CGiLOZ7qGMf1mw6xz3O1hxPmb/6PIaqJfm+GAec=",
|
||||
"lastModified": 1686764691,
|
||||
"narHash": "sha256-H4Pd2ny0euUNqYAQEi4ZQhbgUCBXarceOokNnjGcUSE=",
|
||||
"owner": "hyprwm",
|
||||
"repo": "Hyprland",
|
||||
"rev": "d768226de9281828c6346d7acff3ddc10b3e657f",
|
||||
"rev": "c4dec4f79697cb789b585f8e4febf92e929b5291",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -195,24 +195,6 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"hyprland-contrib": {
|
||||
"inputs": {
|
||||
"nixpkgs": "nixpkgs_3"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1686925761,
|
||||
"narHash": "sha256-H+i0VQvc2gx/QUCRNFoLZmHmCDITMQiF9zkDLj0pYCc=",
|
||||
"owner": "hyprwm",
|
||||
"repo": "contrib",
|
||||
"rev": "fd07e8b82042c0d2ca0c492df2b8f4854573c7d0",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "hyprwm",
|
||||
"repo": "contrib",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"hyprland-protocols": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
|
@ -481,11 +463,11 @@
|
|||
},
|
||||
"nixpkgs_2": {
|
||||
"locked": {
|
||||
"lastModified": 1686592866,
|
||||
"narHash": "sha256-riGg89eWhXJcPNrQGcSwTEEm7CGxWC06oSX44hajeMw=",
|
||||
"lastModified": 1686501370,
|
||||
"narHash": "sha256-G0WuM9fqTPRc2URKP9Lgi5nhZMqsfHGrdEbrLvAPJcg=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "0eeebd64de89e4163f4d3cf34ffe925a5cf67a05",
|
||||
"rev": "75a5ebf473cd60148ba9aec0d219f72e5cf52519",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -496,22 +478,6 @@
|
|||
}
|
||||
},
|
||||
"nixpkgs_3": {
|
||||
"locked": {
|
||||
"lastModified": 1658161305,
|
||||
"narHash": "sha256-X/nhnMCa1Wx4YapsspyAs6QYz6T/85FofrI6NpdPDHg=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "e4d49de45a3b5dbcb881656b4e3986e666141ea9",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"ref": "nixos-unstable",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs_4": {
|
||||
"locked": {
|
||||
"lastModified": 1686736559,
|
||||
"narHash": "sha256-YyUSVoOKIDAscTx7IZhF9x3qgZ9dPNF19fKk+4c5irc=",
|
||||
|
@ -527,7 +493,7 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs_5": {
|
||||
"nixpkgs_4": {
|
||||
"locked": {
|
||||
"lastModified": 1667292599,
|
||||
"narHash": "sha256-7ISOUI1aj6UKMPIL+wwthENL22L3+A9V+jS8Is3QsRo=",
|
||||
|
@ -543,7 +509,7 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs_6": {
|
||||
"nixpkgs_5": {
|
||||
"locked": {
|
||||
"lastModified": 1667085676,
|
||||
"narHash": "sha256-jPHYYoSdrV3ypWG4oi9SUeI2MU6dLjxM88+9io5Rrx0=",
|
||||
|
@ -635,13 +601,12 @@
|
|||
"flake-utils": "flake-utils_2",
|
||||
"home-manager": "home-manager",
|
||||
"hyprland": "hyprland",
|
||||
"hyprland-contrib": "hyprland-contrib",
|
||||
"idris2": "idris2",
|
||||
"java": "java",
|
||||
"nix-on-droid": "nix-on-droid",
|
||||
"nixos-generators": "nixos-generators",
|
||||
"nixos-hardware": "nixos-hardware",
|
||||
"nixpkgs": "nixpkgs_4",
|
||||
"nixpkgs": "nixpkgs_3",
|
||||
"nixpkgs-unstable": "nixpkgs-unstable",
|
||||
"quilt-server": "quilt-server",
|
||||
"scripts": "scripts",
|
||||
|
@ -652,7 +617,7 @@
|
|||
"scripts": {
|
||||
"inputs": {
|
||||
"flake-utils": "flake-utils_4",
|
||||
"nixpkgs": "nixpkgs_5",
|
||||
"nixpkgs": "nixpkgs_4",
|
||||
"swaywm-toggler": "swaywm-toggler"
|
||||
},
|
||||
"locked": {
|
||||
|
@ -694,7 +659,7 @@
|
|||
"swaywm-toggler": {
|
||||
"inputs": {
|
||||
"flake-utils": "flake-utils_5",
|
||||
"nixpkgs": "nixpkgs_6"
|
||||
"nixpkgs": "nixpkgs_5"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1667366374,
|
||||
|
@ -775,11 +740,11 @@
|
|||
"flake": false,
|
||||
"locked": {
|
||||
"host": "gitlab.freedesktop.org",
|
||||
"lastModified": 1686753331,
|
||||
"narHash": "sha256-KovjVFwcuoUO0eu/UiWrnD3+m/K+SHSAVIz4xF9K1XA=",
|
||||
"lastModified": 1686573751,
|
||||
"narHash": "sha256-5vnFxEMvn4wzT+XKR5Jo8VSn1hXrdf/mWuTmdHhRFBs=",
|
||||
"owner": "wlroots",
|
||||
"repo": "wlroots",
|
||||
"rev": "7e7633abf09b362d0bad9e3fc650fd692369291d",
|
||||
"rev": "6e8fb5509f2c94d09d4efa0f9b1f40b37bf73863",
|
||||
"type": "gitlab"
|
||||
},
|
||||
"original": {
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
hyprland.url = "github:hyprwm/Hyprland";
|
||||
hyprland-contrib.url = "github:hyprwm/contrib";
|
||||
nix-on-droid = {
|
||||
url = "github:t184256/nix-on-droid";
|
||||
inputs = {
|
||||
|
|
|
@ -21,8 +21,6 @@ with lib; {
|
|||
tealdeer
|
||||
# rsync for _The Cloud_ :tm:
|
||||
rclone
|
||||
# File
|
||||
file
|
||||
];
|
||||
# Configure tmux
|
||||
programs.tmux = {
|
||||
|
|
|
@ -25,7 +25,6 @@ in with lib; {
|
|||
# Bigger on darwin
|
||||
size = if pkgs.stdenv.isLinux then 10.0 else 12.0;
|
||||
};
|
||||
window = { opacity = 0.9; };
|
||||
colors = {
|
||||
primary = {
|
||||
background = "0x181818";
|
||||
|
@ -51,7 +50,6 @@ in with lib; {
|
|||
cyan = "0x3fc5b7";
|
||||
white = "0xdedede";
|
||||
};
|
||||
transparent_background_colors = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -15,7 +15,7 @@ with nLib; {
|
|||
../common/programs/git.nix
|
||||
../common/programs/ssh.nix
|
||||
../common/programs/fish.nix
|
||||
./programs/hyprland.nix
|
||||
./programs/sway.nix
|
||||
./programs/communications.nix
|
||||
./programs/devel.nix
|
||||
./programs/emacs.nix
|
||||
|
|
|
@ -7,9 +7,9 @@ in with lib; {
|
|||
swaylock-command = ''
|
||||
${swaylock-package}/bin/swaylock --screenshots --grace 30 --indicator --clock --timestr "%-I:%M:%S %p" --datestr "%A %Y-%M-%d" --effect-blur 20x3'';
|
||||
fuzzel-command = ''
|
||||
fuzzel -f "Iosevka Sans Quasi" -b "181818dd" -S "b9b9b9ff" -s "252525dd" -t "777777ff" -B 5 -r 5 -C "70b433dd"'';
|
||||
notif-package =
|
||||
inputs.nixpkgs-unstable.legacyPackages.${pkgs.system}.swaynotificationcenter;
|
||||
fuzzel -f "Iosevka Sans Quasi" -b "103c48ff" -S "adbcbcff" -s "184956ff" -t "72898fff" -B 5 -r 5 -C "ed8649ff"
|
||||
'';
|
||||
wob-package = inputs.nixpkgs-unstable.legacyPackages.${pkgs.system}.wob;
|
||||
in {
|
||||
home.packages = with pkgs; [
|
||||
# Locking and display management
|
||||
|
@ -18,9 +18,9 @@ in with lib; {
|
|||
swayidle
|
||||
# Clipboard
|
||||
wl-clipboard
|
||||
cliphist
|
||||
wl-clipboard-x11
|
||||
# Notifications
|
||||
notif-package
|
||||
mako
|
||||
# Terminal
|
||||
alacritty
|
||||
# glib for sound stuff
|
||||
|
@ -36,9 +36,7 @@ in with lib; {
|
|||
};
|
||||
}))
|
||||
# Screenshots
|
||||
(inputs.hyprland-contrib.packages.${pkgs.system}.grimblast.override {
|
||||
hyprland = config.wayland.windowManager.hyprland.package;
|
||||
})
|
||||
sway-contrib.grimshot
|
||||
# fuzzel for launcher
|
||||
fuzzel
|
||||
# for image viewing
|
||||
|
@ -51,8 +49,8 @@ in with lib; {
|
|||
libreoffice-fresh
|
||||
## Sway addons
|
||||
font-awesome
|
||||
wob-package
|
||||
inputs.nixpkgs-unstable.legacyPackages.${pkgs.system}.hyprpaper
|
||||
swayosd
|
||||
# For fancy x11 scaling
|
||||
sommelier
|
||||
# Polkit
|
||||
|
@ -67,17 +65,12 @@ in with lib; {
|
|||
enable = true;
|
||||
xwayland = {
|
||||
enable = true;
|
||||
hidpi = false;
|
||||
hidpi = true;
|
||||
};
|
||||
recommendedEnvironment = true;
|
||||
systemdIntegration = false;
|
||||
extraConfig = ''
|
||||
# Set environment variables to force wayland
|
||||
env = XCURSOR_SIZE,24
|
||||
env = GDK_BACKEND,wayland,x11
|
||||
env = QT_QPA_PLATFORM,wayland;xcb
|
||||
env = SDL_VIDEODRIVER,wayland
|
||||
env = CLUTTER_BACKEND,wayland
|
||||
input {
|
||||
kb_layout = us
|
||||
kb_variant =
|
||||
|
@ -136,7 +129,7 @@ in with lib; {
|
|||
bind = $mainMod, M, exit,
|
||||
bind = $mainMod, E, exec, dolphin
|
||||
bind = $mainMod, V, togglefloating,
|
||||
bind = $mainMod, R, exec, ${fuzzel-command}
|
||||
bind = $mainMod, R, exec, fuzzel -f "Iosevka Sans Quasi" -b "103c48ff" -S "adbcbcff" -s "184956ff" -t "72898fff" -B 5 -r 5 -C "ed8649ff"
|
||||
bind = $mainMod, P, pseudo, # dwindle
|
||||
bind = $mainMod, B, togglesplit, # dwindle
|
||||
bind = $mainMod, Z, exec, ${swaylock-command}
|
||||
|
@ -179,35 +172,8 @@ in with lib; {
|
|||
bindm = $mainMod, mouse:272, movewindow
|
||||
bindm = $mainMod, mouse:273, resizewindow
|
||||
|
||||
# Media key binds
|
||||
bind = , xf86audioraisevolume, exec, swayosd --output-volume=raise
|
||||
bind = SHIFT, xf86audioraisevolume, exec, swayosd --output-volume=+2
|
||||
bind = , xf86audiolowervolume, exec, swayosd --output-volume=lower
|
||||
bind = SHIFT, xf86audiolowervolume, exec, swayosd --output-volume=-2
|
||||
bind = , xf86audiomute, exec, swayosd --output-volume mute-toggle
|
||||
|
||||
# Screenshots
|
||||
bind = , print, exec, grimblast copysave area ~/Pictures/Screenshots/$(date -Iseconds).png
|
||||
bind = SHIFT, print, exec, grimblast copysave output ~/Pictures/Screenshots/$(date -Iseconds).png
|
||||
|
||||
# Caps lock indicator
|
||||
bindr = CAPS, caps_lock, exec, swayosd --caps-lock
|
||||
|
||||
# systemd integration
|
||||
exec-once=dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY HYPRLAND_INSTANCE_SIGNATURE XDG_CURRENT_DESKTOP && sleep 2 && systemctl --user start hyprland-session.target
|
||||
|
||||
# Notif bind
|
||||
bind = $mainMod, T, exec, swaync-client -t -sw
|
||||
|
||||
## Window rules
|
||||
# Gamescope
|
||||
windowrulev2 = float,class:^(.gamescope-wrapped)$
|
||||
windowrulev2 = noborder,class:^(.gamescope-wrapped)$
|
||||
windowrulev2 = rounding 0,class:^(.gamescope-wrapped)$
|
||||
|
||||
# Clipboard history management
|
||||
exec-once=wl-paste --watch cliphist store
|
||||
bind = $mainMod, X, exec, cliphist list | ${fuzzel-command} --dmenu | cliphist decode | wl-copy
|
||||
'';
|
||||
};
|
||||
|
||||
|
@ -223,7 +189,166 @@ in with lib; {
|
|||
};
|
||||
};
|
||||
#########################
|
||||
## Hyprland Addons
|
||||
## Sway
|
||||
#########################
|
||||
wayland.windowManager.sway = let modifier = "Mod4";
|
||||
in {
|
||||
enable = true;
|
||||
systemdIntegration = true;
|
||||
wrapperFeatures = {
|
||||
base = true;
|
||||
gtk = true;
|
||||
};
|
||||
extraSessionCommands = ''
|
||||
# Make qt theming work
|
||||
export QT_QPA_PLATFORMTHEME="qt5ct"
|
||||
# Prepare for wob
|
||||
export WOBSOCK="$XDG_RUNTIME_DIR/wob.sock"
|
||||
rm -rf $WOBSOCK && mkfifo $WOBSOCK
|
||||
'';
|
||||
config = {
|
||||
# Startup wob
|
||||
startup = [{ command = "tail -f $WOBSOCK | wob"; }];
|
||||
# Setup gaps
|
||||
gaps = {
|
||||
smartGaps = true;
|
||||
inner = 9;
|
||||
};
|
||||
# Window configuration
|
||||
window = {
|
||||
# Configure borders
|
||||
border = 2;
|
||||
# Application specific configuration
|
||||
commands = [
|
||||
# Make pinentry float
|
||||
{
|
||||
command = "floating enable";
|
||||
criteria = { app_id = "pinentry-qt"; };
|
||||
}
|
||||
# Make bitwarden float
|
||||
{
|
||||
command = "floating enable";
|
||||
criteria = { title = ".*Bitwarden.*"; };
|
||||
}
|
||||
# Make swayimg float, this is required to make it work
|
||||
{
|
||||
command = "floating enable";
|
||||
criteria = { app_id = "^swayimg.*"; };
|
||||
}
|
||||
# Work around for chrome ui bug
|
||||
{
|
||||
command = "shortcuts_inhibitor disable";
|
||||
criteria = { app_id = "chrome-.*"; };
|
||||
}
|
||||
];
|
||||
};
|
||||
# Use windows key as modifier
|
||||
modifier = "Mod4";
|
||||
# Alacritty as default terminal
|
||||
terminal = "alacritty";
|
||||
# Use krunner (from kde) as our launcher
|
||||
menu = ''
|
||||
${fuzzel-command}
|
||||
'';
|
||||
# Use waybar, but through systemd
|
||||
bars = [
|
||||
# {
|
||||
# command = "waybar";
|
||||
# }
|
||||
];
|
||||
# Use Iosevka
|
||||
fonts = {
|
||||
names = [ "Iosevka Sans Quasi" ];
|
||||
size = 10.0;
|
||||
};
|
||||
# Selenize it
|
||||
colors = {
|
||||
focused = {
|
||||
border = "75b938";
|
||||
background = "184956";
|
||||
text = "adbcbc";
|
||||
indicator = "84c747";
|
||||
childBorder = "75b938";
|
||||
};
|
||||
focusedInactive = {
|
||||
border = "41c7b9";
|
||||
background = "#103c48";
|
||||
text = "adbcbc";
|
||||
indicator = "53d6c7";
|
||||
childBorder = "41c7b9";
|
||||
};
|
||||
unfocused = {
|
||||
border = "72898f";
|
||||
background = "103c48";
|
||||
text = "72898f";
|
||||
indicator = "adbcbc";
|
||||
childBorder = "72898f";
|
||||
};
|
||||
urgent = {
|
||||
border = "f275be";
|
||||
background = "184956";
|
||||
text = "fa5750";
|
||||
indicator = "fa5750";
|
||||
childBorder = "f275be";
|
||||
};
|
||||
};
|
||||
# Setup keybindings
|
||||
keybindings = lib.mkOptionDefault {
|
||||
"${modifier}+q" = "kill";
|
||||
"${modifier}+z" = "exec ${swaylock-command}";
|
||||
## Sreenshot keybinds
|
||||
# Copy area to clipboard
|
||||
"${modifier}+x" =
|
||||
"exec ${pkgs.sway-contrib.grimshot}/bin/grimshot copy area";
|
||||
# Copy window to clipboard
|
||||
"${modifier}+Ctrl+x" =
|
||||
"exec ${pkgs.sway-contrib.grimshot}/bin/grimshot copy window";
|
||||
# Clpy entire output to clipboard
|
||||
"${modifier}+Alt+x" =
|
||||
"exec ${pkgs.sway-contrib.grimshot}/bin/grimshot copy output";
|
||||
# Make the mute key work
|
||||
"XF86AudioMute" = "exec pactl set-sink-mute @DEFAULT_SINK@ toggle";
|
||||
# Make the volume keys work
|
||||
"XF86AudioRaiseVolume" =
|
||||
"exec pactl set-sink-volume @DEFAULT_SINK@ +5% && pactl get-sink-volume @DEFAULT_SINK@ | head -n 1| awk '{print substr($5, 1, length($5)-1)}' > $WOBSOCK";
|
||||
"XF86AudioLowerVolume" =
|
||||
"exec pactl set-sink-volume @DEFAULT_SINK@ -5% && pactl get-sink-volume @DEFAULT_SINK@ | head -n 1 | awk '{print substr($5, 1, length($5)-1)}' > $WOBSOCK";
|
||||
# Play/pause and next song
|
||||
"XF86AudioPlay" = "exec mpc toggle";
|
||||
"XF86AudioNext" = "exec mpc next";
|
||||
# Setup scratchpads
|
||||
"${modifier}+n" =
|
||||
"exec sh -c 'swaymsg [app_id=\"emacs\"] scratchpad show'";
|
||||
"${modifier}+m" =
|
||||
"exec sh -c 'swaymsg [app_id=\"Alacritty\"] scratchpad show'";
|
||||
# Rebind movement keys to use layman
|
||||
"${modifier}+Shift+h" = "nop layman move left";
|
||||
"${modifier}+Shift+j" = "nop layman move down";
|
||||
"${modifier}+Shift+k" = "nop layman move up";
|
||||
"${modifier}+Shift+l" = "nop layman move right";
|
||||
# Switch to layman mode
|
||||
"${modifier}+g" = "mode layout";
|
||||
};
|
||||
modes = lib.mkOptionDefault {
|
||||
layout = {
|
||||
h = "nop layman layout none; mode default";
|
||||
j = "nop layman layout Autotiling; mode default";
|
||||
k = "nop layman layout Grid; mode default";
|
||||
l = "nop layman layout MasterStack; mode default";
|
||||
Escape = "mode default";
|
||||
Return = "mode default";
|
||||
};
|
||||
};
|
||||
# Setup a custom mode for layman operations
|
||||
# Turn on numlock by default
|
||||
input = {
|
||||
"*" = { xkb_numlock = "enable"; };
|
||||
"type:pointer" = { accel_profile = "flat"; };
|
||||
};
|
||||
};
|
||||
};
|
||||
#########################
|
||||
## Sway Addons
|
||||
#########################
|
||||
# Setup polkit as a service
|
||||
systemd.user.services.polkit-gnome = {
|
||||
|
@ -239,31 +364,42 @@ in with lib; {
|
|||
};
|
||||
Install = { WantedBy = [ "graphical-session.target" ]; };
|
||||
};
|
||||
# Setup swayosd as a service
|
||||
systemd.user.services.swayosd = {
|
||||
#########################
|
||||
## Mako (notifications)
|
||||
#########################
|
||||
services.mako = {
|
||||
enable = true;
|
||||
# Selenized color scheme
|
||||
borderColor = "#f275be";
|
||||
backgroundColor = "#184956";
|
||||
textColor = "#adbcbc";
|
||||
# Border configuration
|
||||
borderSize = 3;
|
||||
# Use Iosevka for font
|
||||
font = "Iosevka Sans Quasi 10";
|
||||
# Group by application
|
||||
groupBy = "app-name";
|
||||
# Bottom right corner
|
||||
anchor = "bottom-right";
|
||||
# Maximum visible notifications
|
||||
maxVisible = 10;
|
||||
# Sort by time in descending order (newest first)
|
||||
sort = "-time";
|
||||
# Don't time out notifications , I want to have to dismiss them
|
||||
defaultTimeout = 0;
|
||||
ignoreTimeout = true;
|
||||
};
|
||||
systemd.user.services.mako = {
|
||||
Unit = {
|
||||
Description = "Swayosd";
|
||||
Description = "mako notification daemon";
|
||||
After = [ "graphical-session.target" ];
|
||||
};
|
||||
Service = {
|
||||
Type = "simple";
|
||||
ExecStart = "${pkgs.swayosd}/bin/swayosd";
|
||||
Restart = "on-failure";
|
||||
};
|
||||
Install = { WantedBy = [ "graphical-session.target" ]; };
|
||||
};
|
||||
#########################
|
||||
## SwayNotificationCenter (notifications)
|
||||
#########################
|
||||
systemd.user.services.swaync = {
|
||||
Unit = {
|
||||
Description = "SwayNotificationCenter";
|
||||
After = [ "graphical-session.target" ];
|
||||
};
|
||||
Service = {
|
||||
Type = "simple";
|
||||
ExecStart = "${notif-package}/bin/swaync";
|
||||
Restart = "on-failure";
|
||||
ExecStart = ''
|
||||
${pkgs.mako}/bin/mako
|
||||
'';
|
||||
Restart = "always";
|
||||
};
|
||||
Install = { WantedBy = [ "graphical-session.target" ]; };
|
||||
};
|
||||
|
@ -281,8 +417,8 @@ in with lib; {
|
|||
# Turn off the displays after 10 minutes of inactivity
|
||||
{
|
||||
timeout = 600;
|
||||
command = "hyprctl dispatch dpms off";
|
||||
resumeCommand = "hyprctl dispatch dpms on";
|
||||
command = ''swaymsg "output * dpms off"'';
|
||||
resumeCommand = ''swaymsg "output * dpms on"'';
|
||||
}
|
||||
];
|
||||
};
|
||||
|
@ -292,7 +428,6 @@ in with lib; {
|
|||
#########################
|
||||
## Waybar
|
||||
#########################
|
||||
# https://github.com/DN-debug/waybar-examples/tree/main/waybar-examples/sway
|
||||
programs.waybar = {
|
||||
enable = true;
|
||||
package =
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
boot.initrd.availableKernelModules =
|
||||
[ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
|
||||
boot.initrd.kernelModules = [ "amdgpu" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-amd" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
|
|
|
@ -37,9 +37,7 @@
|
|||
|
||||
# Hyprland outputs
|
||||
wayland.windowManager.hyprland.extraConfig = ''
|
||||
# monitor=DP-1,preferred,auto,1.4,bitdepth,10
|
||||
# disable 10 bit output for now as this breaks screenshots
|
||||
monitor=DP-1,preferred,auto,1.4
|
||||
monitor=DP-1,preferred,auto,1.4,bitdepth,10
|
||||
input {
|
||||
sensitivity = -0.3
|
||||
# accel_profile = flat
|
||||
|
|
|
@ -11,7 +11,7 @@ in {
|
|||
./base.nix
|
||||
./user.nix
|
||||
./desktop.nix
|
||||
./hyprland.nix
|
||||
./swaywm.nix
|
||||
./hardware.nix
|
||||
./virtualization.nix
|
||||
./windows.nix
|
||||
|
|
|
@ -13,6 +13,7 @@ in with lib; {
|
|||
})
|
||||
# Prism Launcher minecraft stuff
|
||||
glfw-patched
|
||||
gamescope
|
||||
];
|
||||
unstable-packages =
|
||||
with inputs.nixpkgs-unstable.legacyPackages."${pkgs.system}"; [
|
||||
|
@ -21,32 +22,25 @@ in with lib; {
|
|||
prismlauncher
|
||||
];
|
||||
in stable-packages ++ unstable-packages;
|
||||
# Setup gamescope
|
||||
programs.gamescope = {
|
||||
enable = true;
|
||||
package = pkgs.gamescope.overrideAttrs (old: {
|
||||
src = let
|
||||
vals = builtins.fromJSON
|
||||
(builtins.readFile ../../../sources/gamescope.json);
|
||||
in pkgs.fetchFromGitHub {
|
||||
owner = "ValveSoftware";
|
||||
repo = "gamescope";
|
||||
rev = vals.rev;
|
||||
hash = vals.hash;
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
patches = [ ];
|
||||
buildInputs = with pkgs;
|
||||
old.buildInputs
|
||||
++ [ glm xorg.xcbutilwm xorg.xcbutilerrors gbenchmark ];
|
||||
});
|
||||
};
|
||||
# Install steam
|
||||
programs.steam = {
|
||||
enable = true;
|
||||
gamescopeSession = {
|
||||
enable = true;
|
||||
args = [ "--rt" ];
|
||||
programs.steam.enable = true;
|
||||
# Make steam work with gamescope
|
||||
nixpkgs.config.packageOverrides = pkgs: {
|
||||
steam = pkgs.steam.override {
|
||||
extraPkgs = pkgs:
|
||||
with pkgs; [
|
||||
xorg.libXcursor
|
||||
xorg.libXi
|
||||
xorg.libXinerama
|
||||
xorg.libXScrnSaver
|
||||
libpng
|
||||
libpulseaudio
|
||||
libvorbis
|
||||
stdenv.cc.cc.lib
|
||||
libkrb5
|
||||
keyutils
|
||||
gtk3
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -14,7 +14,7 @@ in with lib; {
|
|||
};
|
||||
theme = "sugar-dark";
|
||||
};
|
||||
defaultSession = "hyprland";
|
||||
defaultSession = "sway";
|
||||
};
|
||||
# Enable plasma for the applications
|
||||
desktopManager.plasma5.enable = true;
|
||||
|
@ -51,16 +51,34 @@ in with lib; {
|
|||
})
|
||||
];
|
||||
qt.platformTheme = "qt5ct";
|
||||
# Enable and configure sway itself
|
||||
programs.sway = {
|
||||
enable = true;
|
||||
# Enable the wrapper for gtk applications
|
||||
wrapperFeatures.gtk = true;
|
||||
# package = null;
|
||||
};
|
||||
# Enable and configure hyperland
|
||||
programs.hyprland = {
|
||||
enable = true;
|
||||
xwayland = {
|
||||
enable = true;
|
||||
hidpi = false;
|
||||
hidpi = true;
|
||||
};
|
||||
};
|
||||
|
||||
environment.sessionVariables = { MOZ_ENABLE_WAYLAND = "1"; };
|
||||
|
||||
# Enable the xdg-portal
|
||||
xdg = {
|
||||
portal = {
|
||||
enable = true;
|
||||
extraPortals = with pkgs; [
|
||||
xdg-desktop-portal-wlr
|
||||
xdg-desktop-portal-gtk
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
}
|
|
@ -1,4 +0,0 @@
|
|||
{
|
||||
"rev": "789cfc90575a7dbfc61ffa3325a4fb7f59f4d8b5",
|
||||
"hash": "sha256-ThirEuHlxTTd2T8kuPTcDohMv7N7ZoSyWt0tzjpN6A0="
|
||||
}
|
|
@ -15,15 +15,3 @@ jq --null-input \
|
|||
'{"version": $version, "url": $url, "hash": $hash}' \
|
||||
> $DIRECTORY/swayimg.json
|
||||
echo "swayimg now at $SWAYIMG_VERSION"
|
||||
|
||||
# Update gamescope
|
||||
GAMESCOPE_BRANCH=$(curl https://api.github.com/repos/ValveSoftware/gamescope | jq -r '.default_branch')
|
||||
GAMESCOPE_REV=$(curl https://api.github.com/repos/ValveSoftware/gamescope/git/refs/heads/$GAMESCOPE_BRANCH | \
|
||||
jq -r '.object.sha')
|
||||
GAMESCOPE_HASH=$(nix-prefetch fetchFromGitHub --owner ValveSoftware --repo gamescope --rev $GAMESCOPE_REV --fetchSubmodules)
|
||||
jq --null-input \
|
||||
--arg rev "$GAMESCOPE_REV" \
|
||||
--arg hash "$GAMESCOPE_HASH" \
|
||||
'{"rev": $rev, "hash": $hash}' \
|
||||
> $DIRECTORY/gamescope.json
|
||||
echo "gamescope now at $GAMESCOPE_REV"
|
||||
|
|
Loading…
Reference in New Issue