From 9b0e36c341bf04eef85338fff574eddbec52cfc2 Mon Sep 17 00:00:00 2001 From: fredrikr79 Date: Thu, 17 Oct 2024 22:59:27 +0200 Subject: [PATCH] obsidian et al --- configuration.nix | 8 ++++++++ home.nix | 2 +- home/config/xmonad/xmonad.hs | 14 ++++++++------ 3 files changed, 17 insertions(+), 7 deletions(-) diff --git a/configuration.nix b/configuration.nix index 3f48629..1392e91 100644 --- a/configuration.nix +++ b/configuration.nix @@ -199,8 +199,16 @@ in # javaPackages.openjfx17 libGL # gtk3 + zathura ]); + environment.etc."xdg/mimeapps.list" = { + text = '' + [Default Applications] + application/pdf=zathura.desktop + ''; + }; + programs.steam.enable = true; nixpkgs.config.allowUnfree = true; diff --git a/home.nix b/home.nix index 739ea88..d109e7a 100644 --- a/home.nix +++ b/home.nix @@ -14,7 +14,6 @@ # firefox scrot brightnessctl - zathura python3 sage quickemu @@ -24,6 +23,7 @@ tldr ripgrep xournalpp + obsidian ]; # Home Manager is pretty good at managing dotfiles. The primary way to manage diff --git a/home/config/xmonad/xmonad.hs b/home/config/xmonad/xmonad.hs index 604e248..0526218 100644 --- a/home/config/xmonad/xmonad.hs +++ b/home/config/xmonad/xmonad.hs @@ -26,6 +26,8 @@ import XMonad.StackSet import Graphics.X11.ExtraTypes.XF86 +import XMonad.Layout.Spacing + main :: IO () main = xmonad @@ -45,7 +47,7 @@ myConfig = let { modMask = modm , terminal = terminal , startupHook = myStartupHook - , layoutHook = myLayout + , layoutHook = spacingWithEdge 3 $ myLayout , logHook = historyHook } `additionalKeysP` @@ -123,9 +125,9 @@ myXmobarPP = def myStartupHook :: X () myStartupHook = do - spawnOnce "trayer --edge top --align right --SetDockType true \ - \--SetPartialStrut true --expand true --width 5 --transparent true \ - \--alpha 0 --tint 0x000000 --height 18 --distance 17" + spawnOnce "trayer --edge bottom --align right --SetDockType true \ + \--SetPartialStrut true --expand false --width 5 --transparent true \ + \--alpha 0 --tint 0x000000 --height 18 --distance 0" spawnOnce "feh --bg-fill --no-fehbg /usr/share/nix.png" @@ -133,7 +135,7 @@ myLayout = avoidStruts $ smartBorders tiled ||| smartBorders (Mirror tiled) ||| where tiled = Tall nmaster delta ratio nmaster = 1 -- Default number of windows in the master pane - ratio = 1/2 -- Default proportion of screen occupied by master pane - delta = 3/100 -- Percent of screen to increment by when resizing panes + ratio = 3/5 -- Default proportion of screen occupied by master pane + delta = 2/100 -- Percent of screen to increment by when resizing panes -- toggleStrutsKey XConfig {XMonad.modMask = modMask} = (modMask, xK_a)