This commit is contained in:
Ludwig Lehnert 2024-03-02 10:16:29 +01:00
parent 31eee37328
commit dd6c76f7a3
12 changed files with 0 additions and 661 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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";

View File

@ -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: <usedratio>%"] 10
, Run Swap [] 10
, Run Com "uname" ["-s","-r"] "" 36000
, Run Weather "EDDN" [ "-t","<station>: <tempC> °C" ] 3600
, Run Date "%H:%M - %d.%m.%Y" "date" 10
, Run DynNetwork [ "-S","True","-t", "<dev>: <rx>, <tx>" ] 10
, Run Volume "default" "Master" [] 2
, Run Battery [
"-t", "<acstatus>: <left>% - <timeleft>",
"--",
--"-c", "charge_full",
"-O", "AC",
"-o", "Bat",
"-h", "green",
"-l", "red"
] 10
]
, sepChar = "%"
, alignSep = "}{"
, template = " <fc=#ffff0a>%cpu%</fc> | <fc=#ffaf30>%memory%</fc> | <fc=#1fffb4>%swap%</fc> | <fc=#9999ff>%battery%</fc> | %default:Master% }\
\{ <fc=#ff55cc>%dynnetwork%</fc> | <fc=#ff711f>%EDDN%</fc> | <fc=#ffd700>%date%</fc> | <fc=#0fb471>%uname%</fc> "
}

View File

@ -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: <usedratio>%"] 10
, Run Com "uname" ["-s","-r"] "" 36000
, Run Weather "EDDN" [ "-t","<station>: <tempC> °C" ] 3600
, Run Date "%H:%M - %d.%m.%Y" "date" 10
, Run DynNetwork [ "-S","True","-t", "<dev>: <rx>, <tx>" ] 10
, Run Volume "default" "Master" [] 2
] 10
]
, sepChar = "%"
, alignSep = "}{"
, template = " <fc=#ffff0a>%cpu%</fc> | <fc=#ffaf30>%memory%</fc> | %default:Master% }\
\{ <fc=#ff55cc>%dynnetwork%</fc> | <fc=#ff711f>%EDDN%</fc> | <fc=#ffd700>%date%</fc> | <fc=#0fb471>%uname%</fc> "
}

View File

@ -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: <usedratio>%"] 10
, Run Com "uname" ["-s","-r"] "" 36000
, Run Weather "EDDN" [ "-t","<station>: <tempC> °C" ] 3600
, Run Date "%H:%M - %d.%m.%Y" "date" 10
, Run DynNetwork [ "-S","True","-t", "<dev>: <rx>, <tx>" ] 10
, Run Volume "default" "Master" [] 2
] 10
]
, sepChar = "%"
, alignSep = "}{"
, template = " <fc=#ffff0a>%cpu%</fc> | <fc=#ffaf30>%memory%</fc> | %default:Master% }\
\{ <fc=#ff55cc>%dynnetwork%</fc> | <fc=#ff711f>%EDDN%</fc> | <fc=#ffd700>%date%</fc> | <fc=#0fb471>%uname%</fc> "
}

63
.emacs
View File

@ -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)

View File

@ -1,12 +0,0 @@
▓█████ ███▄ ▄███▓ ▄▄▄ ▄████▄ ██████
▓█ ▀ ▓██▒▀█▀ ██▒▒████▄ ▒██▀ ▀█ ▒██ ▒
▒███ ▓██ ▓██░▒██ ▀█▄ ▒▓█ ▄ ░ ▓██▄
▒▓█ ▄ ▒██ ▒██ ░██▄▄▄▄██ ▒▓▓▄ ▄██▒ ▒ ██▒
░▒████▒▒██▒ ░██▒ ▓█ ▓██▒▒ ▓███▀ ░▒██████▒▒
░░ ▒░ ░░ ▒░ ░ ░ ▒▒ ▓▒█░░ ░▒ ▒ ░▒ ▒▓▒ ▒ ░
░ ░ ░░ ░ ░ ▒ ▒▒ ░ ░ ▒ ░ ░▒ ░ ░
░ ░ ░ ░ ▒ ░ ░ ░ ░
░ ░ ░ ░ ░░ ░ ░

48
.vimrc
View File

@ -1,48 +0,0 @@
if has("syntax")
syntax on
endif
nnoremap qt :vert term<CR><C-w><C-r>
noremap qq <Esc>:q<CR>
noremap qaq <Esc>:qa<CR>
noremap q1q <Esc>:q!<CR>
noremap qa1q <Esc>:qa!<CR>
noremap qf <Esc>:NERDTreeToggle<CR>
noremap vrc <Esc>:e $MYVIMRC<CR>
inoremap qw <Esc>:w<CR>i<Right>
inoremap ii <Esc><Right>
imap <C-@> <C-n>
nnoremap qw :w<CR>
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

View File

@ -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-<Return>" , 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-<Tab>" , windows W.focusDown),
("M-S-<Tab>" , windows W.focusMaster),
("M4-M1-m" , windows W.swapMaster),
("M4-M1-<Up>" , windows W.swapUp),
("M4-M1-<Down>" , windows W.swapDown),
-- spacing keybindings
("M4-S-<Up>" , incWindowSpacing 1),
("M4-S-<Down>" , decWindowSpacing 1),
("M1-S-<Up>" , incScreenSpacing 1),
("M1-S-<Down>" , decScreenSpacing 1),
-- brightness keybindings
("<XF86MonBrightnessUp>" , spawn "light -A 2"),
("<XF86MonBrightnessDown>" , spawn "light -U 2"),
-- touchpad keybinding(s)
("<XF86TouchpadToggle>" , spawn "bash -c \"[ \"$(xinput list-props 11 | grep 'Device Enabled' | grep -o '[01]$')\" == \"1\" ] && xinput --disable 11 || xinput --enable 11\""),
-- multimedia keybindings
("<XF86AudioRaiseVolume>" , spawn "amixer set Master 2%+"),
("<XF86AudioLowerVolume>" , spawn "amixer set Master 2%-"),
("<XF86AudioMute>" , spawn "amixer set Master toggle"),
("M-<Print>" , 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

View File

@ -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-<Return>" , 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-<Tab>" , windows W.focusDown),
("M-S-<Tab>" , windows W.focusMaster),
("M4-M1-m" , windows W.swapMaster),
("M4-M1-<Up>" , windows W.swapUp),
("M4-M1-<Down>" , windows W.swapDown),
-- spacing keybindings
("M4-S-<Up>" , incWindowSpacing 1),
("M4-S-<Down>" , decWindowSpacing 1),
("M1-S-<Up>" , incScreenSpacing 1),
("M1-S-<Down>" , decScreenSpacing 1),
-- multimedia keybindings
("<XF86AudioRaiseVolume>" , spawn "amixer set Master 2%+"),
("<XF86AudioLowerVolume>" , spawn "amixer set Master 2%-"),
("<XF86AudioMute>" , spawn "amixer set Master toggle"),
("M-<Print>" , spawn clipBoardScreenshotCommand),
("M-<Page_Down>" , 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