This commit is contained in:
Leon Kowarschick 2020-05-21 14:11:23 +02:00
parent b0e1ffdee5
commit 3745fa77f2
6 changed files with 30 additions and 7 deletions

View file

@ -310,9 +310,9 @@ font:
size: 12 size: 12
normal: normal:
#family: JetBrainsMono Nerd Font #family: JetBrainsMono Nerd Font
family: Iosevka Term #family: Iosevka Term
#family: cozette #family: cozette
#family: Terminus (TTF) family: Terminus (TTF)
#family: cherry #family: cherry
#family: lucy tewi2a #family: lucy tewi2a
#family: Scientifica #family: Scientifica

View file

@ -1,4 +1,4 @@
{ {
"optOut": false, "optOut": false,
"lastUpdateCheck": 1589717680806 "lastUpdateCheck": 1589975089407
} }

View file

@ -33,14 +33,13 @@ import XMonad.Hooks.SetWMName (setWMName)
import XMonad.Layout.BinarySpacePartition import XMonad.Layout.BinarySpacePartition
import XMonad.Layout.BorderResize import XMonad.Layout.BorderResize
import XMonad.Layout.Gaps import XMonad.Layout.Gaps
import XMonad.Layout.HintedGrid
import XMonad.Layout.IndependentScreens import XMonad.Layout.IndependentScreens
import XMonad.Layout.LayoutCombinators ((|||)) import XMonad.Layout.LayoutCombinators ((|||))
import XMonad.Layout.LayoutHints import XMonad.Layout.LayoutHints
import XMonad.Layout.MouseResizableTile import XMonad.Layout.MouseResizableTile
import XMonad.Layout.NoBorders import XMonad.Layout.NoBorders
import XMonad.Layout.Renamed (renamed, Rename(Replace)) import XMonad.Layout.Renamed (renamed, Rename(Replace))
import qualified XMonad.Layout.MultiColumns as MultiCol --import qualified XMonad.Layout.MultiColumns as MultiCol
import XMonad.Layout.ResizableTile import XMonad.Layout.ResizableTile
import XMonad.Layout.Simplest import XMonad.Layout.Simplest
import XMonad.Layout.Spacing (spacingRaw, Border(..), toggleWindowSpacingEnabled) import XMonad.Layout.Spacing (spacingRaw, Border(..), toggleWindowSpacingEnabled)
@ -52,7 +51,6 @@ import XMonad.Layout.ThreeColumns
import XMonad.Util.EZConfig ( additionalKeysP import XMonad.Util.EZConfig ( additionalKeysP
, removeKeysP , removeKeysP
, checkKeymap , checkKeymap
, additionalMouseBindings
) )
import XMonad.Util.NamedScratchpad import XMonad.Util.NamedScratchpad
import XMonad.Util.Run import XMonad.Util.Run
@ -277,7 +275,7 @@ myKeys =
-- programs -- programs
, ("M-p", spawn myLauncher) , ("M-p", spawn myLauncher)
, ("M-S-p", Rofi.showCombi (def { Rofi.theme = Rofi.bigTheme }) [ "drun", "window", "ssh" ]) , ("M-S-p", Rofi.showCombi (def { Rofi.theme = Rofi.bigTheme }) [ "drun", "window", "ssh" ])
, ("M-S-e", Rofi.showNormal (def { Rofi.theme = Rofi.bigTheme }) "emoji" ) , ("M-S-e", Rofi.showNormal (def { Rofi.theme = Rofi.bigTheme, Rofi.fuzzy = False }) "emoji")
--, ("M-s", spawn $ scriptFile "rofi-search.sh") --, ("M-s", spawn $ scriptFile "rofi-search.sh")
, ("M-S-o", spawn $ scriptFile "rofi-open.sh") , ("M-S-o", spawn $ scriptFile "rofi-open.sh")
, ("M-n", scratchpadSubmap) , ("M-n", scratchpadSubmap)

View file

@ -17,6 +17,9 @@
# #
# resolver: ./custom-snapshot.yaml # resolver: ./custom-snapshot.yaml
# resolver: https://example.com/snapshots/2018-01-01.yaml # resolver: https://example.com/snapshots/2018-01-01.yaml
#ghc-build: nopie
resolver: lts-15.3 resolver: lts-15.3
# User packages to be built. # User packages to be built.

22
files/scripts/fzfselect.sh Executable file
View file

@ -0,0 +1,22 @@
#!/bin/bash
menu_name="$1"
if [ -n "$menu_name" ]; then
last_selection=$(cat "/tmp/fzfopen_$menu_name" 2>/dev/null)
fi
options_list=$(</dev/stdin)
option_count=$((2+$(echo -e "$options_list" | wc -l)))
options=$(echo -e "$options_list" | awk '{print $1}')
if [ -n "$last_selection" ]; then
options="$last_selection\n$(echo -e "$options" | grep -v "$last_selection")"
fi
selected=$(echo -e "$options" | fzf --history=/tmp/conf-open-history --cycle --reverse --height "$option_count")
[[ -z "$selected" ]] && exit 1
[[ -n "$menu_name" ]] && echo "$selected" > "/tmp/fzfopen_$menu_name"
selected_value=$(echo -e "$options_list" | grep "$selected" | sed -r 's/^\w*\s+(.*)$/\1/g')
echo "$selected_value"