From d3e9585f588c615b3264a9564a6edf1344532c67 Mon Sep 17 00:00:00 2001 From: Ingolf Wagner Date: Tue, 29 Oct 2019 11:42:28 +0100 Subject: [PATCH] spacemacs: add copyq project --- system/desktop/home-manager/xmonad.nix | 1 + system/desktop/home-manager/xmonad/Main.hs | 4 ++++ system/desktop/home-manager/xmonad/NixCommands.hs | 1 + 3 files changed, 6 insertions(+) diff --git a/system/desktop/home-manager/xmonad.nix b/system/desktop/home-manager/xmonad.nix index 9a0230a..3897f42 100644 --- a/system/desktop/home-manager/xmonad.nix +++ b/system/desktop/home-manager/xmonad.nix @@ -14,6 +14,7 @@ let nixSetBackground = "${pkgs.haskellPackages.image-generator}/bin/image-generator --height ${toString height} --width ${toString width} --output /dev/shm/background.png && ${pkgs.feh}/bin/feh --bg-scale /dev/shm/background.png" nixStartAlbert = "${pkgs.albert}/bin/albert" nixStartCopyq = "${pkgs.copyq}/bin/copyq" + nixShowCopyq = "${pkgs.copyq}/bin/copyq show" nixStartTerminal = "${pkgs.rxvt_unicode_with-plugins}/bin/urxvtc" ''; in { diff --git a/system/desktop/home-manager/xmonad/Main.hs b/system/desktop/home-manager/xmonad/Main.hs index 9901c0d..49df781 100644 --- a/system/desktop/home-manager/xmonad/Main.hs +++ b/system/desktop/home-manager/xmonad/Main.hs @@ -137,6 +137,10 @@ projects = , projectDirectory = "~/dev/krops" , projectStartHook = Nothing } + , Project { projectName = "-copyq" + , projectDirectory = "~/" + , projectStartHook = Just $ do spawn nixShowCopyq + } ] -- ------------------------------------------------------------ diff --git a/system/desktop/home-manager/xmonad/NixCommands.hs b/system/desktop/home-manager/xmonad/NixCommands.hs index a4ae014..44692ed 100644 --- a/system/desktop/home-manager/xmonad/NixCommands.hs +++ b/system/desktop/home-manager/xmonad/NixCommands.hs @@ -12,4 +12,5 @@ nixSetCursorImage = "" nixSetBackground = "" nixStartAlbert = "" nixStartCopyq = "" +nixShowCopyq = "" nixStartTerminal = ""