Odin: add Hyprland
This commit is contained in:
parent
485b6e5f58
commit
deb7148744
6 changed files with 39 additions and 21 deletions
|
|
@ -1,4 +1,4 @@
|
|||
{ pkgs, ... }: {
|
||||
{ nixosConfig, pkgs, ... }: {
|
||||
|
||||
imports = [
|
||||
./kitty.nix
|
||||
|
|
@ -36,13 +36,21 @@
|
|||
# For a full list, see the wiki
|
||||
#
|
||||
|
||||
autogenerated = 0 # remove this line to remove the warning
|
||||
|
||||
# See https://wiki.hyprland.org/Configuring/Monitors/
|
||||
# monitor=name,resolution,position,scale
|
||||
monitor,preferred,auto,auto
|
||||
monitor=DP-2,preferred,1080x420,1
|
||||
monitor=HDMI-A-1,preferred,auto,auto,transform,3
|
||||
${
|
||||
if nixosConfig.networking.hostName == "thor" then
|
||||
''
|
||||
monitor=DP-2,preferred,1080x420,auto
|
||||
monitor=HDMI-A-1,preferred,auto,auto,transform,3
|
||||
''
|
||||
else if nixosConfig.networking.hostName == "odin" then
|
||||
''
|
||||
monitor=eDP-1,preferred,320x1440,1
|
||||
monitor=DP-1,preferred,0x0,1
|
||||
'' else ""
|
||||
}
|
||||
|
||||
|
||||
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
|
||||
|
|
@ -58,7 +66,7 @@
|
|||
|
||||
# For all categories, see https://wiki.hyprland.org/Configuring/Variables/
|
||||
input {
|
||||
kb_layout = us
|
||||
kb_layout = ${if nixosConfig.networking.hostName == "thor" then "us" else "it" }
|
||||
kb_variant =
|
||||
kb_model =
|
||||
kb_options =
|
||||
|
|
@ -67,7 +75,7 @@
|
|||
follow_mouse = 1
|
||||
|
||||
touchpad {
|
||||
natural_scroll = no
|
||||
natural_scroll = yes
|
||||
}
|
||||
|
||||
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
|
||||
|
|
@ -148,16 +156,16 @@
|
|||
# $mainMod = SUPER
|
||||
|
||||
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
|
||||
bind = SUPER, Q, exec, kitty
|
||||
bind = SUPER, RETURN, exec, kitty
|
||||
bind = SUPER, C, killactive,
|
||||
bind = SUPER, Q, killactive,
|
||||
bind = SUPER, M, exec, way-lockscreen
|
||||
bind = SUPER_ALT_L, Q, exit,
|
||||
bind = SUPER, E, exec, kitty -e bash ${ya}
|
||||
bind = SUPER_SHIFT, E, exec, nemo
|
||||
bind = SUPER, V, togglefloating,
|
||||
bind = SUPER_SHIFT, R, exec, wofi --show drun --allow-images -D key_expand=Tab -M=fuzzy -i
|
||||
bind = SUPER_SHIFT, SPACE, exec, wofi --show run --allow-images -D key_expand=Tab -M=fuzzy -i
|
||||
bind = SUPER, SPACE, exec, wofi --show drun --allow-images -D key_expand=Tab -M=fuzzy -i
|
||||
bind = SUPER, F, fullscreen,
|
||||
bind = SUPER, P, pseudo, # dwindle
|
||||
bind = SUPER, J, togglesplit, # dwindle
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue