parent
a541d9f8ce
commit
c9f6de6459
3 changed files with 6 additions and 23 deletions
|
@ -193,16 +193,8 @@ 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}
|
||||
'';
|
||||
|
||||
|
@ -234,7 +226,6 @@ 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 = "8327c5aaffc1d2ca56decbefcdba5fb98028b870";
|
||||
sha256 = "12w2b8qs7ibijvyyw4zf7626ikg6sbc8lxkhb3fcvc6w4xfiiny0";
|
||||
rev = "99b5c9acaa9abbbc15ea035fdd44ac8d2f456a37";
|
||||
sha256 = "0z2q798gwdgxgqkr6nyg0hmlq1ndspzkqb8yv9kisgkv0d0jqqmv";
|
||||
};
|
||||
|
||||
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}/honeycombs.json --height ${
|
||||
nixSetBackground = "${pkgs.image-generator}/bin/image-generator --line-size 2.0 ${background-repo}/tictoctoe.json --height ${
|
||||
toString height
|
||||
} --width ${
|
||||
toString width
|
||||
|
|
|
@ -182,7 +182,7 @@ multiKeys [] = []
|
|||
multiKeys ((key, command):xs) = (createMultiKey key command) ++ multiKeys xs
|
||||
where
|
||||
createMultiKey keyString command =
|
||||
[("M4-" ++ keyString, command), ("M4-z " ++ keyString, command) ]
|
||||
[("M4-" ++ keyString, command), ("M4-z " ++ keyString, command)]
|
||||
|
||||
myAdditionaKeys :: [(String, X ())]
|
||||
myAdditionaKeys
|
||||
|
@ -199,13 +199,6 @@ 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
|
||||
|
@ -224,9 +217,6 @@ myAdditionaKeys
|
|||
, ( "r"
|
||||
, do renameWorkspace myXPConfig
|
||||
sequence_ [addHiddenWorkspace ws | ws <- myWorkspaces])
|
||||
, ( "<Tab>"
|
||||
, do toggleWS' ["NSP"]
|
||||
updateBoring)
|
||||
, ( "<Esc>"
|
||||
, do toggleWS' ["NSP"]
|
||||
updateBoring)
|
||||
|
@ -265,6 +255,8 @@ 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