Skip to content

Instantly share code, notes, and snippets.

View txtyash's full-sized avatar
🍀
Aw man! [hums happily]

textYash txtyash

🍀
Aw man! [hums happily]
View GitHub Profile
@LSLeary
LSLeary / ThenRefocusAfter.hs
Last active August 5, 2022 12:53
Modify an action to integrate it with RefocusLast.
module ThenRefocusAfter where
import XMonad
import XMonad.Hooks.RefocusLast (refocusWhen)
import XMonad.Util.NamedScratchpad
(NamedScratchpads, query, namedScratchpadAction)
import qualified XMonad.StackSet as W
thenRefocusAfter :: Query Bool -> X a -> X a
p `thenRefocusAfter` act = do
@fdncred
fdncred / fzf_integration.md
Last active September 24, 2022 07:37
fzf_integration

FZF

Most of this is taken from fzf.fish. A really nice fzf integration with fish-shell.

There's quite a bit of usage of a fish command called commandline. It would be super helpful for porting things like this script if we had such a utility to modify the readline command line buffer.

General Setup

Set the default fzf options

let-env FZF_DEFAULT_OPTS = '--cycle --layout=reverse --border --height=90% --preview-window=wrap --marker="*"'
@zenlinux
zenlinux / xmonad.hs
Created February 28, 2016 11:49
Xmonad.hs works with lemonbar( xft+slant ) version from https://github.com/neeasade/bar/tree/slant-xft. The setup below works great but if I try to use "powerline symbols" like this "" # Powerline separators it wont work.
import XMonad hiding ( (|||) )
import Data.List -- clickable workspaces
import Graphics.X11.ExtraTypes.XF86
import System.IO (hPutStrLn)
--import XMonad.Actions.CycleWS -- nextWS, prevWS
import XMonad.Actions.FloatKeys
import XMonad.Actions.TagWindows
import XMonad.Actions.WindowGo
import XMonad.Actions.WithAll
import XMonad.Hooks.DynamicLog hiding (xmobar, xmobarPP, xmobarColor, sjanssenPP, byorgeyPP)