Compare commits
2 Commits
a91c7069c3
...
b70fb17ff4
Author | SHA1 | Date | |
---|---|---|---|
b70fb17ff4 | |||
18d42bc48c |
nixos
@ -178,18 +178,24 @@ $mainMod = SUPER # Sets "Windows" key as main modifier
|
||||
|
||||
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
|
||||
bind = $mainMod, return, exec, $terminal
|
||||
bind = $mainMod, Q, killactive,
|
||||
bind = $mainMod, Q, forcekillactive,
|
||||
bind = $mainMod, W, killactive,
|
||||
bind = $mainMod SHIFT, Q, exit,
|
||||
bind = $mainMod, V, togglefloating,
|
||||
bind = $mainMod, space, exec, $menu
|
||||
bind = $mainMod, P, pseudo, # dwindle
|
||||
bind = $mainMod, J, togglesplit, # dwindle
|
||||
bind = $mainMod, L, exec, hyprlock
|
||||
|
||||
# Move focus with mainMod + arrow keys
|
||||
bind = $mainMod, left, movefocus, l
|
||||
bind = $mainMod, right, movefocus, r
|
||||
bind = $mainMod, up, movefocus, u
|
||||
bind = $mainMod, down, movefocus, d
|
||||
bind = $mainMod SHIFT, left, movewindow, l
|
||||
bind = $mainMod SHIFT, right, movewindow, r
|
||||
bind = $mainMod SHIFT, up, movewindow, u
|
||||
bind = $mainMod SHIFT, down, movewindow, d
|
||||
|
||||
plugin {
|
||||
hyprsplit {
|
||||
@ -197,19 +203,19 @@ plugin {
|
||||
}
|
||||
}
|
||||
|
||||
bind = SUPER, 1, split:workspace, 1
|
||||
bind = SUPER, 2, split:workspace, 2
|
||||
bind = SUPER, 3, split:workspace, 3
|
||||
bind = SUPER, 4, split:workspace, 4
|
||||
bind = SUPER, 5, split:workspace, 5
|
||||
bind = SUPER, 6, split:workspace, 6
|
||||
bind = $mainMod, 1, split:workspace, 1
|
||||
bind = $mainMod, 2, split:workspace, 2
|
||||
bind = $mainMod, 3, split:workspace, 3
|
||||
bind = $mainMod, 4, split:workspace, 4
|
||||
bind = $mainMod, 5, split:workspace, 5
|
||||
bind = $mainMod, 6, split:workspace, 6
|
||||
|
||||
bind = SUPER SHIFT, 1, split:movetoworkspacesilent, 1
|
||||
bind = SUPER SHIFT, 2, split:movetoworkspacesilent, 2
|
||||
bind = SUPER SHIFT, 3, split:movetoworkspacesilent, 3
|
||||
bind = SUPER SHIFT, 4, split:movetoworkspacesilent, 4
|
||||
bind = SUPER SHIFT, 5, split:movetoworkspacesilent, 5
|
||||
bind = SUPER SHIFT, 6, split:movetoworkspacesilent, 6
|
||||
bind = $mainMod SHIFT, 1, split:movetoworkspacesilent, 1
|
||||
bind = $mainMod SHIFT, 2, split:movetoworkspacesilent, 2
|
||||
bind = $mainMod SHIFT, 3, split:movetoworkspacesilent, 3
|
||||
bind = $mainMod SHIFT, 4, split:movetoworkspacesilent, 4
|
||||
bind = $mainMod SHIFT, 5, split:movetoworkspacesilent, 5
|
||||
bind = $mainMod SHIFT, 6, split:movetoworkspacesilent, 6
|
||||
|
||||
# Example special workspace (scratchpad)
|
||||
bind = $mainMod, S, togglespecialworkspace, magic
|
109
nixos/config/hypr/hyprlock.conf
Normal file
109
nixos/config/hypr/hyprlock.conf
Normal file
@ -0,0 +1,109 @@
|
||||
# BACKGROUND
|
||||
background {
|
||||
monitor =
|
||||
path = ~/img/nixos.png
|
||||
blur_passes = 3
|
||||
contrast = 0.8916
|
||||
brightness = 0.8172
|
||||
vibrancy = 0.1696
|
||||
vibrancy_darkness = 0.0
|
||||
}
|
||||
|
||||
# GENERAL
|
||||
general {
|
||||
no_fade_in = false
|
||||
grace = 0
|
||||
disable_loading_bar = false
|
||||
}
|
||||
|
||||
# Profie-Photo
|
||||
image {
|
||||
monitor = DP-2
|
||||
path = ~/img/me.jpg
|
||||
border_size = 2
|
||||
border_color = rgba(255, 255, 255, 0)
|
||||
size = 130
|
||||
rounding = -1
|
||||
rotate = 0
|
||||
reload_time = -1
|
||||
reload_cmd =
|
||||
position = 0, 40
|
||||
halign = center
|
||||
valign = center
|
||||
}
|
||||
|
||||
# Day-Month-Date
|
||||
label {
|
||||
monitor = DP-2
|
||||
text = cmd[update:1000] echo -e "$(date +"%A, %B %d")"
|
||||
color = rgba(216, 222, 233, 0.70)
|
||||
font_size = 25
|
||||
font_family = JetBrainsMono Nerd Font
|
||||
position = 0, 350
|
||||
halign = center
|
||||
valign = center
|
||||
}
|
||||
|
||||
# Time
|
||||
label {
|
||||
monitor = DP-2
|
||||
text = cmd[update:1000] echo "<span>$(date +"%I:%M")</span>"
|
||||
color = rgba(216, 222, 233, 0.70)
|
||||
font_size = 120
|
||||
font_family = JetBrainsMono Nerd Font
|
||||
position = 0, 250
|
||||
halign = center
|
||||
valign = center
|
||||
}
|
||||
|
||||
# USER-BOX
|
||||
# shape {
|
||||
# monitor = DP-2
|
||||
# size = 300, 60
|
||||
# color = rgba(255, 255, 255, .1)
|
||||
# rounding = -1
|
||||
# border_size = 0
|
||||
# border_color = rgba(253, 198, 135, 0)
|
||||
# rotate = 0
|
||||
# xray = false # if true, make a "hole" in the background (rectangle of specified size, no rotation)
|
||||
|
||||
# position = 0, -130
|
||||
# halign = center
|
||||
# valign = center
|
||||
# }
|
||||
|
||||
# USER
|
||||
label {
|
||||
monitor = DP-2
|
||||
text = $DESC
|
||||
color = rgba(216, 222, 233, 0.80)
|
||||
outline_thickness = 2
|
||||
dots_size = 0.2 # Scale of input-field height, 0.2 - 0.8
|
||||
dots_spacing = 0.2 # Scale of dots' absolute size, 0.0 - 1.0
|
||||
dots_center = true
|
||||
font_size = 18
|
||||
font_family = JetBrainsMono Nerd Font
|
||||
position = 0, -130
|
||||
halign = center
|
||||
valign = center
|
||||
}
|
||||
|
||||
# INPUT FIELD
|
||||
input-field {
|
||||
monitor = DP-2
|
||||
size = 300, 60
|
||||
outline_thickness = 2
|
||||
dots_size = 0.2 # Scale of input-field height, 0.2 - 0.8
|
||||
dots_spacing = 0.2 # Scale of dots' absolute size, 0.0 - 1.0
|
||||
dots_center = true
|
||||
outer_color = rgba(0, 0, 0, 0)
|
||||
inner_color = rgba(255, 255, 255, 0.1)
|
||||
font_color = rgb(200, 200, 200)
|
||||
fade_on_empty = false
|
||||
font_family = JetBrainsMono Nerd Font
|
||||
placeholder_text = <span foreground="##ffffff99">🔒 Locked</span>
|
||||
hide_input = false
|
||||
position = 0, -210
|
||||
halign = center
|
||||
valign = center
|
||||
}
|
@ -125,7 +125,7 @@
|
||||
|
||||
programs.waybar = {
|
||||
enable = true;
|
||||
style = ./config/waybar-style.css;
|
||||
style = ./config/waybar/waybar-style.css;
|
||||
settings = {
|
||||
mainBar = {
|
||||
layer = "top";
|
||||
@ -233,7 +233,7 @@
|
||||
format = " ⏻ ";
|
||||
tooltip = false;
|
||||
menu = "on-click";
|
||||
menu-file = ./config/waybar-power-menu.xml;
|
||||
menu-file = ./config/waybar/waybar-power-menu.xml;
|
||||
menu-actions = {
|
||||
shutdown = "poweroff";
|
||||
reboot = "reboot";
|
||||
@ -252,18 +252,46 @@
|
||||
enable = true;
|
||||
settings = {
|
||||
ipc = "on";
|
||||
splash = false;
|
||||
splash = true;
|
||||
|
||||
preload = [ "$HOME/img/nixos.png" "$HOME/img/osf-024-static-wallpaper.png" ];
|
||||
wallpaper = [ ", $HOME/img/nixos.png" ];
|
||||
};
|
||||
};
|
||||
|
||||
programs.hyprlock = {
|
||||
enable = true;
|
||||
extraConfig = ''${builtins.readFile ./config/hypr/hyprlock.conf}'';
|
||||
};
|
||||
|
||||
services.hypridle = {
|
||||
enable = true;
|
||||
settings = {
|
||||
general = {
|
||||
after_sleep_cmd = "hyprctl dispatch dpms on";
|
||||
ignore_dbus_inhibit = false;
|
||||
lock_cmd = "hyprlock";
|
||||
};
|
||||
|
||||
listener = [
|
||||
{
|
||||
timeout = 900;
|
||||
on-timeout = "hyprlock";
|
||||
}
|
||||
{
|
||||
timeout = 1200;
|
||||
on-timeout = "hyprctl dispatch dpms off";
|
||||
on-resume = "hyprctl dispatch dpms on";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
|
||||
portalPackage = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland;
|
||||
extraConfig = ''${builtins.readFile ./config/hyprland.conf}'';
|
||||
extraConfig = ''${builtins.readFile ./config/hypr/hyprland.conf}'';
|
||||
plugins = [
|
||||
inputs.hyprsplit.packages.${pkgs.system}.hyprsplit
|
||||
];
|
||||
|
Loading…
x
Reference in New Issue
Block a user