mirror of
https://github.com/elkowar/dots-of-war.git
synced 2024-12-25 05:42:22 +00:00
asdf
This commit is contained in:
parent
1e10d466ed
commit
32fea09e19
14 changed files with 43 additions and 28 deletions
|
@ -1,4 +1,4 @@
|
||||||
{
|
{
|
||||||
"optOut": false,
|
"optOut": false,
|
||||||
"lastUpdateCheck": 1585843736629
|
"lastUpdateCheck": 1585934695923
|
||||||
}
|
}
|
|
@ -12,7 +12,7 @@ show_program_path=1
|
||||||
highlight_base_name=0
|
highlight_base_name=0
|
||||||
highlight_megabytes=1
|
highlight_megabytes=1
|
||||||
highlight_threads=1
|
highlight_threads=1
|
||||||
tree_view=0
|
tree_view=1
|
||||||
header_margin=1
|
header_margin=1
|
||||||
detailed_cpu_time=0
|
detailed_cpu_time=0
|
||||||
cpu_count_from_zero=0
|
cpu_count_from_zero=0
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
#include ./theme.conf
|
include ./theme.conf
|
||||||
include ./onedark.conf
|
#include ./onedark.conf
|
||||||
|
|
||||||
#shell tmux
|
#shell tmux
|
||||||
background_opacity 0.95
|
#background_opacity 0.95
|
||||||
|
background_opacity 0.7
|
||||||
|
|
||||||
#font_family VictorMono Nerd Font Semibold
|
#font_family VictorMono Nerd Font Semibold
|
||||||
#font_family DejaVuSansMono Nerd
|
#font_family DejaVuSansMono Nerd
|
||||||
|
|
|
@ -58,12 +58,12 @@ inactive-opacity-override = false;
|
||||||
# Do not let dimness adjust based on window opacity.
|
# Do not let dimness adjust based on window opacity.
|
||||||
# inactive-dim-fixed = true;
|
# inactive-dim-fixed = true;
|
||||||
# Blur background of transparent windows. Bad performance with X Render backend. GLX backend is preferred.
|
# Blur background of transparent windows. Bad performance with X Render backend. GLX backend is preferred.
|
||||||
blur-background = false;
|
blur-background = true;
|
||||||
#blur-method = "gaussian";
|
blur-method = "dual_kawase";
|
||||||
#blur-strength = 20;
|
blur-strength = 10; # max 20
|
||||||
#blur-size = 20;
|
blur-size = 20;
|
||||||
# Blur background of opaque windows with transparent frames as well.
|
# 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.
|
# Do not let blur radius adjust based on window opacity.
|
||||||
blur-background-fixed = false;
|
blur-background-fixed = false;
|
||||||
blur-background-exclude = [
|
blur-background-exclude = [
|
||||||
|
|
Binary file not shown.
|
@ -7,10 +7,12 @@ dracula.draw.blood(c, {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
config.load_autoconfig()
|
# config.load_autoconfig()
|
||||||
c.backend = 'webengine'
|
c.backend = 'webengine'
|
||||||
|
|
||||||
config.unbind("<Ctrl-tab>")
|
config.unbind("<Ctrl-tab>")
|
||||||
|
config.unbind("d")
|
||||||
|
config.bind("Q", "tab-close")
|
||||||
config.bind("<Ctrl-Tab>", "tab-next")
|
config.bind("<Ctrl-Tab>", "tab-next")
|
||||||
config.bind("<Ctrl-Shift-Tab>", "tab-prev")
|
config.bind("<Ctrl-Shift-Tab>", "tab-prev")
|
||||||
config.bind("<Ctrl-L>", "set-cmd-text -s :open")
|
config.bind("<Ctrl-L>", "set-cmd-text -s :open")
|
||||||
|
|
8
files/.config/qutebrowser/qsettings/QtProject.conf
Normal file
8
files/.config/qutebrowser/qsettings/QtProject.conf
Normal 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
|
|
@ -6,7 +6,8 @@ font = Iosevka Nerd Font Medium 12
|
||||||
|
|
||||||
[colors]
|
[colors]
|
||||||
# hard contrast: background = #1d2021
|
# 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
|
# soft contrast: background = #32302f
|
||||||
foreground = #ebdbb2
|
foreground = #ebdbb2
|
||||||
foreground_bold = #ebdbb2
|
foreground_bold = #ebdbb2
|
||||||
|
|
Binary file not shown.
|
@ -74,8 +74,8 @@ scriptFile script = "/home/leon/scripts/" ++ script
|
||||||
|
|
||||||
scratchpads :: [NamedScratchpad]
|
scratchpads :: [NamedScratchpad]
|
||||||
scratchpads =
|
scratchpads =
|
||||||
[ NS "terminal" launchTerminal (className =? "scratchpad_term") (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 0.7 1 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 "spotify" "spotify" (appName =? "spotify") defaultFloating
|
||||||
, NS "discord" "discord" (appName =? "discord") defaultFloating
|
, NS "discord" "discord" (appName =? "discord") defaultFloating
|
||||||
, NS "whatsapp" launchWhatsapp (("WhatsApp" `isSuffixOf`) <$> title) defaultFloating
|
, NS "whatsapp" launchWhatsapp (("WhatsApp" `isSuffixOf`) <$> title) defaultFloating
|
||||||
|
@ -83,7 +83,7 @@ scratchpads =
|
||||||
]
|
]
|
||||||
where
|
where
|
||||||
launchTerminal = myTerminal ++ " --class scratchpad_term"
|
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"
|
launchWhatsapp = "gtk-launch chrome-hnpfjngllnobngcgfapefoaidbinmjnm-Default.desktop"
|
||||||
|
|
||||||
|
|
||||||
|
@ -137,7 +137,7 @@ myLayout = avoidStruts . BoringWindows.boringWindows . smartBorders . toggleLayo
|
||||||
-- Loghook -------------------------------------- {{{
|
-- Loghook -------------------------------------- {{{
|
||||||
|
|
||||||
myLogHook :: X ()
|
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 :: X ()
|
||||||
myStartupHook = do
|
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 "pasystray"
|
||||||
spawnOnce "nm-applet"
|
spawnOnce "nm-applet"
|
||||||
spawnOnce "clipmenud"
|
spawnOnce "clipmenud"
|
||||||
|
|
|
@ -22,13 +22,10 @@ rofiCmd :: String
|
||||||
rofiCmd = "rofi"
|
rofiCmd = "rofi"
|
||||||
|
|
||||||
data RofiConfig
|
data RofiConfig
|
||||||
= RofiConfig { theme :: String, caseInsensitive :: Bool } deriving (Show, Eq)
|
= RofiConfig { theme :: String, caseInsensitive :: Bool, fuzzy :: Bool } deriving (Show, Eq)
|
||||||
|
|
||||||
instance Default RofiConfig where
|
instance Default RofiConfig where
|
||||||
def = RofiConfig
|
def = RofiConfig { theme = smallTheme, caseInsensitive = True, fuzzy = True }
|
||||||
{ theme = smallTheme
|
|
||||||
, caseInsensitive = True
|
|
||||||
}
|
|
||||||
|
|
||||||
smallTheme :: String
|
smallTheme :: String
|
||||||
smallTheme = "/home/leon/scripts/rofi-scripts/launcher_grid_style.rasi"
|
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"
|
bigTheme = "/home/leon/scripts/rofi-scripts/launcher_grid_full_style.rasi"
|
||||||
|
|
||||||
toArgList :: RofiConfig -> [String]
|
toArgList :: RofiConfig -> [String]
|
||||||
toArgList RofiConfig {..} =
|
toArgList RofiConfig {..} = concat
|
||||||
["-theme", theme, if caseInsensitive then "-i" else ""]
|
[ ["-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
|
-- |given an array of arguments, generate a string that would call rofi with the configuration and arguments
|
||||||
asCommand :: RofiConfig -> [String] -> String
|
asCommand :: RofiConfig -> [String] -> String
|
||||||
|
|
Binary file not shown.
|
@ -3,9 +3,9 @@
|
||||||
|
|
||||||
|
|
||||||
groups=$(ls "$HOME/scripts/bookmarks")
|
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
|
[ -z "$selection" ] && exit 1
|
||||||
|
|
||||||
cat "$HOME/scripts/bookmarks/$group_selection" | sed -n -r "s/^$selection (.*)$/\1/p" | bash
|
cat "$HOME/scripts/bookmarks/$group_selection" | sed -n -r "s/^$selection (.*)$/\1/p" | bash
|
||||||
|
|
|
@ -13,7 +13,7 @@ case "$selection" in
|
||||||
package=$( echo "$input" | sed 's/.*p=//g' )
|
package=$( echo "$input" | sed 's/.*p=//g' )
|
||||||
[ "$package" = "$query" ] && package=""
|
[ "$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 )
|
result=$( echo "$selection" | xargs hoogle --info )
|
||||||
notify-send.sh --icon="dialog-information" --action="$(openDetailsAction "$query" "$package")" "Hoogle" "$result"
|
notify-send.sh --icon="dialog-information" --action="$(openDetailsAction "$query" "$package")" "Hoogle" "$result"
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in a new issue