switch to optionalString in hyprland config
This commit is contained in:
parent
41093e8b74
commit
e51f8869b8
1 changed files with 21 additions and 21 deletions
|
@ -14,7 +14,7 @@
|
|||
inherit (lib.meta) getExe getExe';
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (lib.options) mkEnableOption mkOption;
|
||||
inherit (lib.strings) removeSuffix;
|
||||
inherit (lib.strings) optionalString removeSuffix;
|
||||
inherit (lib.types) bool listOf nullOr package path str submodule;
|
||||
|
||||
isAmdGpuPresent = elem "amdgpu" config.boot.initrd.kernelModules;
|
||||
|
@ -347,26 +347,26 @@ in {
|
|||
"$mainMod CONTROL, R, bringactivetotop"
|
||||
"$mainMod SHIFT, P, pin"
|
||||
# workspaces
|
||||
"$mainMod, 1, ${if smwPresent then "split-" else ""}workspace, 1"
|
||||
"$mainMod, 2, ${if smwPresent then "split-" else ""}workspace, 2"
|
||||
"$mainMod, 3, ${if smwPresent then "split-" else ""}workspace, 3"
|
||||
"$mainMod, 4, ${if smwPresent then "split-" else ""}workspace, 4"
|
||||
"$mainMod, 5, ${if smwPresent then "split-" else ""}workspace, 5"
|
||||
"$mainMod, 6, ${if smwPresent then "split-" else ""}workspace, 6"
|
||||
"$mainMod, 7, ${if smwPresent then "split-" else ""}workspace, 7"
|
||||
"$mainMod, 8, ${if smwPresent then "split-" else ""}workspace, 8"
|
||||
"$mainMod, 9, ${if smwPresent then "split-" else ""}workspace, 9"
|
||||
"$mainMod, 0, ${if smwPresent then "split-" else ""}workspace, 10"
|
||||
"$mainMod SHIFT, 1, ${if smwPresent then "split-" else ""}movetoworkspacesilent, 1"
|
||||
"$mainMod SHIFT, 2, ${if smwPresent then "split-" else ""}movetoworkspacesilent, 2"
|
||||
"$mainMod SHIFT, 3, ${if smwPresent then "split-" else ""}movetoworkspacesilent, 3"
|
||||
"$mainMod SHIFT, 4, ${if smwPresent then "split-" else ""}movetoworkspacesilent, 4"
|
||||
"$mainMod SHIFT, 5, ${if smwPresent then "split-" else ""}movetoworkspacesilent, 5"
|
||||
"$mainMod SHIFT, 6, ${if smwPresent then "split-" else ""}movetoworkspacesilent, 6"
|
||||
"$mainMod SHIFT, 7, ${if smwPresent then "split-" else ""}movetoworkspacesilent, 7"
|
||||
"$mainMod SHIFT, 8, ${if smwPresent then "split-" else ""}movetoworkspacesilent, 8"
|
||||
"$mainMod SHIFT, 9, ${if smwPresent then "split-" else ""}movetoworkspacesilent, 9"
|
||||
"$mainMod SHIFT, 0, ${if smwPresent then "split-" else ""}movetoworkspacesilent, 10"
|
||||
"$mainMod, 1, ${optionalString smwPresent "split-"}workspace, 1"
|
||||
"$mainMod, 2, ${optionalString smwPresent "split-"}workspace, 2"
|
||||
"$mainMod, 3, ${optionalString smwPresent "split-"}workspace, 3"
|
||||
"$mainMod, 4, ${optionalString smwPresent "split-"}workspace, 4"
|
||||
"$mainMod, 5, ${optionalString smwPresent "split-"}workspace, 5"
|
||||
"$mainMod, 6, ${optionalString smwPresent "split-"}workspace, 6"
|
||||
"$mainMod, 7, ${optionalString smwPresent "split-"}workspace, 7"
|
||||
"$mainMod, 8, ${optionalString smwPresent "split-"}workspace, 8"
|
||||
"$mainMod, 9, ${optionalString smwPresent "split-"}workspace, 9"
|
||||
"$mainMod, 0, ${optionalString smwPresent "split-"}workspace, 10"
|
||||
"$mainMod SHIFT, 1, ${optionalString smwPresent "split-"}movetoworkspacesilent, 1"
|
||||
"$mainMod SHIFT, 2, ${optionalString smwPresent "split-"}movetoworkspacesilent, 2"
|
||||
"$mainMod SHIFT, 3, ${optionalString smwPresent "split-"}movetoworkspacesilent, 3"
|
||||
"$mainMod SHIFT, 4, ${optionalString smwPresent "split-"}movetoworkspacesilent, 4"
|
||||
"$mainMod SHIFT, 5, ${optionalString smwPresent "split-"}movetoworkspacesilent, 5"
|
||||
"$mainMod SHIFT, 6, ${optionalString smwPresent "split-"}movetoworkspacesilent, 6"
|
||||
"$mainMod SHIFT, 7, ${optionalString smwPresent "split-"}movetoworkspacesilent, 7"
|
||||
"$mainMod SHIFT, 8, ${optionalString smwPresent "split-"}movetoworkspacesilent, 8"
|
||||
"$mainMod SHIFT, 9, ${optionalString smwPresent "split-"}movetoworkspacesilent, 9"
|
||||
"$mainMod SHIFT, 0, ${optionalString smwPresent "split-"}movetoworkspacesilent, 10"
|
||||
"$mainMod, W, exec, ${removeSuffix " %U" hmCfg.xdg.desktopEntries.firefox-schizo.exec}"
|
||||
"$mainMod SHIFT, W, exec, ${removeSuffix " %U" hmCfg.xdg.desktopEntries.firefox-unschizo.exec}"
|
||||
# screenshots
|
||||
|
|
Loading…
Reference in a new issue