From a4827a97fd4b3fdc96fd9240d07681d994bb6745 Mon Sep 17 00:00:00 2001 From: Gokul Kamat Date: Wed, 28 Jul 2021 20:19:28 +0530 Subject: [PATCH] Changing keybinding of random wallpaper in XMonad --- .xmonad/README.org | 2 +- .xmonad/xmonad.hs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.xmonad/README.org b/.xmonad/README.org index 1c9b5e2..6049bff 100644 --- a/.xmonad/README.org +++ b/.xmonad/README.org @@ -557,7 +557,7 @@ myKeys = -- Set wallpaper with 'feh'. Type 'SUPER+F1' to launch sxiv in the wallpapers directory. -- Then in sxiv, type 'C-x w' to set the wallpaper that you choose. , ("M-", spawn "sxiv -r -q -t -o ~/wallpapers/*") - , ("M-", spawn "/bin/ls ~/wallpapers | shuf -n 1 | xargs xwallpaper --stretch") + , ("M-", spawn "find ~/wallpapers/ -type f | shuf -n 1 | xargs xwallpaper --stretch") --, ("M-", spawn "feh --randomize --bg-fill ~/wallpapers/*") -- Controls for mocp music player (SUPER-u followed by a key) diff --git a/.xmonad/xmonad.hs b/.xmonad/xmonad.hs index 8b51901..ee012e5 100644 --- a/.xmonad/xmonad.hs +++ b/.xmonad/xmonad.hs @@ -447,7 +447,7 @@ myKeys = -- Set wallpaper with 'feh'. Type 'SUPER+F1' to launch sxiv in the wallpapers directory. -- Then in sxiv, type 'C-x w' to set the wallpaper that you choose. , ("M-", spawn "sxiv -r -q -t -o ~/wallpapers/*") - , ("M-", spawn "/bin/ls ~/wallpapers | shuf -n 1 | xargs xwallpaper --stretch") + , ("M-", spawn "find ~/wallpapers/ -type f | shuf -n 1 | xargs xwallpaper --stretch") --, ("M-", spawn "feh --randomize --bg-fill ~/wallpapers/*") -- Controls for mocp music player (SUPER-u followed by a key)