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
|
||||
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
|
||||
''
|
||||
${pkgs.xorg.setxkbmap}/bin/setxkbmap -layout us
|
||||
${pkgs.numlockx}/bin/numlockx on
|
||||
${pkgs.xorg.xmodmap}/bin/xmodmap ${xmodmapConfig}
|
||||
'';
|
||||
|
||||
|
@ -226,6 +234,7 @@ in {
|
|||
fixXhost
|
||||
(library.desktopFile fixX { longName = "fix X"; })
|
||||
fixKeyboard
|
||||
neoKeyboard
|
||||
(library.desktopFile fixKeyboard { longName = "fix keyboard"; })
|
||||
];
|
||||
|
||||
|
|
|
@ -3,8 +3,8 @@ let
|
|||
|
||||
background-repo = pkgs.fetchgit {
|
||||
url = "https://git.ingolf-wagner.de/palo/image-generator-lib";
|
||||
rev = "99b5c9acaa9abbbc15ea035fdd44ac8d2f456a37";
|
||||
sha256 = "0z2q798gwdgxgqkr6nyg0hmlq1ndspzkqb8yv9kisgkv0d0jqqmv";
|
||||
rev = "8327c5aaffc1d2ca56decbefcdba5fb98028b870";
|
||||
sha256 = "12w2b8qs7ibijvyyw4zf7626ikg6sbc8lxkhb3fcvc6w4xfiiny0";
|
||||
};
|
||||
|
||||
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"
|
||||
nixResetRedshift = "${pkgs.redshift}/bin/redshift -x"
|
||||
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
|
||||
} --width ${
|
||||
toString width
|
||||
|
|
|
@ -199,6 +199,13 @@ myAdditionaKeys
|
|||
nonRemovableWorkspaces
|
||||
(withWorkspace autoXPConfig (windows . W.greedyView))
|
||||
updateBoring)
|
||||
-- neo layout alternative
|
||||
, ( "x"
|
||||
, do removeEmptyWorkspaceAfterExcept
|
||||
nonRemovableWorkspaces
|
||||
(withWorkspace autoXPConfig (windows . W.greedyView))
|
||||
updateBoring)
|
||||
|
||||
-- move focused window to workspace
|
||||
, ("S-<Space>", withWorkspace myXPConfig (windows . W.shift))
|
||||
-- copy focused window to workspace
|
||||
|
@ -217,6 +224,9 @@ myAdditionaKeys
|
|||
, ( "r"
|
||||
, do renameWorkspace myXPConfig
|
||||
sequence_ [addHiddenWorkspace ws | ws <- myWorkspaces])
|
||||
, ( "<Tab>"
|
||||
, do toggleWS' ["NSP"]
|
||||
updateBoring)
|
||||
, ( "<Esc>"
|
||||
, do toggleWS' ["NSP"]
|
||||
updateBoring)
|
||||
|
@ -255,8 +265,6 @@ myAdditionaKeys
|
|||
, ( "k"
|
||||
, do sendMessage FirstLayout
|
||||
focusUp)
|
||||
-- Swap the focused window and the master window
|
||||
, ("<Tab>", windows W.swapMaster)
|
||||
-- Swap the focused window with the next window
|
||||
, ( "S-j"
|
||||
, do sendMessage FirstLayout
|
||||
|
|
Loading…
Reference in a new issue