mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-04-01 01:30:53 +02:00
swayidle is working
This commit is contained in:
parent
340ce85800
commit
425670c808
3 changed files with 42 additions and 24 deletions
|
@ -21,12 +21,6 @@ with lib;
|
||||||
xdg.configFile."hypr/hyprland.conf".text = ''
|
xdg.configFile."hypr/hyprland.conf".text = ''
|
||||||
exec-once = waybar & hyprpaper
|
exec-once = waybar & hyprpaper
|
||||||
exec-once=dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY
|
exec-once=dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY
|
||||||
exec swayidle -w \
|
|
||||||
timeout 300 'swaylock -f -c 000000' \
|
|
||||||
timeout 600 'swaymsg "output * dpms off"' \
|
|
||||||
resume 'swaymsg "output * dpms on"' \
|
|
||||||
before-sleep 'swaylock -f -c 000000'
|
|
||||||
|
|
||||||
exec-once = nm-applet --indicator
|
exec-once = nm-applet --indicator
|
||||||
# Monitors
|
# Monitors
|
||||||
monitor = eDP-1, preferred, auto, auto
|
monitor = eDP-1, preferred, auto, auto
|
||||||
|
@ -40,8 +34,8 @@ with lib;
|
||||||
|
|
||||||
# General
|
# General
|
||||||
general {
|
general {
|
||||||
gaps_in = 4
|
gaps_in = 3
|
||||||
gaps_out = 8
|
gaps_out = 5
|
||||||
border_size = 2
|
border_size = 2
|
||||||
col.active_border = rgb(11111b)
|
col.active_border = rgb(11111b)
|
||||||
col.inactive_border = rgb(11111b)
|
col.inactive_border = rgb(11111b)
|
||||||
|
@ -57,19 +51,14 @@ with lib;
|
||||||
|
|
||||||
# Decorations
|
# Decorations
|
||||||
decoration {
|
decoration {
|
||||||
rounding = 5
|
rounding = 4
|
||||||
active_opacity = 0.9
|
}
|
||||||
blur_new_optimizations = on
|
|
||||||
blur_size = 8
|
|
||||||
blur_passes = 10
|
|
||||||
blur = false
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
animations {
|
animations {
|
||||||
enabled = true
|
enabled = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
# Gestures
|
# Gestures
|
||||||
gestures {
|
gestures {
|
||||||
workspace_swipe = true
|
workspace_swipe = true
|
||||||
|
@ -79,13 +68,13 @@ with lib;
|
||||||
|
|
||||||
# Variables
|
# Variables
|
||||||
$term = ${terminal}
|
$term = ${terminal}
|
||||||
$browser = firefox
|
$browser = chromium
|
||||||
$editor = nvim
|
$editor = nvim
|
||||||
$files = nemo
|
$files = nemo
|
||||||
$launcher = ${menu}
|
$launcher = ${menu}
|
||||||
|
|
||||||
# Apps
|
# Apps
|
||||||
bind = SUPER, RETURN, exec, alacritty
|
bind = SUPER, RETURN, exec, kitty
|
||||||
bind = SUPER SHIFT, E, exec, $editor
|
bind = SUPER SHIFT, E, exec, $editor
|
||||||
bind = SUPER SHIFT, F, exec, $files
|
bind = SUPER SHIFT, F, exec, $files
|
||||||
bind = SUPER SHIFT, B, exec, $browser
|
bind = SUPER SHIFT, B, exec, $browser
|
||||||
|
@ -163,9 +152,19 @@ with lib;
|
||||||
wallpaper = ,${../../machines/macintosh/wallpaper.jpg}
|
wallpaper = ,${../../machines/macintosh/wallpaper.jpg}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
services.swayidle = {
|
||||||
|
enable = true;
|
||||||
|
systemdTarget = "hyprland-session.target";
|
||||||
|
events = [
|
||||||
|
{ event = "before-sleep"; command = "${pkgs.swaylock}/bin/swaylock"; }
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
home.packages = with pkgs; [ qt6.qtwayland libsForQt5.qt5.qtwayland hyprpaper swaylock swayidle ];
|
|
||||||
|
|
||||||
|
|
||||||
|
home.packages = with pkgs; [ qt6.qtwayland libsForQt5.qt5.qtwayland hyprpaper swaylock ];
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -50,7 +50,7 @@ with lib;
|
||||||
tooltip-format-enumerate-connected = "{device_alias} {device_address}";
|
tooltip-format-enumerate-connected = "{device_alias} {device_address}";
|
||||||
};
|
};
|
||||||
"network" = {
|
"network" = {
|
||||||
interface = "wlp1s0f0";
|
interface = "wlp3s0";
|
||||||
format = "{ifname}";
|
format = "{ifname}";
|
||||||
format-wifi = "<span color='#cba6f7'> </span>{essid}";
|
format-wifi = "<span color='#cba6f7'> </span>{essid}";
|
||||||
format-ethernet = "{ipaddr}/{cidr} ";
|
format-ethernet = "{ipaddr}/{cidr} ";
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
luj.programs.hyprland.enable = true;
|
luj.programs.hyprland.enable = true;
|
||||||
luj.programs.waybar.enable = true;
|
luj.programs.waybar.enable = true;
|
||||||
luj.programs.kitty.enable = true;
|
luj.programs.kitty.enable = true;
|
||||||
|
luj.emails.enable = true;
|
||||||
|
|
||||||
programs.rofi = {
|
programs.rofi = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -43,7 +44,6 @@
|
||||||
jq
|
jq
|
||||||
lazygit
|
lazygit
|
||||||
fira-code
|
fira-code
|
||||||
unstable.firefox
|
|
||||||
feh
|
feh
|
||||||
meld
|
meld
|
||||||
vlc
|
vlc
|
||||||
|
@ -66,6 +66,7 @@
|
||||||
step-cli
|
step-cli
|
||||||
coq
|
coq
|
||||||
cvc5
|
cvc5
|
||||||
|
signal-desktop
|
||||||
coqPackages.coqide
|
coqPackages.coqide
|
||||||
(why3.withProvers
|
(why3.withProvers
|
||||||
[
|
[
|
||||||
|
@ -85,6 +86,24 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
programs.chromium = {
|
||||||
|
enable = true;
|
||||||
|
commandLineArgs = [
|
||||||
|
"--ozone-platform-hint=wayland"
|
||||||
|
"--load-media-router-component-extension=1"
|
||||||
|
];
|
||||||
|
extensions = [
|
||||||
|
{ id = "cjpalhdlnbpafiamejdnhcphjbkeiagm"; } # uBlock Origin
|
||||||
|
{ id = "ldlghkoiihaelfnggonhjnfiabmaficg"; } # Alt+Q switcher
|
||||||
|
{ id = "enjjhajnmggdgofagbokhmifgnaophmh"; } # Resolution Zoom for HiDPI
|
||||||
|
{ id = "fihnjjcciajhdojfnbdddfaoknhalnja"; } # I don't care about cookies
|
||||||
|
{ id = "ekhagklcjbdpajgpjgmbionohlpdbjgc"; } # Zotero Connector
|
||||||
|
{ id = "hlepfoohegkhhmjieoechaddaejaokhf"; } # Refined GitHub
|
||||||
|
{ id = "nngceckbapebfimnlniiiahkandclblb"; } # Bitwarden
|
||||||
|
{ id = "dcpihecpambacapedldabdbpakmachpb"; updateUrl = "https://raw.githubusercontent.com/iamadamdev/bypass-paywalls-chrome/master/src/updates/updates.xml"; }
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue