diff --git a/.config/fish/config.fish b/.config/fish/config.fish deleted file mode 100644 index 65c3185..0000000 --- a/.config/fish/config.fish +++ /dev/null @@ -1,48 +0,0 @@ -if status is-interactive - # Commands to run in interactive sessions can go here -end - -function fish_prompt - set ppwd (pwd) - echo -e "\033[0;34m$USER \033[0;33m$ppwd \033[0;31mλ\033[0m " -end - -set fish_greeting - -alias ls="ls --color=auto" -alias ll="ls -lah" - -alias grep="grep --color=auto" -alias egrep="egrep --color=auto" -alias fgrep="fgrep --color=auto" - -alias wget="wget -c" - -alias pacman="pacman --color=auto" - -alias emacs="emacs -nw" - -function gc - git add -A - git commit -S -m $argv -end - -alias gp="git push" -alias gl="git pull" -alias gcl="git clone" - -function gh_gcl - gcl https://github.com/$argv -end - -alias rr="curl -s -L http://bit.ly/10hA8iC | bash" - -function weather - curl wttr.in/ -end - -set -x ANDROID_SDK_ROOT $HOME/Android/Sdk -set -x PATH $PATH $ANDROID_SDK_ROOT/tools/bin -set -x PATH $PATH $ANDROID_SDK_ROOT/platform-tools -set -x PATH $PATH $ANDROID_SDK_ROOT/emulator -set -x PATH $PATH $HOME/.pub-cache/bin diff --git a/.config/fish/fish_variables b/.config/fish/fish_variables deleted file mode 100644 index 1b4481a..0000000 --- a/.config/fish/fish_variables +++ /dev/null @@ -1,30 +0,0 @@ -# This file contains fish universal variable definitions. -# VERSION: 3.0 -SETUVAR __fish_initialized:3100 -SETUVAR fish_color_autosuggestion:555\x1ebrblack -SETUVAR fish_color_cancel:\x2dr -SETUVAR fish_color_command:005fd7 -SETUVAR fish_color_comment:990000 -SETUVAR fish_color_cwd:green -SETUVAR fish_color_cwd_root:red -SETUVAR fish_color_end:009900 -SETUVAR fish_color_error:ff0000 -SETUVAR fish_color_escape:00a6b2 -SETUVAR fish_color_history_current:\x2d\x2dbold -SETUVAR fish_color_host:normal -SETUVAR fish_color_host_remote:yellow -SETUVAR fish_color_normal:normal -SETUVAR fish_color_operator:00a6b2 -SETUVAR fish_color_param:00afff -SETUVAR fish_color_quote:999900 -SETUVAR fish_color_redirection:00afff -SETUVAR fish_color_search_match:bryellow\x1e\x2d\x2dbackground\x3dbrblack -SETUVAR fish_color_selection:white\x1e\x2d\x2dbold\x1e\x2d\x2dbackground\x3dbrblack -SETUVAR fish_color_status:red -SETUVAR fish_color_user:brgreen -SETUVAR fish_color_valid_path:\x2d\x2dunderline -SETUVAR fish_key_bindings:fish_default_key_bindings -SETUVAR fish_pager_color_completion:\x1d -SETUVAR fish_pager_color_description:B3A06D\x1eyellow -SETUVAR fish_pager_color_prefix:normal\x1e\x2d\x2dbold\x1e\x2d\x2dunderline -SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan diff --git a/.config/kitty/kitty.conf b/.config/kitty/kitty.conf deleted file mode 100644 index 0bbe409..0000000 --- a/.config/kitty/kitty.conf +++ /dev/null @@ -1,31 +0,0 @@ -font_size 14 -cursor_shape underline - -window_margin_width 5 - -background #323232 -foreground #ffffff -cursor #d6d6d6 -selection_background #5b5b5b -selection_foreground #323232 -color0 #353535 -color8 #535353 -color1 #d25252 -color9 #f00c0c -color2 #a4c161 -color10 #c1df74 -color3 #ffc56d -color11 #e1e48a -color4 #6c99ba -color12 #8ab6d9 -color5 #d096d9 -color13 #efb5f7 -color6 #bdd6ff -color14 #dbf4ff -color7 #ededec -color15 #ffffff -active_tab_foreground #ffffff -active_tab_background #535353 -inactive_tab_foreground #ffffff -inactive_tab_background #353535 - diff --git a/.config/picom/picom.conf b/.config/picom/picom.conf deleted file mode 100644 index a997388..0000000 --- a/.config/picom/picom.conf +++ /dev/null @@ -1,45 +0,0 @@ -# ~/.config/picom/picom.conf -# only works with https://github.com/jonaburg/picom - -transition-length = 200; -transition-pow-x = 0.05; -transition-pow-y = 0.05; -transition-pow-w = 0.1; -transition-pow-h = 0.1; -size-transition = true; - -shadow = false; - -fading = true; -fade-in-step = 0.08; -fade-out-step = 0.08; - -active-opacity = 1.0; -inactive-opacity = 0.8; - -active-opacity-override = false; -inactive-opacity-override = false; - -popup_menu = { opacity = 0.8; }; -dropdown_menu = { opacity = 0.8; }; - -corner-radius = 15; -round-borders = 1; -round-borders-exclude = [ "window_type = 'dock'" ]; -rounded-corners-exclude = [ "window_type = 'dock'" ]; - -xperimental-backends = true; -backend = "glx"; - -vsync = true; - -use-damage = false; - -mark-wmwin-focused = true; -mark-ovredir-focused = false; - -detect-rounded-corners = true; - -# log-level = "debug" -log-level = "info"; - diff --git a/.config/xmobar/xmobar-laptop.config b/.config/xmobar/xmobar-laptop.config deleted file mode 100644 index 33b90e9..0000000 --- a/.config/xmobar/xmobar-laptop.config +++ /dev/null @@ -1,41 +0,0 @@ -Config { font = "xft:monospace" - , additionalFonts = [] - , borderColor = "black" - , border = TopB - , bgColor = "#303030" - , fgColor = "grey" - , alpha = 255 - , position = Static { xpos = 0 , ypos = 0, width = 1920, height = 30 } - , textOffset = -1 - , iconOffset = -1 - , lowerOnStart = True - , pickBroadest = False - , persistent = False - , hideOnStart = False - , iconRoot = "." - , allDesktops = True - , overrideRedirect = True - , commands = [ - Run Cpu ["-L","3","-H","50"] 5 - , Run Memory ["-t","Mem: %"] 10 - , Run Swap [] 10 - , Run Com "uname" ["-s","-r"] "" 36000 - , Run Weather "EDDN" [ "-t",": °C" ] 3600 - , Run Date "%H:%M - %d.%m.%Y" "date" 10 - , Run DynNetwork [ "-S","True","-t", ": , " ] 10 - , Run Volume "default" "Master" [] 2 - , Run Battery [ - "-t", ": % - ", - "--", - --"-c", "charge_full", - "-O", "AC", - "-o", "Bat", - "-h", "green", - "-l", "red" - ] 10 - ] - , sepChar = "%" - , alignSep = "}{" - , template = " %cpu% | %memory% | %swap% | %battery% | %default:Master% }\ - \{ %dynnetwork% | %EDDN% | %date% | %uname% " -} diff --git a/.config/xmobar/xmobar-pc-0.config b/.config/xmobar/xmobar-pc-0.config deleted file mode 100644 index f3add40..0000000 --- a/.config/xmobar/xmobar-pc-0.config +++ /dev/null @@ -1,24 +0,0 @@ -Config { font = "xft:monospace" - , bgColor = "#303030" - , fgColor = "grey" - , position = Static { xpos = 0 , ypos = 0, width = 2560, height = 30 } - , lowerOnStart = True - , hideOnStart = False - , allDesktops = True - , persistent = True - , iconRoot = "." - , commands = [ - Run Cpu ["-L","3","-H","50"] 5 - , Run Memory ["-t","Mem: %"] 10 - , Run Com "uname" ["-s","-r"] "" 36000 - , Run Weather "EDDN" [ "-t",": °C" ] 3600 - , Run Date "%H:%M - %d.%m.%Y" "date" 10 - , Run DynNetwork [ "-S","True","-t", ": , " ] 10 - , Run Volume "default" "Master" [] 2 - ] 10 - ] - , sepChar = "%" - , alignSep = "}{" - , template = " %cpu% | %memory% | %default:Master% }\ - \{ %dynnetwork% | %EDDN% | %date% | %uname% " -} diff --git a/.config/xmobar/xmobar-pc-1.config b/.config/xmobar/xmobar-pc-1.config deleted file mode 100644 index b342d8c..0000000 --- a/.config/xmobar/xmobar-pc-1.config +++ /dev/null @@ -1,24 +0,0 @@ -Config { font = "xft:monospace" - , bgColor = "#303030" - , fgColor = "grey" - , position = Static { xpos = 2560 , ypos = 0, width = 2560, height = 30 } - , lowerOnStart = True - , hideOnStart = False - , allDesktops = True - , persistent = True - , iconRoot = "." - , commands = [ - Run Cpu ["-L","3","-H","50"] 5 - , Run Memory ["-t","Mem: %"] 10 - , Run Com "uname" ["-s","-r"] "" 36000 - , Run Weather "EDDN" [ "-t",": °C" ] 3600 - , Run Date "%H:%M - %d.%m.%Y" "date" 10 - , Run DynNetwork [ "-S","True","-t", ": , " ] 10 - , Run Volume "default" "Master" [] 2 - ] 10 - ] - , sepChar = "%" - , alignSep = "}{" - , template = " %cpu% | %memory% | %default:Master% }\ - \{ %dynnetwork% | %EDDN% | %date% | %uname% " -} diff --git a/.emacs b/.emacs deleted file mode 100644 index ef3b810..0000000 --- a/.emacs +++ /dev/null @@ -1,63 +0,0 @@ -;; Ludwig Lehnert (c) 2021 - -(require 'package) -(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t) -(package-initialize) - - -(custom-set-variables - ;; custom-set-variables was added by Custom. - ;; If you edit it by hand, you could mess it up, so be careful. - ;; Your init file should contain only one such instance. - ;; If there is more than one, they won't work right. - '(global-display-line-numbers-mode t) - '(make-backup-files nil) - '(menu-bar-mode nil) - '(package-selected-packages - '(auto-complete format-all evil projectile doom-modeline dashboard atom-dark-theme)) - '(scroll-bar-mode nil) - '(tool-bar-mode nil) - '(tooltip-mode nil)) - -(custom-set-faces - ;; custom-set-faces was added by Custom. - ;; If you edit it by hand, you could mess it up, so be careful. - ;; Your init file should contain only one such instance. - ;; If there is more than one, they won't work right. - ) - -;; setup auto-complete -(require 'auto-complete) -(ac-config-default) - -;; enable evil mode -(require 'evil) -(evil-mode 1) - -;; load gruvbox theme -(load-theme 'atom-dark t) - -;; set font size -(set-face-attribute 'default (selected-frame) :height 145) - -;; highlight current line -(global-hl-line-mode +1) - -;; setup doom-modeline -(require 'doom-modeline) -(doom-modeline-mode 1) - -;; asdf -(require 'projectile) -(projectile-mode +1) - -;; setup dashboard -(require 'dashboard) -(setq dashboard-startup-banner "~/.emacs.d/title.txt") -;;(setq dashboard-items '((recents . 5) (bookmarks . 5))) -(dashboard-setup-startup-hook) - -;; define custom commands -(defalias 'spg 'dashboard-refresh-buffer) -(defalias 'sc 'shell-command) - diff --git a/.emacs.d/title.txt b/.emacs.d/title.txt deleted file mode 100644 index af98b6c..0000000 --- a/.emacs.d/title.txt +++ /dev/null @@ -1,12 +0,0 @@ - -▓█████ ███▄ ▄███▓ ▄▄▄ ▄████▄ ██████ -▓█ ▀ ▓██▒▀█▀ ██▒▒████▄ ▒██▀ ▀█ ▒██ ▒ -▒███ ▓██ ▓██░▒██ ▀█▄ ▒▓█ ▄ ░ ▓██▄ -▒▓█ ▄ ▒██ ▒██ ░██▄▄▄▄██ ▒▓▓▄ ▄██▒ ▒ ██▒ -░▒████▒▒██▒ ░██▒ ▓█ ▓██▒▒ ▓███▀ ░▒██████▒▒ -░░ ▒░ ░░ ▒░ ░ ░ ▒▒ ▓▒█░░ ░▒ ▒ ░▒ ▒▓▒ ▒ ░ - ░ ░ ░░ ░ ░ ▒ ▒▒ ░ ░ ▒ ░ ░▒ ░ ░ - ░ ░ ░ ░ ▒ ░ ░ ░ ░ - ░ ░ ░ ░ ░░ ░ ░ - ░ - diff --git a/.vimrc b/.vimrc deleted file mode 100644 index 19b3f69..0000000 --- a/.vimrc +++ /dev/null @@ -1,48 +0,0 @@ -if has("syntax") - syntax on -endif - -nnoremap qt :vert term - -noremap qq :q -noremap qaq :qa -noremap q1q :q! -noremap qa1q :qa! - -noremap qf :NERDTreeToggle - -noremap vrc :e $MYVIMRC - -inoremap qw :wi -inoremap ii - -imap - -nnoremap qw :w - -set number - -call plug#begin() - " coding - Plug 'jiangmiao/auto-pairs' - Plug 'lervag/vimtex' - Plug 'neoclide/coc.nvim' - " ui - Plug 'scrooloose/nerdtree' - Plug 'ryanoasis/vim-devicons' - Plug 'itchyny/lightline.vim' -call plug#end() - -set encoding=UTF-8 -set expandtab -set tabstop=4 - -set laststatus=2 -set noshowmode -"set background=dark - -colors peachpuff - -highlight Pmenu ctermbg=black guibg=black -highlight Pmenu ctermfg=white guifg=white - diff --git a/.xmonad/xmonad-laptop.hs b/.xmonad/xmonad-laptop.hs deleted file mode 100644 index c6b32e5..0000000 --- a/.xmonad/xmonad-laptop.hs +++ /dev/null @@ -1,148 +0,0 @@ -import qualified Data.Map as M -import Data.Monoid -import System.Exit - -import XMonad - -import XMonad.Util.Run -import XMonad.Util.SpawnOnce -import XMonad.Util.EZConfig - -import XMonad.Layout.Spacing -import XMonad.Hooks.ManageDocks - -import qualified XMonad.StackSet as W - -myTerminal :: String -myTerminal = "kitty" - -myBrowser :: String -myBrowser = "firefox" -myAltBrowser :: String -myAltBrowser = "brave" - -myAppMenu :: String -myAppMenu = "rofi -show run" -myAppMenuThemes :: String -myAppMenuThemes = "rofi-theme-selector" - -myFocusFollowsMouse :: Bool -myFocusFollowsMouse = True - -myClickJustFocuses :: Bool -myClickJustFocuses = False - -myModMask = mod4Mask - -myWorkspaces = ["1", "2", "3", "4", "5", "6", "7", "8", "9"] - -myBorderWidth = 5 -myNormalBorderColor = "#dddddd" -myFocusedBorderColor = "#ff8700" - --- screen spacing, then window spacing -mySpacing x y = spacingRaw False (Border x x x x) True (Border y y y y) True - -myKeys :: [(String, X ())] -myKeys = [ - -- spawning keybindings - ("M-" , spawn myTerminal), - ("M-d" , spawn myAppMenu), - ("M-S-d" , spawn myAppMenuThemes), - ("M-i" , spawn myBrowser), - ("M-S-i" , spawn myAltBrowser), - - -- killing, exiting and suspending keybindings - ("M-q" , kill), - ("M-S-q" , io (exitWith ExitSuccess)), - ("M-S-s" , spawn "systemctl suspend"), - - -- restarting and recompiling keybindings - ("M-r" , spawn "xmonad --restart"), - ("M-S-r" , spawn "xmonad --recompile; xmonad --restart"), - - -- window keybindings - ("M-" , windows W.focusDown), - ("M-S-" , windows W.focusMaster), - ("M4-M1-m" , windows W.swapMaster), - ("M4-M1-" , windows W.swapUp), - ("M4-M1-" , windows W.swapDown), - - -- spacing keybindings - ("M4-S-" , incWindowSpacing 1), - ("M4-S-" , decWindowSpacing 1), - ("M1-S-" , incScreenSpacing 1), - ("M1-S-" , decScreenSpacing 1), - - -- brightness keybindings - ("" , spawn "light -A 2"), - ("" , spawn "light -U 2"), - - -- touchpad keybinding(s) - ("" , spawn "bash -c \"[ \"$(xinput list-props 11 | grep 'Device Enabled' | grep -o '[01]$')\" == \"1\" ] && xinput --disable 11 || xinput --enable 11\""), - - -- multimedia keybindings - ("" , spawn "amixer set Master 2%+"), - ("" , spawn "amixer set Master 2%-"), - ("" , spawn "amixer set Master toggle"), - ("M-" , spawn "bash -c \"gnome-screenshot -af /tmp/screenshot && cat /tmp/screenshot | xclip -i -selection clipboard -target image/png\"") ] - ------------------------------------------------------------------------- --- Mouse bindings: default actions bound to mouse events --- -myMouseBindings XConfig {XMonad.modMask = modm} = - M.fromList - -- mod-button1, Set the window to floating mode and move by dragging - [ ((modm, button1), \w -> focus w >> mouseMoveWindow w >> windows W.shiftMaster), - -- mod-button2, Raise the window to the top of the stack - ((modm, button2), \w -> focus w >> windows W.shiftMaster), - -- mod-button3, Set the window to floating mode and resize by dragging - ((modm, button3), \w -> focus w >> mouseResizeWindow w >> windows W.shiftMaster) ] - - - -myLayoutHook = avoidStruts (tiled ||| Mirror tiled ||| Full) - where - tiled = mySpacing 32 8 $ Tall nmaster delta ratio - nmaster = 1 - ratio = 1/2 - delta = 3/100 - -myManageHook = composeAll [ - className =? "Gimp" --> doFloat, - resource =? "desktop_window" --> doIgnore ] - -myEventHook = mempty - -myLogHook = return () - -myStartupHook = do - spawnOnce "xsetroot -cursor_name left_ptr" - -main = do - xmproc0 <- spawnPipe "nitrogen --restore" - xmproc1 <- spawnPipe "killall picom; picom &" - xmproc2 <- spawnPipe "killall xmobar; xmobar ~/.config/xmobar/xmobar.config" - xmonad $ docks defaults - -defaults = def { - terminal = myTerminal, - focusFollowsMouse = myFocusFollowsMouse, - clickJustFocuses = myClickJustFocuses, - borderWidth = myBorderWidth, - modMask = myModMask, - workspaces = myWorkspaces, - normalBorderColor = myNormalBorderColor, - focusedBorderColor = myFocusedBorderColor, - - -- bindings - mouseBindings = myMouseBindings, - - -- hooks - layoutHook = myLayoutHook, - manageHook = myManageHook, - handleEventHook = myEventHook, - logHook = myLogHook, - startupHook = myStartupHook - } `additionalKeysP` myKeys - diff --git a/.xmonad/xmonad-pc.hs b/.xmonad/xmonad-pc.hs deleted file mode 100644 index 7e7b550..0000000 --- a/.xmonad/xmonad-pc.hs +++ /dev/null @@ -1,147 +0,0 @@ -import qualified Data.Map as M -import Data.Monoid -import System.Exit - -import XMonad - -import XMonad.Util.Run -import XMonad.Util.SpawnOnce -import XMonad.Util.EZConfig - -import XMonad.Layout.Spacing - -import XMonad.Hooks.DynamicBars -import XMonad.Hooks.ManageDocks - -import qualified XMonad.StackSet as W - -myTerminal :: String -myTerminal = "kitty" - -myBrowser :: String -myBrowser = "firefox" -myAltBrowser :: String -myAltBrowser = "brave" - -myAppMenu :: String -myAppMenu = "rofi -show run" -myAppMenuThemes :: String -myAppMenuThemes = "rofi-theme-selector" - -myFocusFollowsMouse :: Bool -myFocusFollowsMouse = True - -myClickJustFocuses :: Bool -myClickJustFocuses = False - -myModMask = mod4Mask - -myWorkspaces = ["1", "2", "3", "4", "5", "6", "7", "8", "9"] - -myBorderWidth = 5 -myNormalBorderColor = "#dddddd" -myFocusedBorderColor = "#ff8700" - --- screen spacing, then window spacing -mySpacing x y = spacingRaw False (Border x x x x) True (Border y y y y) True - -myKeys :: [(String, X ())] -myKeys = [ - -- spawning keybindings - ("M-" , spawn myTerminal), - ("M-d" , spawn myAppMenu), - ("M-S-d" , spawn myAppMenuThemes), - ("M-i" , spawn myBrowser), - ("M-S-i" , spawn myAltBrowser), - - -- killing, exiting and suspending keybindings - ("M-q" , kill), - ("M-S-q" , io exitSuccess), - ("M-S-s" , spawn "systemctl suspend"), - - -- restarting and recompiling keybindings - ("M-r" , spawn "xmonad --restart"), - ("M-S-r" , spawn "xmonad --recompile; xmonad --restart"), - - -- window keybindings - ("M-" , windows W.focusDown), - ("M-S-" , windows W.focusMaster), - ("M4-M1-m" , windows W.swapMaster), - ("M4-M1-" , windows W.swapUp), - ("M4-M1-" , windows W.swapDown), - - -- spacing keybindings - ("M4-S-" , incWindowSpacing 1), - ("M4-S-" , decWindowSpacing 1), - ("M1-S-" , incScreenSpacing 1), - ("M1-S-" , decScreenSpacing 1), - - -- multimedia keybindings - ("" , spawn "amixer set Master 2%+"), - ("" , spawn "amixer set Master 2%-"), - ("" , spawn "amixer set Master toggle"), - ("M-" , spawn clipBoardScreenshotCommand), - ("M-" , spawn clipBoardScreenshotCommand) ] - -clipBoardScreenshotCommand = "bash -c \"gnome-screenshot -af /tmp/screenshot && cat /tmp/screenshot | xclip -i -selection clipboard -target image/png\"" - ------------------------------------------------------------------------- --- Mouse bindings: default actions bound to mouse events --- -myMouseBindings XConfig {XMonad.modMask = modm} = - M.fromList - -- mod-button1, Set the window to floating mode and move by dragging - [ ((modm, button1), \w -> focus w >> mouseMoveWindow w >> windows W.shiftMaster), - -- mod-button2, Raise the window to the top of the stack - ((modm, button2), \w -> focus w >> windows W.shiftMaster), - -- mod-button3, Set the window to floating mode and resize by dragging - ((modm, button3), \w -> focus w >> mouseResizeWindow w >> windows W.shiftMaster) ] - - - -myLayoutHook = avoidStruts (tiled ||| Mirror tiled ||| Full) - where - tiled = mySpacing 32 8 $ Tall nmaster delta ratio - nmaster = 1 - ratio = 1/2 - delta = 3/100 - -myManageHook = composeAll [ - className =? "Gimp" --> doFloat, - resource =? "desktop_window" --> doIgnore ] - -myEventHook = mempty - -myLogHook = return () - -myStartupHook = do - spawnOnce "xsetroot -cursor_name left_ptr" - spawnOnce "xrandr --output DP-0 --primary --left-of HDMI-0 --auto" - -main = do - xmproc0 <- spawnPipe "nitrogen --restore" - xmproc1 <- spawnPipe "killall picom; picom &" - xmproc2 <- spawnPipe "killall xmobar; xmobar ~/.config/xmobar/xmobar0.config &; xmobar ~/.config/xmobar/xmobar1.config &" - xmonad $ docks defaults - -defaults = def { - terminal = myTerminal, - focusFollowsMouse = myFocusFollowsMouse, - clickJustFocuses = myClickJustFocuses, - borderWidth = myBorderWidth, - modMask = myModMask, - workspaces = myWorkspaces, - normalBorderColor = myNormalBorderColor, - focusedBorderColor = myFocusedBorderColor, - - -- bindings - mouseBindings = myMouseBindings, - - -- hooks - layoutHook = myLayoutHook, - manageHook = myManageHook, - handleEventHook = myEventHook, - logHook = myLogHook, - startupHook = myStartupHook - } `additionalKeysP` myKeys -