This commit is contained in:
Leon Kowarschick 2020-04-04 15:12:33 +02:00
parent 1e10d466ed
commit 32fea09e19
14 changed files with 43 additions and 28 deletions

View file

@ -1,4 +1,4 @@
{
"optOut": false,
"lastUpdateCheck": 1585843736629
"lastUpdateCheck": 1585934695923
}

View file

@ -12,7 +12,7 @@ show_program_path=1
highlight_base_name=0
highlight_megabytes=1
highlight_threads=1
tree_view=0
tree_view=1
header_margin=1
detailed_cpu_time=0
cpu_count_from_zero=0

View file

@ -1,8 +1,9 @@
#include ./theme.conf
include ./onedark.conf
include ./theme.conf
#include ./onedark.conf
#shell tmux
background_opacity 0.95
#background_opacity 0.95
background_opacity 0.7
#font_family VictorMono Nerd Font Semibold
#font_family DejaVuSansMono Nerd

View file

@ -58,12 +58,12 @@ inactive-opacity-override = false;
# Do not let dimness adjust based on window opacity.
# inactive-dim-fixed = true;
# Blur background of transparent windows. Bad performance with X Render backend. GLX backend is preferred.
blur-background = false;
#blur-method = "gaussian";
#blur-strength = 20;
#blur-size = 20;
blur-background = true;
blur-method = "dual_kawase";
blur-strength = 10; # max 20
blur-size = 20;
# Blur background of opaque windows with transparent frames as well.
# blur-background-frame = true;
#blur-background-frame = true;
# Do not let blur radius adjust based on window opacity.
blur-background-fixed = false;
blur-background-exclude = [

View file

@ -7,10 +7,12 @@ dracula.draw.blood(c, {
}
})
config.load_autoconfig()
# config.load_autoconfig()
c.backend = 'webengine'
config.unbind("<Ctrl-tab>")
config.unbind("d")
config.bind("Q", "tab-close")
config.bind("<Ctrl-Tab>", "tab-next")
config.bind("<Ctrl-Shift-Tab>", "tab-prev")
config.bind("<Ctrl-L>", "set-cmd-text -s :open")

View file

@ -0,0 +1,8 @@
[FileDialog]
history=file:///home/leon
lastVisited=file:///home/leon
qtVersion=5.14.2
shortcuts=file:, file:///home/leon
sidebarWidth=98
treeViewHeader=@ByteArray(\0\0\0\xff\0\0\0\0\0\0\0\x1\0\0\0\0\0\0\0\0\x1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x1\xec\0\0\0\x4\x1\x1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x64\xff\xff\xff\xff\0\0\0\x81\0\0\0\0\0\0\0\x4\0\0\0\xff\0\0\0\x1\0\0\0\0\0\0\0?\0\0\0\x1\0\0\0\0\0\0\0@\0\0\0\x1\0\0\0\0\0\0\0n\0\0\0\x1\0\0\0\0\0\0\x3\xe8\0\xff\xff\xff\xff)
viewMode=Detail

View file

@ -6,7 +6,8 @@ font = Iosevka Nerd Font Medium 12
[colors]
# hard contrast: background = #1d2021
background = rgba(40, 40, 40, 0.95)
background = rgba(40, 40, 40, 0.5)
;background = rgba(40, 40, 40, 0.95)
# soft contrast: background = #32302f
foreground = #ebdbb2
foreground_bold = #ebdbb2

View file

@ -74,8 +74,8 @@ scriptFile script = "/home/leon/scripts/" ++ script
scratchpads :: [NamedScratchpad]
scratchpads =
[ NS "terminal" launchTerminal (className =? "scratchpad_term") (customFloating $ W.RationalRect 0 0.7 1 0.3)
, NS "ghci" launchGHCI (className =? "scratchpad_ghci") (customFloating $ W.RationalRect 0 0.7 1 0.3)
[ NS "terminal" launchTerminal (className =? "scratchpad_term") (customFloating $ W.RationalRect 0.66 0.7 0.34 0.3)
, NS "ghci" launchGHCI (className =? "scratchpad_ghci") (customFloating $ W.RationalRect 0.66 0.7 0.34 0.3)
, NS "spotify" "spotify" (appName =? "spotify") defaultFloating
, NS "discord" "discord" (appName =? "discord") defaultFloating
, NS "whatsapp" launchWhatsapp (("WhatsApp" `isSuffixOf`) <$> title) defaultFloating
@ -83,7 +83,7 @@ scratchpads =
]
where
launchTerminal = myTerminal ++ " --class scratchpad_term"
launchGHCI = myTerminal ++ " -e \"stack exec -- ghci\" --class scratchpad_ghci"
launchGHCI = myTerminal ++ " --class scratchpad_ghci stack exec -- ghci"
launchWhatsapp = "gtk-launch chrome-hnpfjngllnobngcgfapefoaidbinmjnm-Default.desktop"
@ -137,7 +137,7 @@ myLayout = avoidStruts . BoringWindows.boringWindows . smartBorders . toggleLayo
-- Loghook -------------------------------------- {{{
myLogHook :: X ()
myLogHook = fadeInactiveLogHook 0.95 -- opacity of unfocused windows
myLogHook = return () -- fadeInactiveLogHook 0.95 -- opacity of unfocused windows
-- }}}
@ -145,7 +145,7 @@ myLogHook = fadeInactiveLogHook 0.95 -- opacity of unfocused windows
myStartupHook :: X ()
myStartupHook = do
spawnOnce "picom --config ~/.config/picom.conf --no-fading-openclose"
spawnOnce "picom --config ~/.config/picom.conf --experimental-backends --no-fading-openclose"
spawnOnce "pasystray"
spawnOnce "nm-applet"
spawnOnce "clipmenud"

View file

@ -22,13 +22,10 @@ rofiCmd :: String
rofiCmd = "rofi"
data RofiConfig
= RofiConfig { theme :: String, caseInsensitive :: Bool } deriving (Show, Eq)
= RofiConfig { theme :: String, caseInsensitive :: Bool, fuzzy :: Bool } deriving (Show, Eq)
instance Default RofiConfig where
def = RofiConfig
{ theme = smallTheme
, caseInsensitive = True
}
def = RofiConfig { theme = smallTheme, caseInsensitive = True, fuzzy = True }
smallTheme :: String
smallTheme = "/home/leon/scripts/rofi-scripts/launcher_grid_style.rasi"
@ -37,8 +34,14 @@ bigTheme :: String
bigTheme = "/home/leon/scripts/rofi-scripts/launcher_grid_full_style.rasi"
toArgList :: RofiConfig -> [String]
toArgList RofiConfig {..} =
["-theme", theme, if caseInsensitive then "-i" else ""]
toArgList RofiConfig {..} = concat
[ ["-theme", theme]
, addIf caseInsensitive ["-i"]
, addIf fuzzy ["-matching", "fuzzy"]
]
where addIf check list = if check then list else []
-- |given an array of arguments, generate a string that would call rofi with the configuration and arguments
asCommand :: RofiConfig -> [String] -> String

Binary file not shown.

View file

@ -3,9 +3,9 @@
groups=$(ls "$HOME/scripts/bookmarks")
group_selection=$(echo -e "$groups" | rofi -i -p open -dmenu -no-custom -theme /home/leon/scripts/rofi-scripts/default_theme.rasi )
group_selection=$(echo -e "$groups" | rofi -i -matching fuzzy -p open -dmenu -no-custom -theme /home/leon/scripts/rofi-scripts/default_theme.rasi )
selection=$( cat "$HOME/scripts/bookmarks/$group_selection" | sed -r 's/^([^ ]*) .*$/\1/' | rofi -p open -dmenu -i -no-custom -theme /home/leon/scripts/rofi-scripts/default_theme.rasi )
selection=$( cat "$HOME/scripts/bookmarks/$group_selection" | sed -r 's/^([^ ]*) .*$/\1/' | rofi -p open -matching fuzzy -dmenu -i -no-custom -theme /home/leon/scripts/rofi-scripts/default_theme.rasi )
[ -z "$selection" ] && exit 1
cat "$HOME/scripts/bookmarks/$group_selection" | sed -n -r "s/^$selection (.*)$/\1/p" | bash

View file

@ -13,7 +13,7 @@ case "$selection" in
package=$( echo "$input" | sed 's/.*p=//g' )
[ "$package" = "$query" ] && package=""
selection=$( hoogle "$query" | rofi -p "select" -i -theme /home/leon/scripts/rofi-scripts/default_theme.rasi -dmenu | sed 's/^\(.*\) :: .*$/\1/' | sed 's/\ /./g' )
selection=$( hoogle "$query" | rofi -matching fuzzy -p "select" -i -theme /home/leon/scripts/rofi-scripts/default_theme.rasi -dmenu | sed 's/^\(.*\) :: .*$/\1/' | sed 's/\ /./g' )
result=$( echo "$selection" | xargs hoogle --info )
notify-send.sh --icon="dialog-information" --action="$(openDetailsAction "$query" "$package")" "Hoogle" "$result"
;;