switch to neo layout
This commit is contained in:
parent
1ccd0950dc
commit
a541d9f8ce
3 changed files with 23 additions and 6 deletions
|
@ -193,8 +193,16 @@ in {
|
||||||
environment.systemPackages = let
|
environment.systemPackages = let
|
||||||
library = import <library> { inherit pkgs lib; };
|
library = import <library> { inherit pkgs lib; };
|
||||||
|
|
||||||
|
neoKeyboard = pkgs.writeScriptBin "neo-Keyboard" # sh
|
||||||
|
''
|
||||||
|
${pkgs.numlockx}/bin/numlockx off
|
||||||
|
${pkgs.xorg.setxkbmap}/bin/setxkbmap -layout de neo
|
||||||
|
'';
|
||||||
|
|
||||||
fixKeyboard = pkgs.writeScriptBin "fix-Keyboard" # sh
|
fixKeyboard = pkgs.writeScriptBin "fix-Keyboard" # sh
|
||||||
''
|
''
|
||||||
|
${pkgs.xorg.setxkbmap}/bin/setxkbmap -layout us
|
||||||
|
${pkgs.numlockx}/bin/numlockx on
|
||||||
${pkgs.xorg.xmodmap}/bin/xmodmap ${xmodmapConfig}
|
${pkgs.xorg.xmodmap}/bin/xmodmap ${xmodmapConfig}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
@ -226,6 +234,7 @@ in {
|
||||||
fixXhost
|
fixXhost
|
||||||
(library.desktopFile fixX { longName = "fix X"; })
|
(library.desktopFile fixX { longName = "fix X"; })
|
||||||
fixKeyboard
|
fixKeyboard
|
||||||
|
neoKeyboard
|
||||||
(library.desktopFile fixKeyboard { longName = "fix keyboard"; })
|
(library.desktopFile fixKeyboard { longName = "fix keyboard"; })
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -3,8 +3,8 @@ let
|
||||||
|
|
||||||
background-repo = pkgs.fetchgit {
|
background-repo = pkgs.fetchgit {
|
||||||
url = "https://git.ingolf-wagner.de/palo/image-generator-lib";
|
url = "https://git.ingolf-wagner.de/palo/image-generator-lib";
|
||||||
rev = "99b5c9acaa9abbbc15ea035fdd44ac8d2f456a37";
|
rev = "8327c5aaffc1d2ca56decbefcdba5fb98028b870";
|
||||||
sha256 = "0z2q798gwdgxgqkr6nyg0hmlq1ndspzkqb8yv9kisgkv0d0jqqmv";
|
sha256 = "12w2b8qs7ibijvyyw4zf7626ikg6sbc8lxkhb3fcvc6w4xfiiny0";
|
||||||
};
|
};
|
||||||
|
|
||||||
nixCommands = { height, width }:
|
nixCommands = { height, width }:
|
||||||
|
@ -19,7 +19,7 @@ let
|
||||||
nixStartRedshift = "${pkgs.redshift}/bin/redshift -O 6100 -g 0.9:0.9:0.9 -b 0.9"
|
nixStartRedshift = "${pkgs.redshift}/bin/redshift -O 6100 -g 0.9:0.9:0.9 -b 0.9"
|
||||||
nixResetRedshift = "${pkgs.redshift}/bin/redshift -x"
|
nixResetRedshift = "${pkgs.redshift}/bin/redshift -x"
|
||||||
nixSetCursorImage = "${pkgs.xorg.xsetroot}/bin/xsetroot -cursor_name left_ptr"
|
nixSetCursorImage = "${pkgs.xorg.xsetroot}/bin/xsetroot -cursor_name left_ptr"
|
||||||
nixSetBackground = "${pkgs.image-generator}/bin/image-generator --line-size 2.0 ${background-repo}/tictoctoe.json --height ${
|
nixSetBackground = "${pkgs.image-generator}/bin/image-generator --line-size 2.0 ${background-repo}/honeycombs.json --height ${
|
||||||
toString height
|
toString height
|
||||||
} --width ${
|
} --width ${
|
||||||
toString width
|
toString width
|
||||||
|
|
|
@ -199,6 +199,13 @@ myAdditionaKeys
|
||||||
nonRemovableWorkspaces
|
nonRemovableWorkspaces
|
||||||
(withWorkspace autoXPConfig (windows . W.greedyView))
|
(withWorkspace autoXPConfig (windows . W.greedyView))
|
||||||
updateBoring)
|
updateBoring)
|
||||||
|
-- neo layout alternative
|
||||||
|
, ( "x"
|
||||||
|
, do removeEmptyWorkspaceAfterExcept
|
||||||
|
nonRemovableWorkspaces
|
||||||
|
(withWorkspace autoXPConfig (windows . W.greedyView))
|
||||||
|
updateBoring)
|
||||||
|
|
||||||
-- move focused window to workspace
|
-- move focused window to workspace
|
||||||
, ("S-<Space>", withWorkspace myXPConfig (windows . W.shift))
|
, ("S-<Space>", withWorkspace myXPConfig (windows . W.shift))
|
||||||
-- copy focused window to workspace
|
-- copy focused window to workspace
|
||||||
|
@ -217,6 +224,9 @@ myAdditionaKeys
|
||||||
, ( "r"
|
, ( "r"
|
||||||
, do renameWorkspace myXPConfig
|
, do renameWorkspace myXPConfig
|
||||||
sequence_ [addHiddenWorkspace ws | ws <- myWorkspaces])
|
sequence_ [addHiddenWorkspace ws | ws <- myWorkspaces])
|
||||||
|
, ( "<Tab>"
|
||||||
|
, do toggleWS' ["NSP"]
|
||||||
|
updateBoring)
|
||||||
, ( "<Esc>"
|
, ( "<Esc>"
|
||||||
, do toggleWS' ["NSP"]
|
, do toggleWS' ["NSP"]
|
||||||
updateBoring)
|
updateBoring)
|
||||||
|
@ -255,8 +265,6 @@ myAdditionaKeys
|
||||||
, ( "k"
|
, ( "k"
|
||||||
, do sendMessage FirstLayout
|
, do sendMessage FirstLayout
|
||||||
focusUp)
|
focusUp)
|
||||||
-- Swap the focused window and the master window
|
|
||||||
, ("<Tab>", windows W.swapMaster)
|
|
||||||
-- Swap the focused window with the next window
|
-- Swap the focused window with the next window
|
||||||
, ( "S-j"
|
, ( "S-j"
|
||||||
, do sendMessage FirstLayout
|
, do sendMessage FirstLayout
|
||||||
|
|
Loading…
Reference in a new issue