diff --git a/files/.config/alacritty/alacritty.yml b/files/.config/alacritty/alacritty.yml index cea68ea..de6fa67 100644 --- a/files/.config/alacritty/alacritty.yml +++ b/files/.config/alacritty/alacritty.yml @@ -38,7 +38,7 @@ scrolling: dynamic_title: true cursor: - style: Beam # ▇ Block, _ Underline, | Beam + style: Block # ▇ Block, _ Underline, | Beam unfocused_hollow: true # Live config reload (changes require restart) live_config_reload: true diff --git a/files/.config/configstore/update-notifier-npm.json b/files/.config/configstore/update-notifier-npm.json index 8ba613c..6dc5ee0 100644 --- a/files/.config/configstore/update-notifier-npm.json +++ b/files/.config/configstore/update-notifier-npm.json @@ -1,4 +1,4 @@ { "optOut": false, - "lastUpdateCheck": 1585325052615 + "lastUpdateCheck": 1585491550576 } \ No newline at end of file diff --git a/files/.config/fish/config.fish b/files/.config/fish/config.fish index 4ceb600..13eadb8 100644 --- a/files/.config/fish/config.fish +++ b/files/.config/fish/config.fish @@ -5,6 +5,7 @@ alias ls=lsd abbr --add --global vim nvim abbr --add --global tsh trash abbr --add --global clear "clear && ls" +abbr --add --global cxmonad "nvim /home/leon/.xmonad/lib/Config.hs" [ (hostname) = "garnix" ] && alias rm='echo "rm is disabled. Please use trash instead."; false' diff --git a/files/.config/fish/fish_variables b/files/.config/fish/fish_variables index b897b88..f23c743 100644 --- a/files/.config/fish/fish_variables +++ b/files/.config/fish/fish_variables @@ -1,7 +1,6 @@ # This file contains fish universal variable definitions. # VERSION: 3.0 SETUVAR __fish_initialized:3100 -SETUVAR _fish_abbr_cxmonad:vim\x20\x7e/\x2exmonad/lib/Config\x2ehs SETUVAR fish_color_autosuggestion:555\x1ebrblack SETUVAR fish_color_cancel:\x2dr SETUVAR fish_color_command:00cff7 diff --git a/files/.config/qutebrowser/.vim/coc-settings.json b/files/.config/qutebrowser/.vim/coc-settings.json new file mode 100644 index 0000000..625247d --- /dev/null +++ b/files/.config/qutebrowser/.vim/coc-settings.json @@ -0,0 +1,3 @@ +{ + "python.linting.enabled": false +} \ No newline at end of file diff --git a/files/.config/qutebrowser/autoconfig.yml b/files/.config/qutebrowser/autoconfig.yml new file mode 100644 index 0000000..0e1f82e --- /dev/null +++ b/files/.config/qutebrowser/autoconfig.yml @@ -0,0 +1,16 @@ +# If a config.py file exists, this file is ignored unless it's explicitly loaded +# via config.load_autoconfig(). For more information, see: +# https://github.com/qutebrowser/qutebrowser/blob/master/doc/help/configuring.asciidoc#loading-autoconfigyml +# DO NOT edit this file by hand, qutebrowser will overwrite it. +# Instead, create a config.py - see :help for details. + +config_version: 2 +settings: + scrolling.smooth: + global: true + statusbar.hide: + global: false + statusbar.position: + global: bottom + tabs.show: + global: multiple diff --git a/files/.config/qutebrowser/bookmarks/urls b/files/.config/qutebrowser/bookmarks/urls new file mode 100644 index 0000000..e69de29 diff --git a/files/.config/qutebrowser/config.py b/files/.config/qutebrowser/config.py new file mode 100644 index 0000000..f7632dd --- /dev/null +++ b/files/.config/qutebrowser/config.py @@ -0,0 +1,30 @@ +import dracula.draw + +dracula.draw.blood(c, { + 'spacing': { + 'vertical': 4, + 'horizontal': 8 + } +}) + +config.load_autoconfig() +c.backend = 'webengine' + +config.unbind("") +config.bind("", "tab-next") +config.bind("", "tab-prev") +config.bind("", "set-cmd-text -s :open") + +config.bind(",y", "hint links spawn mpv {hint-url}") +config.bind(",Y", "spawn mpv {url}") + +c.tabs.show = "always" +c.tabs.show_switching_delay = 1000 + +c.statusbar.hide = False +c.fonts.statusbar = "default_size Iosevka" + +c.editor.command = ["alacritty", "-e", "vim", "{file}"] + + +c.statusbar.padding = {"bottom": 1, "left": 8, "right": 8, "top": 1} diff --git a/files/.config/qutebrowser/dracula b/files/.config/qutebrowser/dracula new file mode 160000 index 0000000..ba5bd65 --- /dev/null +++ b/files/.config/qutebrowser/dracula @@ -0,0 +1 @@ +Subproject commit ba5bd6589c4bb8ab35aaaaf7111906732f9764ef diff --git a/files/.config/qutebrowser/quickmarks b/files/.config/qutebrowser/quickmarks new file mode 100644 index 0000000..fb75af8 --- /dev/null +++ b/files/.config/qutebrowser/quickmarks @@ -0,0 +1,4 @@ +cheatsheet https://duckduckgo.com/?q=qutebrowser+cheatsheet&ia=cheatsheet&iax=1 +jira https://jira-student.it.hs-heilbronn.de/secure/RapidBoard.jspa?rapidView=323&projectKey=RUNDUM +confluence https://confluence-student.it.hs-heilbronn.de/display/AIB/AIB_LabSWP_2020_SS_StudEZ+Home +bitbucket https://bitbucket-student.it.hs-heilbronn.de/projects/LABAIB diff --git a/files/.surf/cookies.txt b/files/.surf/cookies.txt index 3790551..a48e7bb 100644 --- a/files/.surf/cookies.txt +++ b/files/.surf/cookies.txt @@ -1,5 +1,8 @@ -#HttpOnly_.google.de TRUE / TRUE 1618233527 ANID AHWqTUmxkxyFkyYgbf7RtsYZ-spR3k1IqBE3rAPOQnGeCg-soPIX1T7_2A6aOP_c None -.google.de TRUE / FALSE 2145916800 CONSENT WP.284bff.284ebc None -.google.de TRUE / TRUE 1587549603 1P_JAR 2020-3-23-10 None -#HttpOnly_.google.de TRUE / FALSE 1600768803 NID 200=oa53M0hgKvaT-DGFdGn2ou9Fy9-qzzRdz54Mhn8QkE9YVQ5SNyPvVfW5ZNGMeN0p56gsQcMGgJSfXnidMnJJWBfkT8xsXG26s9Ivb2jQ2iAh26tZXjwlaBtRlHHTPZ2p4MGvOjBLzvAg2_mc2lCeYvMen7diKVKV40WD9bZkLU8 None -#HttpOnly_.google.de TRUE /verify TRUE 1600768803 SNID AI94zCAK4GXnNFvKws37D6OgUXnTF-A1X8UKdae44aguNeZnx9VsUydULInLayVov1aiZmtkh2Pf1W6AHrN5-w Lax +.google.de TRUE / FALSE 2145916800 CONSENT WP.284bff.284ebc.28523f None +#HttpOnly_.google.de TRUE / FALSE 1601308700 NID 201=2f4m3yF905yxXJMWdugEIcX-6Xz5lfBM9inDXDUn9x-pRGmC8Wj_LH2-aJ2z-MC5iqSIygHso2ro_MXuRw4If4hfe0XJtITPp2oXXYEP8kd5_oXKoCVharylNWN-9VDW4NIVOhTiaBLJJkHYigbuvgmxUFaDWyoqJ_EYut711fE None +#HttpOnly_.google.de TRUE /verify TRUE 1601308700 SNID AI94zCAK1A3JzGA0bmpDwBJjpW02d6NyKM7uPz5BX1zV8zldCUJ9nZsltUXn9Qfh3X3RKTiq1qWUwe3C-H5IhQ Lax +#HttpOnly_.google.de TRUE / TRUE 1618233527 ANID AHWqTUkyeLYe1zHGOTFnTI8bLsAhCDbNKjZjNS7xmbSUo1S8xfEHWo04CbiulJlu None +#HttpOnly_.google.de TRUE /complete/search FALSE 1601049580 CGIC Ij90ZXh0L2h0bWwsYXBwbGljYXRpb24veGh0bWwreG1sLGFwcGxpY2F0aW9uL3htbDtxPTAuOSwqLyo7cT0wLjg None +#HttpOnly_.google.de TRUE /search FALSE 1601049580 CGIC Ij90ZXh0L2h0bWwsYXBwbGljYXRpb24veGh0bWwreG1sLGFwcGxpY2F0aW9uL3htbDtxPTAuOSwqLyo7cT0wLjg None +.google.de TRUE / FALSE 1588089581 OGPC 19016257-1: None +.google.de TRUE / TRUE 1588089672 1P_JAR 2020-03-29-16 None diff --git a/files/.xmonad/lib/Config.hs b/files/.xmonad/lib/Config.hs index a04f90b..e7d00ff 100644 --- a/files/.xmonad/lib/Config.hs +++ b/files/.xmonad/lib/Config.hs @@ -24,6 +24,7 @@ import XMonad.Layout.BinarySpacePartition import XMonad.Hooks.DynamicLog import XMonad.Hooks.FadeInactive import XMonad.Hooks.ManageDocks +import qualified XMonad.Hooks.ManageHelpers as ManageHelpers import qualified XMonad.Hooks.EwmhDesktops as Ewmh import XMonad.Hooks.SetWMName (setWMName) import XMonad.Layout.Gaps @@ -33,6 +34,7 @@ import XMonad.Layout.ResizableTile -- for resizeable tall layout import XMonad.Layout.MouseResizableTile import XMonad.Layout.Spacing (spacingRaw, Border(..), toggleWindowSpacingEnabled) import XMonad.Layout.Renamed (renamed, Rename(Replace)) +import XMonad.Layout.LayoutHints import XMonad.Layout.ToggleLayouts import XMonad.Layout.ZoomRow import XMonad.Layout.BorderResize @@ -54,7 +56,8 @@ import XMonad.Actions.Commands myModMask = mod4Mask myLauncher = Rofi.asCommand (def { Rofi.theme = Rofi.bigTheme }) ["-show run"] myTerminal = "kitty --single-instance" -- try alacritty -myBrowser = "google-chrome-stable" +myBrowser = "qutebrowser" +--myBrowser = "google-chrome-stable" {-| adds the scripts-directory path to the filename of a script |-} scriptFile :: String -> String @@ -98,7 +101,7 @@ aqua = "#8ec07c" -- Layout ---------------------------------------- {{{ --layoutHints . -myLayout = BoringWindows.boringWindows . minimize . avoidStruts . smartBorders . toggleLayouts Full $ layouts +myLayout = avoidStruts . BoringWindows.boringWindows . minimize . smartBorders . toggleLayouts Full . layoutHintsToCenter $ layouts where layouts =((rename "Tall" $ onlyGaps $ mouseResizableTile {draggerType = dragger}) -- ResizableTall 1 (3/100) (1/2) [] ||| (rename "Horizon" $ onlyGaps $ mouseResizableTileMirrored {draggerType = dragger}) -- Mirror $ ResizableTall 1 (3/100) (3/4) [] @@ -156,14 +159,16 @@ myKeys = [ ("M-C-k", sendMessage MirrorExpand >> sendMessage ShrinkSlave ) , ("M-f", toggleFullscreen) , ("M-S-C-c", kill1) - , ("M-S-C-a", windows copyToAll) -- windows: Modify the current window list with a pure function, and refresh - , ("M-C-c", killAllOtherCopies) , ("M-S-C-q", io $ exitSuccess) -- Binary space partitioning , ("M-", sendMessage $ Swap) , ("M-M1-", sendMessage $ Rotate) + -- Media + , ("", spawn "amixer sset Master 5%+") + , ("", spawn "amixer sset Master 5%-") + -- programs , ("M-p", spawn myLauncher) , ("M-b", spawn myBrowser) @@ -241,9 +246,11 @@ myKeys = [ ("M-C-k", sendMessage MirrorExpand >> sendMessage ShrinkSlave ) specialCommands :: [(String, X ())] specialCommands = - [ ("screenshot", spawn $ scriptFile "screenshot.sh") - , ("toggleSpacing", toggleWindowSpacingEnabled) - , ("toggleGaps", sendMessage ToggleGaps) + [ ("screenshot", spawn $ scriptFile "screenshot.sh") + , ("toggleSpacing", toggleWindowSpacingEnabled) + , ("toggleGaps", sendMessage ToggleGaps) + , ("Copy to all workspaces", windows copyToAll) -- windows: Modify the current window list with a pure function, and refresh + , ("Kill all other copies", killAllOtherCopies) ] describedSubmap :: String -> [((KeyMask, KeySym), String, X ())] -> X () @@ -258,8 +265,9 @@ myKeys = [ ("M-C-k", sendMessage MirrorExpand >> sendMessage ShrinkSlave ) myManageHook :: Query (Data.Monoid.Endo WindowSet) myManageHook = composeAll - [ resource =? "Dialog" --> doFloat - , appName =? "pavucontrol" --> doFloat + [ resource =? "Dialog" --> ManageHelpers.doCenterFloat + , appName =? "pavucontrol" --> ManageHelpers.doCenterFloat + , className =? "mpv" --> ManageHelpers.doRectFloat (W.RationalRect 0.9 0.9 0.1 0.1) -- , isFullscreen --> doF W.focusDown <+> doFullFloat , manageDocks , namedScratchpadManageHook scratchpads @@ -290,7 +298,7 @@ myConfig dbus = desktopConfig , startupHook = myStartupHook <+> startupHook def <+> return () >> checkKeymap (myConfig dbus ) myKeys , manageHook = myManageHook <+> manageHook def -- , handleEventHook = minimizeEventHook <+> handleEventHook def -- fullscreenEventHook - --, handleEventHook = handleEventHook def <+> Ewmh.fullscreenEventHook + --, handleEventHook = handleEventHook def <+> hintsEventHook -- <+> Ewmh.fullscreenEventHook , focusedBorderColor = aqua , normalBorderColor = "#282828" } `removeKeysP` removedKeys `additionalKeysP` myKeys diff --git a/files/.xmonad/xmonad-x86_64-linux b/files/.xmonad/xmonad-x86_64-linux index 19bce2d..14fea17 100755 Binary files a/files/.xmonad/xmonad-x86_64-linux and b/files/.xmonad/xmonad-x86_64-linux differ diff --git a/files/scripts/autocompile/plantuml.sh b/files/scripts/autocompile/plantuml.sh new file mode 100755 index 0000000..91cfd49 --- /dev/null +++ b/files/scripts/autocompile/plantuml.sh @@ -0,0 +1,12 @@ +#!/bin/bash +pngfile=$(echo "$1" | sed 's/\.plantuml$/.png/g') + +function finish { + rm "$pngfile" +} + +trap finish EXIT + +plantuml -tpng "$1" +feh --auto-zoom --auto-reload --fullscreen "$pngfile" & +echo "$1" | entr plantuml -tpng /_