1
Fork 0

Move away from wezterm

This commit is contained in:
prescientmoon 2024-08-05 20:31:34 +02:00
parent afea4bacd0
commit 3a4d400fef
Signed by: prescientmoon
SSH key fingerprint: SHA256:UUF9JT2s8Xfyv76b8ZuVL7XrmimH4o49p4b+iexbVH4
19 changed files with 217 additions and 314 deletions
home/features/wayland

View file

@ -1,5 +1,6 @@
# Common wayland stuff
{ lib, pkgs, ... }: {
{ lib, pkgs, ... }:
{
imports = [
./wlsunset.nix
./wlogout.nix
@ -35,9 +36,10 @@
| ${wl-copy}
${_ pkgs.libnotify} "Scanned qr code on area with output \"$(${wl-paste})\""
'';
# }}}
in
with pkgs; [
# }}}
with pkgs;
[
libnotify # Send notifications
wl-ocr # Custom ocr script
wl-qr # Custom qr scanner script

View file

@ -1,6 +1,18 @@
{ pkgs, lib, config, ... }:
{
imports = [ ../global.nix ./hyprpaper.nix ];
pkgs,
lib,
config,
...
}:
{
imports = [
../global.nix
./hyprpaper.nix
];
home.packages = [
pkgs.gtk3 # Contains gtk-launch
];
stylix.targets.hyprland.enable = true;
wayland.windowManager.hyprland = {
@ -23,13 +35,14 @@
passes = config.satellite.theming.blur.passes;
contrast = config.satellite.theming.blur.contrast;
brightness = config.satellite.theming.blur.brightness;
noise = 0.05;
noise = 5.0e-2;
};
};
# }}}
# {{{ Monitors
# Configure monitor properties
monitor = lib.forEach config.satellite.monitors (m:
monitor = lib.forEach config.satellite.monitors (
m:
lib.concatStringsSep "," [
m.name
"${toString m.width}x${toString m.height}@${toString m.refreshRate}"
@ -39,11 +52,10 @@
);
# Map monitors to workspaces
workspace = lib.lists.concatMap
(m: lib.lists.optional (m.workspace != null) "${m.name},${m.workspace}")
config.satellite.monitors;
workspace = lib.lists.concatMap (
m: lib.lists.optional (m.workspace != null) "${m.name},${m.workspace}"
) config.satellite.monitors;
# }}}
};
};
}

View file

@ -21,6 +21,9 @@ layerrule = blur,logout_dialog
layerrule = blur,anyrun
layerrule = blur,waybar
layerrule = ignorezero,gtk-layer-shell
layerrule = ignorezero,osd
layerrule = ignorezero,waybar
layerrule = ignorezero,anyrun
layerrule = ignorezero,waybar
@ -51,7 +54,7 @@ animations {
}
# Execute apps at launch
exec-once = wezterm & firefox & discocss & spotify & obsidiantui & smostui
exec-once = foot & firefox & discocss & gtk-launch obsidiantui & gtk-launch smostui
# Without this, xdg-open doesn't work
exec = systemctl --user import-environment PATH && systemctl --user restart xdg-desktop-portal.service
@ -59,17 +62,11 @@ exec = systemctl --user import-environment PATH && systemctl --user restart xdg-
# {{{ Window rules
# {{{ Automatically move stuff to workspaces
windowrulev2 = workspace 2 silent, title:^(.*Firefox.*)$
windowrulev2 = workspace 3 silent, title:^(.*(Disc|WebC)ord.*)$
windowrulev2 = workspace 3 silent, title:^(.*Element.*)$
windowrulev2 = workspace 6 silent, title:^(.*(S|s)pot(ify)?.*)$
windowrulev2 = workspace 7 silent, title:^(.*Obsidian.*)$
windowrulev2 = workspace 7 silent, title:^(.*stellar-sanctum)$
windowrulev2 = workspace 7 silent, class:^(org\.wezfurlong\.wezterm\.obsidian)$
windowrulev2 = workspace 8 silent, class:^(org\.wezfurlong\.wezterm\.smos)$
windowrulev2 = workspace 7 silent, class:^(.*Obsidian.*)$
windowrulev2 = workspace 8 silent, class:^(.*Smos.*)$
# }}}
# {{{ Idleinhibit rules
# - while firefox is fullscreen
@ -87,7 +84,7 @@ bind = $mod, C, killactive, # Kill current
bind = $mod, F, fullscreen, # Fullscreen
# Execute external things
bind = $mod, return, exec, wezterm
bind = $mod, return, exec, foot
bind = $mod, T, exec, wl-ocr
bind = $mod SHIFT, T, exec, wl-qr
bind = $mod CONTROL, T, exec, hyprpicker | wl-copy && libnotify "Copied color $(wp-paste)" # Color picker
@ -95,7 +92,7 @@ bind = $mod, Q, exec, wlogout # Show logout menu
bind = $mod, L, exec, loginctl lock-session # Lock screen
bind = $mod, P, exec, anyrun
bind = $mod, B, exec, wlsunset-toggle # Toggle blue light filter thingy
bind = $mod, V, exec, wezterm start vimclip # Vim anywhere!
bind = $mod, V, exec, foot vimclip # Vim anywhere!
bind = $mod, W, exec, ~/projects/form-filler/type.sh
# Work with the special workspace