From cf9d12cc6e6b01dad6a16f56053fdb128dde7274 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Wed, 9 Jun 2021 20:20:37 +0200 Subject: Add basic hephaestus config --- gui/conf/xmonad.hs | 38 ++++++++++++++++++++++---------------- host/hephaestus.nix | 13 +++++++++++++ 2 files changed, 35 insertions(+), 16 deletions(-) create mode 100644 host/hephaestus.nix diff --git a/gui/conf/xmonad.hs b/gui/conf/xmonad.hs index 44b074b..4090245 100644 --- a/gui/conf/xmonad.hs +++ b/gui/conf/xmonad.hs @@ -150,6 +150,8 @@ hostSpecificKeybindings host = case host of , ("M-c p" , spawn "flameshot gui") ] "obelix" -> [ ("M-i g" , showNotification "GPU" "`nvidia-smi --query-gpu=name,temperature.gpu,utilization.gpu,utilization.memory --format=csv,noheader | awk -F',' '{print $1 \" running at\" $2 \"°C due to\" $3 \" load and\" $4 \" memory usage\"}'`") ] + "hephaestus" -> [ ("M-i g" , showNotification "GPU" + "`nvidia-smi --query-gpu=name,temperature.gpu,utilization.gpu,utilization.memory --format=csv,noheader | awk -F',' '{print $1 \" running at\" $2 \"°C due to\" $3 \" load and\" $4 \" memory usage\"}'`") ] _ -> [ ] commonKeybindings host = @@ -357,25 +359,29 @@ hideScreenBorder host (S.RationalRect x0 y0 w h) = S.RationalRect (x0-(bw/sw)) ( sh = screenHeightOn host screenWidthOn host = case host of - "obelix" -> 1920 - "majestix" -> 1920 - "asterix" -> 1366 - "athena" -> 2560 + "hephaestus" -> 1920 + "majestix" -> 1920 + "obelix" -> 1280 + "asterix" -> 1366 + "athena" -> 2560 screenHeightOn host = case host of - "obelix" -> 1200 - "majestix" -> 1080 - "asterix" -> 768 - "athena" -> 1440 + "hephaestus" -> 1200 + "majestix" -> 1080 + "obelix" -> 1024 + "asterix" -> 768 + "athena" -> 1440 borderWidthOn host = case host of - "obelix" -> 3 - "majestix" -> 3 - "asterix" -> 3 - "athena" -> 6 + "hephaestus" -> 3 + "majestix" -> 3 + "obelix" -> 3 + "asterix" -> 3 + "athena" -> 6 decoHeightOn host = case host of - "obelix" -> 20 - "majestix" -> 20 - "asterix" -> 20 - "athena" -> 30 + "hephaestus" -> 20 + "majestix" -> 20 + "obelix" -> 20 + "asterix" -> 20 + "athena" -> 30 ------------------------------------------------------------------------------- -- helper for layout name dependent actions diff --git a/host/hephaestus.nix b/host/hephaestus.nix new file mode 100644 index 0000000..2289c15 --- /dev/null +++ b/host/hephaestus.nix @@ -0,0 +1,13 @@ +{ pkgs, ... }: + +{ + imports = [ + ../gui/default.nix + ]; + + custom.hidpi = false; + + services.kdeconnect = { + enable = true; + }; +} -- cgit v1.2.3