Improve hyprland config

This commit is contained in:
Torjus Håkestad 2024-03-04 23:56:22 +01:00
parent 8e46ecdb3a
commit f07853ac05

View File

@ -32,10 +32,14 @@
"$mon_right" = "desc:Samsung Electric Company LS27A600U HNMT502390";
monitor = [
"$mon_top,1920x1080@60,2560x0,1" # top T2B04424SL000
"$mon_left,2560x1440@75,0x1080,1" # left
"$mon_center,2560x1440@120,2560x1080,1" # main #ASPVEKfgZ8Dd
"$mon_right,2560x1440@75,5120x1080,1" # right
# "$mon_top,1920x1080@60,2560x0,1" # top T2B04424SL000
"DP-6,1920x1080@60,2560x0,1" # top T2B04424SL000 60
# "$mon_left,2560x1440@75,0x1080,1" # left
"DP-8,2560x1440@60,0x1080,1" # left 75hz
# "$mon_center,2560x1440@120,2560x1080,1" # main #ASPVEKfgZ8Dd
"DP-5,2560x1440@60,2560x1080,1" # main #ASPVEKfgZ8Dd 120hz
# "$mon_right,2560x1440@75,5120x1080,1" # right
"DP-7,2560x1440@60,5120x1080,1" # right 75hz
];
input = {
kb_layout = "no";
@ -46,7 +50,7 @@
"LIBVA_DRIVER_NAME,nvidia"
"XDG_SESSION_TYPE,wayland"
"GBM_BACKEND,nvidia-drm"
"__GLX_VENDOR_LIBRARY_NAME,nvidia"
# "__GLX_VENDOR_LIBRARY_NAME,nvidia"
"WLR_NO_HARDWARE_CURSORS,1"
];
@ -99,7 +103,7 @@
"name:left, monitor:$mon_left, persistent:true, default:true"
"name:right, monitor:$mon_right, persistent:true, default:true"
"name:main 1, monitor:$mon_center, persistent:true, default:true"
"name:main 2, monitor:$mon_center, persistent:true, default:false"
"name:main 2, monitor:$mon_center, persistent:true, default:true"
];
bindm = [
@ -146,14 +150,15 @@
# ",code:202,exec,mumble rpc starttalking"
",code:202,exec,pamixer --default-source -u"
] ++ (builtins.concatLists (builtins.genList
(x:
let
ws = let c = (x + 1) / 10; in builtins.toString (x + 1 - (c * 10));
in
[
"$mainMod, ${ws}, workspace, ${toString (x + 1)}"
]) 10));
# worspace switching
"$mainMod,1,workspace,name:main 1"
"$mainMod,2,workspace,name:main 2"
"$mainMod,3,workspace,3"
"$mainMod,4,workspace,4"
"$mainMod,5,workspace,5"
"$mainMod,6,workspace,6"
];
exec-once = [
"waybar"
"hyprpaper & sleep 2 && randomwp"