This commit is contained in:
Leon Kowarschick 2020-03-31 18:38:27 +02:00
parent 1bd8946324
commit cd830f739a
9 changed files with 60 additions and 12 deletions

View file

@ -1,4 +1,4 @@
{ {
"optOut": false, "optOut": false,
"lastUpdateCheck": 1585491550576 "lastUpdateCheck": 1585653300086
} }

View file

@ -24,19 +24,43 @@ hide_window_decorations yes
placement_strategy top-left placement_strategy top-left
map ctrl+shift+plus change_font_size all +2.0
map ctrl+shift+left neighboring_window left
map ctrl+shift+down neighboring_window down
map ctrl+shift+right neighboring_window right
map ctrl+shift+up neighboring_window up
map kitty_mod+t new_tab_with_cmd
map kitty_mod+backspace new_os_window_with_cwd
map kitty_mod+enter new_window_with_cwd
clipboard_control write-clipboard write-primary read-primary read-clipboard clipboard_control write-clipboard write-primary read-primary read-clipboard
dynamic_background_opacity yes dynamic_background_opacity yes
allow_remote_control yes allow_remote_control yes
sync_to_monitor yes sync_to_monitor yes
active_tab_background #6272a4
active_tab_foreground #f8f8f2
inactive_tab_background #44475a
inactive_tab_foreground #f8f8f2
# Keymaps {{{
# Windows
map kitty_mod+enter new_window_with_cwd
map ctrl+shift+left neighboring_window left
map ctrl+shift+down neighboring_window down
map ctrl+shift+right neighboring_window right
map ctrl+shift+up neighboring_window up
# tabs
map kitty_mod+t new_tab
#map kitty_mod+t new_tab_with_cmd
map ctrl+shift+l next_tab
map ctrl+shift+h previous_tab
# new os window
map kitty_mod+backspace new_os_window_with_cwd
# Other
map ctrl+shift+plus change_font_size all +2.0
map ctrl+shift+alt+h show_scrollback
# --type=overlay
# --stdin-source=@screen_scrollback
# https://sw.kovidgoyal.net/kitty/launch.html
map ctrl+shift+space launch --stdin-source=@screen --stdin-add-formatting --type=window /home/leon/scripts/autocompleteWords.sh @active-kitty-window-id
# }}}

View file

@ -0,0 +1 @@
https://github.com/vizs/declutter-home GitHub - vizs/declutter-home: declutter your home directory!

View file

@ -18,6 +18,9 @@ config.bind("<Ctrl-L>", "set-cmd-text -s :open")
config.bind(",y", "hint links spawn mpv {hint-url}") config.bind(",y", "hint links spawn mpv {hint-url}")
config.bind(",Y", "spawn mpv {url}") config.bind(",Y", "spawn mpv {url}")
config.bind("<Alt-j>", "scroll-px 0 40")
config.bind("<Alt-k>", "scroll-px 0 -40")
c.tabs.show = "multiple" c.tabs.show = "multiple"
c.tabs.show_switching_delay = 1000 c.tabs.show_switching_delay = 1000

View file

@ -43,6 +43,7 @@ import XMonad.Util.NamedScratchpad
import XMonad.Util.Run import XMonad.Util.Run
import XMonad.Util.SpawnOnce (spawnOnce) import XMonad.Util.SpawnOnce (spawnOnce)
import qualified XMonad.Actions.Navigation2D as Nav2d import qualified XMonad.Actions.Navigation2D as Nav2d
import qualified XMonad.Util.XSelection as XSel
-- Minimize stuff -- Minimize stuff
import XMonad.Layout.Minimize import XMonad.Layout.Minimize
import qualified XMonad.Layout.BoringWindows as BoringWindows import qualified XMonad.Layout.BoringWindows as BoringWindows
@ -55,7 +56,7 @@ import XMonad.Actions.Commands
myModMask = mod4Mask myModMask = mod4Mask
myLauncher = Rofi.asCommand (def { Rofi.theme = Rofi.bigTheme }) ["-show run"] myLauncher = Rofi.asCommand (def { Rofi.theme = Rofi.bigTheme }) ["-show run"]
myTerminal = "kitty --single-instance" -- try alacritty myTerminal = "kitty --single-instance"
myBrowser = "qutebrowser" myBrowser = "qutebrowser"
--myBrowser = "google-chrome-stable" --myBrowser = "google-chrome-stable"
@ -180,6 +181,8 @@ myKeys = [ ("M-C-k", sendMessage MirrorExpand >> sendMessage ShrinkSlave )
, ("M-m", mediaSubmap ) , ("M-m", mediaSubmap )
, ("M-e", Rofi.promptRunCommand def specialCommands) , ("M-e", Rofi.promptRunCommand def specialCommands)
, ("M-C-e", Rofi.promptRunCommand def =<< defaultCommands ) , ("M-C-e", Rofi.promptRunCommand def =<< defaultCommands )
, ("M-o", Rofi.promptRunCommand def withSelectionCommands)
-- Minimization -- Minimization
, ("M-k", BoringWindows.focusUp) , ("M-k", BoringWindows.focusUp)
@ -243,6 +246,13 @@ myKeys = [ ("M-C-k", sendMessage MirrorExpand >> sendMessage ShrinkSlave )
, ((myModMask, xK_j), "<M-j> decrease volume", spawn "amixer sset Master 5%-") , ((myModMask, xK_j), "<M-j> decrease volume", spawn "amixer sset Master 5%-")
] ]
withSelectionCommands :: [(String, X ())]
withSelectionCommands =
[ ("Google", XSel.transformPromptSelection ("https://google.com/search?q=" ++) "qutebrowser")
, ("Hoogle", XSel.transformPromptSelection ("https://hoogle.haskell.org/?hoogle=" ++) "qutebrowser")
, ("Translate", XSel.transformPromptSelection ("https://translate.google.com/#view=home&op=translate&sl=auto&tl=en&text=" ++) "qutebrowser")
]
specialCommands :: [(String, X ())] specialCommands :: [(String, X ())]
specialCommands = specialCommands =
@ -254,6 +264,7 @@ myKeys = [ ("M-C-k", sendMessage MirrorExpand >> sendMessage ShrinkSlave )
, ("Kill all other copies", killAllOtherCopies) , ("Kill all other copies", killAllOtherCopies)
] ]
describedSubmap :: String -> [((KeyMask, KeySym), String, X ())] -> X () describedSubmap :: String -> [((KeyMask, KeySym), String, X ())] -> X ()
describedSubmap submapTitle mappings = promptDzenWhileRunning submapTitle descriptions mySubmap describedSubmap submapTitle mappings = promptDzenWhileRunning submapTitle descriptions mySubmap
where where

Binary file not shown.

View file

@ -0,0 +1,5 @@
#!/bin/bash
while read -r input; do
echo $input | sed 's/\s\+/\n/g' | sed -n '/.\{5\}.\+/p'
done | fzf --height 10 | tr -d '\n' | kitty @send-text --stdin -m "id:$1"

4
files/scripts/bazecor.sh Executable file
View file

@ -0,0 +1,4 @@
#!/bin/bash
sudo chmod 666 /dev/ttyACM0
~/Downloads/Bazecor-0.2.0.AppImage