aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Kummerlaender2018-09-15 14:58:03 +0200
committerAdrian Kummerlaender2018-09-15 14:58:03 +0200
commit4c221de75d4ef123808d77057081f029490a628f (patch)
tree5f1da390966e709ab213ac533cf4f912b94fc8e1
parent3bcdfb712b72b1f856549d96037e59ce50413aa6 (diff)
downloadnixos_home-4c221de75d4ef123808d77057081f029490a628f.tar
nixos_home-4c221de75d4ef123808d77057081f029490a628f.tar.gz
nixos_home-4c221de75d4ef123808d77057081f029490a628f.tar.bz2
nixos_home-4c221de75d4ef123808d77057081f029490a628f.tar.lz
nixos_home-4c221de75d4ef123808d77057081f029490a628f.tar.xz
nixos_home-4c221de75d4ef123808d77057081f029490a628f.tar.zst
nixos_home-4c221de75d4ef123808d77057081f029490a628f.zip
Add basic multihead setup for docked asterix
-rw-r--r--gui/autorandr.nix42
-rw-r--r--gui/conf/xmonad.hs4
-rw-r--r--host/asterix.nix1
3 files changed, 46 insertions, 1 deletions
diff --git a/gui/autorandr.nix b/gui/autorandr.nix
new file mode 100644
index 0000000..457417e
--- /dev/null
+++ b/gui/autorandr.nix
@@ -0,0 +1,42 @@
+{ pkgs, ... }:
+
+{
+ programs.autorandr = {
+ enable = true;
+
+ profiles = {
+ "mobile" = {
+ fingerprint = {
+ LVDS1 = "00ffffffffffff0030e4d3020000000000150103801c1078ea10a59658578f2820505400000001010101010101010101010101010101381d56d45000163030202500159c1000001b000000000000000000000000000000000000000000fe004c4720446973706c61790a2020000000fe004c503132355748322d544c423100f7";
+ };
+ config = {
+ LVDS1 = {
+ enable = true;
+ primary = true;
+ mode = "1366x768";
+ position = "0x0";
+ };
+ };
+ };
+ "docked" = {
+ fingerprint = {
+ LVDS1 = "00ffffffffffff0030e4d3020000000000150103801c1078ea10a59658578f2820505400000001010101010101010101010101010101381d56d45000163030202500159c1000001b000000000000000000000000000000000000000000fe004c4720446973706c61790a2020000000fe004c503132355748322d544c423100f7";
+ HDMI3 = "00ffffffffffff0010ac0d404a574841020f010380261f78eeee95a3544c99260f5054a54b00714f8180010101010101010101010101302a009851002a4030701300782d1100001e000000ff0054363131373531344148574a0a000000fc0044454c4c203139303546500a20000000fd00384c1e510e000a20202020202000e6";
+ };
+ config = {
+ LVDS1 = {
+ enable = true;
+ primary = true;
+ mode = "1366x768";
+ position = "0x256";
+ };
+ HDMI3 = {
+ enable = true;
+ mode = "1280x1024";
+ position = "1366x0";
+ };
+ };
+ };
+ };
+ };
+}
diff --git a/gui/conf/xmonad.hs b/gui/conf/xmonad.hs
index 84a2485..bcdd98c 100644
--- a/gui/conf/xmonad.hs
+++ b/gui/conf/xmonad.hs
@@ -27,6 +27,7 @@ import XMonad.Actions.CycleWS
import XMonad.Actions.WindowBringer
import XMonad.Actions.GroupNavigation
import XMonad.Actions.FloatKeys
+import XMonad.Actions.UpdatePointer
import Data.Maybe
import Control.Monad (when)
@@ -136,7 +137,7 @@ commonKeybindings host =
, ("M-m" , namedScratchpadAction (scratchpads host) "messaging") ] ++
-- workspace selection
[ (p ++ [k] , windows $ f i) | (i, k) <- zip Main.workspaces ['1' .. '9']
- , (p, f) <- [ ("M-" , S.greedyView)
+ , (p, f) <- [ ("M-" , S.view)
, ("M-S-" , S.shift) ] ] ++
[ ("M-s p" , toggleWS' ["NSP"])
-- workspace movement
@@ -188,6 +189,7 @@ customManageHook host = composeOne
customLogHook = do
historyHook
+ updatePointer (0.5, 0.5) (0, 0)
customizeBorderWhen (isFloat <&&> isNotFullscreen) "#aadb0f" 6
main = do
diff --git a/host/asterix.nix b/host/asterix.nix
index 7a74307..e53512c 100644
--- a/host/asterix.nix
+++ b/host/asterix.nix
@@ -3,6 +3,7 @@
{
imports = [
../gui/default.nix
+ ../gui/autorandr.nix
];
home.packages = let