From 6c023972efea5ecb377a0563433b2c8341032557 Mon Sep 17 00:00:00 2001 From: Tuan-Dat Tran Date: Fri, 15 Mar 2024 16:02:52 +0100 Subject: [PATCH] Added .gitconfig Signed-off-by: Tuan-Dat Tran --- README.md | 21 +- README.org | 49 - config/.Xdefaults | 2 +- config/.byobu/keybindings.tmux | 2 - config/.byobu/status | 15 - config/.config/alacritty/alacritty.toml | 2 +- config/.config/cava/config | 149 - config/.config/cava/shaders/bar_spectrum.frag | 79 - .../.config/cava/shaders/northern_lights.frag | 34 - config/.config/cava/shaders/pass_through.vert | 14 - config/.config/i3/config | 13 +- config/.config/nushell/config.nu | 556 -- config/.config/nushell/env.nu | 70 - config/.config/polybar/config | 392 -- config/.config/sioyek/keys_user.config | 208 - config/.config/sioyek/prefs_user.config | 137 - config/.config/starship.toml | 64 - config/.config/termite/config | 46 - config/.conky/Conky_4K/conky.conf | 173 - config/.conky/Conky_4K/start-conky.sh | 80 - config/.gitconfig | 18 + config/.local/share/ranger/bookmarks | 18 - .../2x4tnepw.default/chrome/userChrome.css | 3 - config/.mozilla/firefox/profiles.ini | 14 - config/.scripts/battery_stats.nu | 7 - config/.scripts/zellij-chooser.nu | 38 - config/.urxvt/ext/keyboard-select | 606 -- emacs/.emacs.d/.gitignore | 4 - emacs/.emacs.d/config.org | 227 - emacs/.emacs.d/init.el | 13 - resources/23-04-10_10-30-18-alacritty.png | Bin 1148175 -> 0 bytes vim/.config/nvim/lazy-lock.json | 46 +- vim/.config/nvim/lazyvim.json | 2 +- vim/.vim/autoload/colorizer.vim | 467 -- vim/.vim/autoload/plug.vim | 2541 ------- vim/.vim/ftplugin/cs.vim | 2 - vim/.vim/ftplugin/go.vim | 23 - vim/.vim/ftplugin/html.vim | 2 - vim/.vim/ftplugin/markdown.vim | 13 - vim/.vim/ftplugin/python.vim | 17 - vim/.vim/ftplugin/sh.vim | 3 - vim/.vim/ftplugin/tex.vim | 30 - vim/.vim/plugin/basics.vim | 30 - vim/.vim/plugin/colorizer.vim | 76 - vim/.vim/plugin/filetype.vim | 2 - vim/.vim/plugin/missspelling_abbrevs.vim | 5892 ----------------- vim/.vim/plugin/plugins.vim | 17 - vim/.vim/plugin/remaps.vim | 28 - vim/.vim/plugin/settings.vim | 14 - vim/.vim/plugin/skeletons.vim | 8 - vim/.vim/spell/de.utf-8.add | 846 --- vim/.vim/spell/de.utf-8.add.spl | Bin 10781 -> 0 bytes vim/.vim/spell/de.utf-8.spl | Bin 2388149 -> 0 bytes vim/.vim/templates/skeleton.go | 6 - vim/.vim/templates/skeleton.md | 5 - vim/.vim/templates/skeleton.sh | 1 - vim/.vim/templates/skeleton.tex | 32 - 57 files changed, 58 insertions(+), 13099 deletions(-) delete mode 100644 README.org delete mode 100644 config/.byobu/keybindings.tmux delete mode 100644 config/.byobu/status delete mode 100755 config/.config/cava/config delete mode 100644 config/.config/cava/shaders/bar_spectrum.frag delete mode 100644 config/.config/cava/shaders/northern_lights.frag delete mode 100644 config/.config/cava/shaders/pass_through.vert delete mode 100644 config/.config/nushell/config.nu delete mode 100644 config/.config/nushell/env.nu delete mode 100644 config/.config/polybar/config delete mode 100644 config/.config/sioyek/keys_user.config delete mode 100644 config/.config/sioyek/prefs_user.config delete mode 100644 config/.config/starship.toml delete mode 100644 config/.config/termite/config delete mode 100644 config/.conky/Conky_4K/conky.conf delete mode 100755 config/.conky/Conky_4K/start-conky.sh create mode 100644 config/.gitconfig delete mode 100644 config/.local/share/ranger/bookmarks delete mode 100644 config/.mozilla/firefox/2x4tnepw.default/chrome/userChrome.css delete mode 100644 config/.mozilla/firefox/profiles.ini delete mode 100755 config/.scripts/battery_stats.nu delete mode 100755 config/.scripts/zellij-chooser.nu delete mode 100644 config/.urxvt/ext/keyboard-select delete mode 100644 emacs/.emacs.d/.gitignore delete mode 100644 emacs/.emacs.d/config.org delete mode 100644 emacs/.emacs.d/init.el delete mode 100644 resources/23-04-10_10-30-18-alacritty.png delete mode 100644 vim/.vim/autoload/colorizer.vim delete mode 100644 vim/.vim/autoload/plug.vim delete mode 100644 vim/.vim/ftplugin/cs.vim delete mode 100644 vim/.vim/ftplugin/go.vim delete mode 100644 vim/.vim/ftplugin/html.vim delete mode 100644 vim/.vim/ftplugin/markdown.vim delete mode 100644 vim/.vim/ftplugin/python.vim delete mode 100644 vim/.vim/ftplugin/sh.vim delete mode 100644 vim/.vim/ftplugin/tex.vim delete mode 100644 vim/.vim/plugin/basics.vim delete mode 100644 vim/.vim/plugin/colorizer.vim delete mode 100644 vim/.vim/plugin/filetype.vim delete mode 100644 vim/.vim/plugin/missspelling_abbrevs.vim delete mode 100644 vim/.vim/plugin/plugins.vim delete mode 100644 vim/.vim/plugin/remaps.vim delete mode 100644 vim/.vim/plugin/settings.vim delete mode 100644 vim/.vim/plugin/skeletons.vim delete mode 100644 vim/.vim/spell/de.utf-8.add delete mode 100644 vim/.vim/spell/de.utf-8.add.spl delete mode 100644 vim/.vim/spell/de.utf-8.spl delete mode 100644 vim/.vim/templates/skeleton.go delete mode 100644 vim/.vim/templates/skeleton.md delete mode 100644 vim/.vim/templates/skeleton.sh delete mode 100644 vim/.vim/templates/skeleton.tex diff --git a/README.md b/README.md index 251c2d8..9c1dff2 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,11 @@ -# .dotfiles - -These are my personal dotfiles. - -Main tools I am currently using are: - -- i3-gaps -- nushell (although its not stable yet) -- (doom)emacs -- zellij -- alacritty +# Install dependencies +```bash +paru -S syncthing feh bottom zellij eza bat maim vlc python-pillow i3lock-color \ +vlc fd ripgrep unzip npm bacon simple-scan dunst picom \ +adobe-source-han-sans-jp-fonts obs-studio git zsh wget lightdm \ +lightdm-webkit2-greeter xorg-server i3-gaps xorg-xbacklight xorg-xrandr \ +alsa-utils pulseaudio pulseaudio-alsa pulseaudio-bluetooth playerctl \ +pavucontrol btrfs-progs udiskie blueman acpi acpid tlp conky stow openssh \ +firefox veracrypt keepassxc ranger rofi chromium delta-git +``` diff --git a/README.org b/README.org deleted file mode 100644 index 2fabf02..0000000 --- a/README.org +++ /dev/null @@ -1,49 +0,0 @@ -* .dotfiles - -These are the personal dotfiles for my laptop. - -Main tools I am currently using are (may be out of date): -- alacritty -- emacs (Doom Emacs) -- vim -- nu -- starship -- picom -- i3wm -- zellij -- synthing (as my home directory) - -#+CAPTION: Neofetch -#+ATTR_HTML: :width 960px -[[./resources/23-04-10_10-30-18-alacritty.png]] - -** Getting started - -*** Font setup - -Since we're using a powerline font we need to install them first. - -#+begin_src shell -git clone https://github.com/powerline/fonts.git --depth=1 -./fonts/install.sh -rm -rf fonts/ -#+end_src - -*** Installing the dotfiles - -To deploy the .dotfiles we use the tool stow. - -#+begin_src shell -git clone https://github.com/TuDatTr/dotfiles .dotfiles && cd .dotfiles -stow emacs -stow zsh -stow config -#+end_src - -** Author - -- Tuan-Dat Tran - [[https://gitlab.com/TuDatTr/][TuDatTr]] - -** License - -This project is licensed under the GPL-3.0 License - see LICENSE file for details. diff --git a/config/.Xdefaults b/config/.Xdefaults index d5dd1ff..2142bca 100644 --- a/config/.Xdefaults +++ b/config/.Xdefaults @@ -1,6 +1,6 @@ ! urxvt ! Fonts -urxvt*font: xft:Hack Nerd Font Mono:style=Regular:size=11:hinting=full, xft:DejaVu Sans Mono for Powerline:size=11, SourceHanSans-Regular +urxvt*font: xft:DejaVuSansM Nerd Font Mono:style=Regular:size=11:hinting=full ! Behavior urxvt*scrollBar: false diff --git a/config/.byobu/keybindings.tmux b/config/.byobu/keybindings.tmux deleted file mode 100644 index 3b962e1..0000000 --- a/config/.byobu/keybindings.tmux +++ /dev/null @@ -1,2 +0,0 @@ -set -g prefix F12 -unbind-key -n C-a \ No newline at end of file diff --git a/config/.byobu/status b/config/.byobu/status deleted file mode 100644 index 528da52..0000000 --- a/config/.byobu/status +++ /dev/null @@ -1,15 +0,0 @@ -# Status bar for tmux and screen - -# Status beginning with '#' are disabled. - -# Screen has two status lines, with 4 quadrants for status -screen_upper_left="color" -screen_upper_right="color whoami hostname ip_address menu" -screen_lower_left="color logo distro release #arch session" -screen_lower_right="color network #disk_io custom #entropy raid reboot_required updates_available #apport #services #mail users uptime #fan_speed #cpu_temp battery wifi_quality #processes load_average cpu_count cpu_freq memory #swap disk #time_utc date time" - - -# Tmux has one status line, with 2 halves for status -tmux_left=" logo #distro #release #arch #session" -# You can have as many tmux right lines below here, and cycle through them using Shift-F5 -tmux_right="#network #disk_io #custom #entropy #raid #reboot_required #updates_available #apport #services #mail #users #uptime #fan_speed #cpu_temp battery #wifi_quality #processes #load_average #cpu_count #cpu_freq #memory #swap #disk #whoami #hostname ip_address #time_utc date time" \ No newline at end of file diff --git a/config/.config/alacritty/alacritty.toml b/config/.config/alacritty/alacritty.toml index b59158a..815a7d1 100644 --- a/config/.config/alacritty/alacritty.toml +++ b/config/.config/alacritty/alacritty.toml @@ -11,7 +11,7 @@ style = "Bold Italic" style = "Italic" [font.normal] -family = "DejaVu Sans Mono for Powerline" +family = "DejaVuSansM Nerd Font Mono" style = "Regular" [window] diff --git a/config/.config/cava/config b/config/.config/cava/config deleted file mode 100755 index 9a43938..0000000 --- a/config/.config/cava/config +++ /dev/null @@ -1,149 +0,0 @@ -## Configuration file for CAVA. Default values are commented out. Use either ';' or '#' for commenting. - - -[general] - -# Smoothing mode. Can be 'normal', 'scientific' or 'waves'. DEPRECATED as of 0.6.0 -; mode = normal - -# Accepts only non-negative values. -; framerate = 60 - -# 'autosens' will attempt to decrease sensitivity if the bars peak. 1 = on, 0 = off -# new as of 0.6.0 autosens of low values (dynamic range) -# 'overshoot' allows bars to overshoot (in % of terminal height) without initiating autosens. DEPRECATED as of 0.6.0 -; autosens = 1 -; overshoot = 20 - -# Manual sensitivity in %. Autosens must be turned off for this to take effect. -# 200 means double height. Accepts only non-negative values. -; sensitivity = 100 - -# The number of bars (0-200). 0 sets it to auto (fill up console). -# Bars' width and space between bars in number of characters. -; bars = 0 -; bar_width = 2 -; bar_spacing = 1 - - -# Lower and higher cutoff frequencies for lowest and highest bars -# the bandwidth of the visualizer. -# Note: there is a minimum total bandwidth of 43Mhz x number of bars. -# Cava will automatically increase the higher cutoff if a too low band is specified. -; lower_cutoff_freq = 50 -; higher_cutoff_freq = 10000 - - - -[input] - -# Audio capturing method. Possible methods are: 'pulse', 'alsa' or 'fifo'. -# Defaults to 'pulse', 'alsa' or 'fifo', in that order, dependent on what support cava was built with. -# -# All input methods uses the same config variable 'source' -# to define where it should get the audio. -# -# For pulseaudio 'source' will be the source. Default: 'auto', which uses the monitor source of the default sink -# (all pulseaudio sinks(outputs) have 'monitor' sources(inputs) associated with them). -# -# For alsa 'source' will be the capture device. -# For fifo 'source' will be the path to fifo-file. -method = pulse -; source = auto - -; method = alsa -; source = hw:Loopback,1 - -; method = fifo -; source = /tmp/mpd.fifo - - - -[output] - -# Ouput method. Can be 'ncurses', 'noncurses' or 'raw'. -# 'noncurses' is for systems that does not suport ncurses. -# 'raw' is a 16 bit data stream of the bar heights that can be used to send to other applications. -# 'raw' defaults to 200 bars, which can be adjusted in the 'bars' option above. -; method = ncurses - -# Visual channels. Can be 'stereo' or 'mono'. -# 'stereo' mirrors both channels with low frequencies in center. -# 'mono' averages both channels and outputs left to right lowest to highest frequencies. -; channels = stereo - -# Raw output target. A fifo will be created if target does not exist. -; raw_target = /dev/stdout - -# Raw data format. Can be 'binary' or 'ascii'. -; data_format = binary - -# Binary bit format, can be '8bit' (0-255) or '16bit' (0-65530). -; bit_format = 16bit - -# Ascii max value. In 'ascii' mode range will run from 0 to value specified here -; ascii_max_range = 1000 - -# Ascii delimiters. In ascii format each bar and frame is separated by a delimiters. -# Use decimal value in ascii table (i.e. 59 = ';' and 10 = '\n' (line feed)). -; bar_delimiter = 59 -; frame_delimiter = 10 - - - -[color] - -# Colors can be one of seven predefined: black, blue, cyan, green, magenta, red, white, yellow. -# Or defined by hex code '#xxxxxx' (hex code must be within ''). User defined colors requires a -# terminal that can change color definitions such as Gnome-terminal or rxvt. -; background = black -; foreground = blue - -# Gradient mode, only hex defined colors are supported, background must also be defined in hex -# or remain commented out. 1 = on, 0 = off. Warning: for certain terminal emulators cava will -# not able to restore color definitions on exit, simply restart your terminal to restore colors. -gradient = 1 -# GMK Noel -gradient_color_1 = '#FFFFFF' -gradient_color_2 = '#EEB9C1' -gradient_color_3 = '#B3DCE1' -gradient_color_4 = '#66B9D2' -# Cool Blues -; gradient_color_1 = '#2193b0' -; gradient_color_2 = '#6dd5ed' -# Quepal -; gradient_color_1 = '#11998e' -; gradient_color_2 = '#38ef7d' -# Teal Love -; gradient_color_1 = '#11FFBD' -; gradient_color_2 = '#AAFFA9' - -[smoothing] - -# Percentage value for integral smoothing. Takes values from 0 - 100. -# Higher values means smoother, but less precise. 0 to disable. -; integral = 70 - -# Disables or enables the so-called "Monstercat smoothing" with or without "waves". Set to 0 to disable. -; monstercat = 1 -; waves = 0; - -# Set gravity percentage for "drop off". Higher values means bars will drop faster. -# Accepts only non-negative values. 50 means half gravity, 200 means double. Set to 0 to disable "drop off". -; gravity = 100 - - -# In bar height, bars that would have been lower that this will not be drawn. -; ignore = 0 - - -[eq] - -# This one is tricky. You can have as much keys as you want. -# Remember to uncomment more then one key! More keys = more precision. -# Look at readme.md on github for further explanations and examples. -; 1 = 1 # bass -; 2 = 1 -; 3 = 1 # midtone -; 4 = 1 -; 5 = 1 # treble diff --git a/config/.config/cava/shaders/bar_spectrum.frag b/config/.config/cava/shaders/bar_spectrum.frag deleted file mode 100644 index b078913..0000000 --- a/config/.config/cava/shaders/bar_spectrum.frag +++ /dev/null @@ -1,79 +0,0 @@ -#version 330 - -in vec2 fragCoord; -out vec4 fragColor; - -// bar values. defaults to left channels first (low to high), then right (high to low). -uniform float bars[512]; - -uniform int bars_count; // number of bars (left + right) (configurable) -uniform int bar_width; // bar width (configurable), not used here -uniform int bar_spacing; // space bewteen bars (configurable) - -uniform vec3 u_resolution; // window resolution - -//colors, configurable in cava config file (r,g,b) (0.0 - 1.0) -uniform vec3 bg_color; // background color -uniform vec3 fg_color; // foreground color - -uniform int gradient_count; -uniform vec3 gradient_colors[8]; // gradient colors - -vec3 normalize_C(float y,vec3 col_1, vec3 col_2, float y_min, float y_max) -{ - //create color based on fraction of this color and next color - float yr = (y - y_min) / (y_max - y_min); - return col_1 * (1.0 - yr) + col_2 * yr; -} - -void main() -{ - // find which bar to use based on where we are on the x axis - float x = u_resolution.x * fragCoord.x; - int bar = int(bars_count * fragCoord.x); - - //calculate a bar size - float bar_size = u_resolution.x / bars_count; - - //the y coordinate and bar values are the same - float y = bars[bar]; - - // make sure there is a thin line at bottom - if (y * u_resolution.y < 1.0) - { - y = 1.0 / u_resolution.y; - } - - //draw the bar up to current height - if (y > fragCoord.y) - { - //make some space between bars basen on settings - if (x > (bar + 1) * (bar_size) - bar_spacing) - { - fragColor = vec4(bg_color,1.0); - } - else - { - if (gradient_count == 0) - { - fragColor = vec4(fg_color,1.0); - } - else - { - //find which color in the configured gradient we are at - int color = int((gradient_count - 1) * fragCoord.y); - - //find where on y this and next color is supposed to be - float y_min = color / (gradient_count - 1.0); - float y_max = (color + 1.0) / (gradient_count - 1.0); - - //make color - fragColor = vec4(normalize_C(fragCoord.y, gradient_colors[color], gradient_colors[color + 1], y_min, y_max), 1.0); - } - } - } - else - { - fragColor = vec4(bg_color,1.0); - } -} \ No newline at end of file diff --git a/config/.config/cava/shaders/northern_lights.frag b/config/.config/cava/shaders/northern_lights.frag deleted file mode 100644 index ecd859a..0000000 --- a/config/.config/cava/shaders/northern_lights.frag +++ /dev/null @@ -1,34 +0,0 @@ -#version 330 - -in vec2 fragCoord; -out vec4 fragColor; - -// bar values. defaults to left channels first (low to high), then right (high to low). -uniform float bars[512]; - -uniform int bars_count; // number of bars (left + right) (configurable) - -uniform vec3 u_resolution; // window resolution, not used here - -//colors, configurable in cava config file -uniform vec3 bg_color; // background color(r,g,b) (0.0 - 1.0), not used here -uniform vec3 fg_color; // foreground color, not used here - -void main() -{ - // find which bar to use based on where we are on the x axis - int bar = int(bars_count * fragCoord.x); - - float bar_y = 1.0 - abs((fragCoord.y - 0.5)) * 2.0; - float y = (bars[bar]) * bar_y; - - float bar_x = (fragCoord.x - float(bar) / float(bars_count)) * bars_count; - float bar_r = 1.0 - abs((bar_x - 0.5)) * 2; - - bar_r = bar_r * bar_r * 2; - - // set color - fragColor.r = fg_color.x * y * bar_r; - fragColor.g = fg_color.y * y * bar_r; - fragColor.b = fg_color.z * y * bar_r; -} diff --git a/config/.config/cava/shaders/pass_through.vert b/config/.config/cava/shaders/pass_through.vert deleted file mode 100644 index a4f20e5..0000000 --- a/config/.config/cava/shaders/pass_through.vert +++ /dev/null @@ -1,14 +0,0 @@ -#version 330 - - -// Input vertex data, different for all executions of this shader. -layout(location = 0) in vec3 vertexPosition_modelspace; - -// Output data ; will be interpolated for each fragment. -out vec2 fragCoord; - -void main() -{ - gl_Position = vec4(vertexPosition_modelspace,1); - fragCoord = (vertexPosition_modelspace.xy+vec2(1,1))/2.0; -} diff --git a/config/.config/i3/config b/config/.config/i3/config index d7bc02a..946a481 100644 --- a/config/.config/i3/config +++ b/config/.config/i3/config @@ -86,17 +86,14 @@ for_window [title="KeePassX$"] floating enable border normal ############################ Startup Applications ############################# ############################################################################### -# exec --no-startup-id setxkbmap us,de; setxkbmap -option ctrl:nocaps; setxkbmap -option grp:lalt_lshift_toggle +exec --no-startup-id setxkbmap eu; setxkbmap -option ctrl:nocaps; exec --no-startup-id picom exec --no-startup-id udiskie exec --no-startup-id conky -c ~/.conky/syclo-crimson-bottomleft.conkyrc # exec --no-startup-id synergyc -f --no-tray --debug INFO --name genesis --enable-crypto 192.168.178.38:24800 exec --no-startup-id dunst exec --no-startup-id ~/.scripts/startup.sh -exec --no-startup-id llk -exec --no-startup-id emacs --daemon exec --no-startup-id syncthing -exec --no-startup-id xrandr --output eDP1 --auto --left-of HDMI1 --output HDMI1 --off --output DP1 --off; feh --randomize --bg-fill /home/tuan/Pictures/Wallpaper/* exec --no-startup-id feh --randomize --bg-fill $HOME/Pictures/Wallpaper/* ############################################################################### @@ -110,13 +107,13 @@ bindsym $mod+Shift+s exec poweroff # start a terminal bindsym $mod+space exec alacritty -bindsym $mod+Return exec alacritty -e nu /home/tuan/.scripts/zellij-chooser.nu +bindsym $mod+Return exec alacritty -e zellij # kill focused window bindsym $mod+Shift+q kill # start program launcher -bindsym $mod+d exec --no-startup-id /home/tuan/.config/rofi/launchers/type-1/launcher.sh +bindsym $mod+d exec --no-startup-id $HOME/.config/rofi/launchers/type-1/launcher.sh # Screen brightness controls bindsym XF86MonBrightnessUp exec --no-startup-id ~/.scripts/screen.sh up @@ -133,9 +130,7 @@ bindsym XF86AudioPrevious exec "playerctl previous" # Application Shortcuts bindsym $mod+b exec firefox -bindsym $mod+p exec firefox --private-window https://mos4.de -bindsym $mod+e exec emacsclient -c -bindsym $mod+m exec thunderbird +bindsym $mod+p exec firefox --private-window https://tudattr.dev # Whole Screen bindsym Control+Print exec --no-startup-id ~/.scripts/screenshot.sh screen diff --git a/config/.config/nushell/config.nu b/config/.config/nushell/config.nu deleted file mode 100644 index 141e3ba..0000000 --- a/config/.config/nushell/config.nu +++ /dev/null @@ -1,556 +0,0 @@ -# Nushell Config File - -# For more information on defining custom themes, see -# https://www.nushell.sh/book/coloring_and_theming.html -# And here is the theme collection -# https://github.com/nushell/nu_scripts/tree/main/themes -let dark_theme = { - # color for nushell primitives - separator: white - leading_trailing_space_bg: { attr: n } # no fg, no bg, attr none effectively turns this off - header: green_bold - empty: blue - # Closures can be used to choose colors for specific values. - # The value (in this case, a bool) is piped into the closure. - bool: { || if $in { 'light_cyan' } else { 'light_gray' } } - int: white - filesize: {|e| - if $e == 0b { - 'white' - } else if $e < 1mb { - 'cyan' - } else { 'blue' } - } - duration: white - date: { || (date now) - $in | - if $in < 1hr { - 'red3b' - } else if $in < 6hr { - 'orange3' - } else if $in < 1day { - 'yellow3b' - } else if $in < 3day { - 'chartreuse2b' - } else if $in < 1wk { - 'green3b' - } else if $in < 6wk { - 'darkturquoise' - } else if $in < 52wk { - 'deepskyblue3b' - } else { 'dark_gray' } - } - range: white - float: white - string: white - nothing: white - binary: white - cellpath: white - row_index: green_bold - record: white - list: white - block: white - hints: dark_gray - - shape_and: purple_bold - shape_binary: purple_bold - shape_block: blue_bold - shape_bool: light_cyan - shape_custom: green - shape_datetime: cyan_bold - shape_directory: cyan - shape_external: cyan - shape_externalarg: green_bold - shape_filepath: cyan - shape_flag: blue_bold - shape_float: purple_bold - # shapes are used to change the cli syntax highlighting - shape_garbage: { fg: "#FFFFFF" bg: "#FF0000" attr: b} - shape_globpattern: cyan_bold - shape_int: purple_bold - shape_internalcall: cyan_bold - shape_list: cyan_bold - shape_literal: blue - shape_matching_brackets: { attr: u } - shape_nothing: light_cyan - shape_operator: yellow - shape_or: purple_bold - shape_pipe: purple_bold - shape_range: yellow_bold - shape_record: cyan_bold - shape_redirection: purple_bold - shape_signature: green_bold - shape_string: green - shape_string_interpolation: cyan_bold - shape_table: blue_bold - shape_variable: purple -} - -let light_theme = { - # color for nushell primitives - separator: dark_gray - leading_trailing_space_bg: { attr: n } # no fg, no bg, attr none effectively turns this off - header: green_bold - empty: blue - # Closures can be used to choose colors for specific values. - # The value (in this case, a bool) is piped into the closure. - bool: { || if $in { 'dark_cyan' } else { 'dark_gray' } } - int: dark_gray - filesize: {|e| - if $e == 0b { - 'dark_gray' - } else if $e < 1mb { - 'cyan_bold' - } else { 'blue_bold' } - } - duration: dark_gray - date: { || (date now) - $in | - if $in < 1hr { - 'red3b' - } else if $in < 6hr { - 'orange3' - } else if $in < 1day { - 'yellow3b' - } else if $in < 3day { - 'chartreuse2b' - } else if $in < 1wk { - 'green3b' - } else if $in < 6wk { - 'darkturquoise' - } else if $in < 52wk { - 'deepskyblue3b' - } else { 'dark_gray' } - } - range: dark_gray - float: dark_gray - string: dark_gray - nothing: dark_gray - binary: dark_gray - cellpath: dark_gray - row_index: green_bold - record: white - list: white - block: white - hints: dark_gray - - shape_and: purple_bold - shape_binary: purple_bold - shape_block: blue_bold - shape_bool: light_cyan - shape_custom: green - shape_datetime: cyan_bold - shape_directory: cyan - shape_external: cyan - shape_externalarg: green_bold - shape_filepath: cyan - shape_flag: blue_bold - shape_float: purple_bold - # shapes are used to change the cli syntax highlighting - shape_garbage: { fg: "#FFFFFF" bg: "#FF0000" attr: b} - shape_globpattern: cyan_bold - shape_int: purple_bold - shape_internalcall: cyan_bold - shape_list: cyan_bold - shape_literal: blue - shape_matching_brackets: { attr: u } - shape_nothing: light_cyan - shape_operator: yellow - shape_or: purple_bold - shape_pipe: purple_bold - shape_range: yellow_bold - shape_record: cyan_bold - shape_redirection: purple_bold - shape_signature: green_bold - shape_string: green - shape_string_interpolation: cyan_bold - shape_table: blue_bold - shape_variable: purple -} - -# External completer example -# let carapace_completer = {|spans| -# carapace $spans.0 nushell $spans | from json -# } - - -# The default config record. This is where much of your global configuration is setup. -let-env config = { - ls: { - use_ls_colors: true # use the LS_COLORS environment variable to colorize output - clickable_links: true # enable or disable clickable links. Your terminal has to support links. - } - rm: { - always_trash: false # always act as if -t was given. Can be overridden with -p - } - cd: { - abbreviations: false # allows `cd s/o/f` to expand to `cd some/other/folder` - } - table: { - mode: rounded # basic, compact, compact_double, light, thin, with_love, rounded, reinforced, heavy, none, other - trim: { - methodology: wrapping # wrapping or truncating - wrapping_try_keep_words: true # A strategy used by the 'wrapping' methodology - truncating_suffix: "..." # A suffix used by the 'truncating' methodology - } - } - - explore: { - help_banner: true - exit_esc: true - - command_bar_text: '#C4C9C6' - # command_bar: {fg: '#C4C9C6' bg: '#223311' } - - status_bar_background: {fg: '#1D1F21' bg: '#C4C9C6' } - # status_bar_text: {fg: '#C4C9C6' bg: '#223311' } - - highlight: {bg: 'yellow' fg: 'black' } - - status: { - # warn: {bg: 'yellow', fg: 'blue'} - # error: {bg: 'yellow', fg: 'blue'} - # info: {bg: 'yellow', fg: 'blue'} - } - - try: { - # border_color: 'red' - # highlighted_color: 'blue' - - # reactive: false - } - - table: { - split_line: '#404040' - - cursor: true - - line_index: true - line_shift: true - line_head_top: true - line_head_bottom: true - - show_head: true - show_index: true - - # selected_cell: {fg: 'white', bg: '#777777'} - # selected_row: {fg: 'yellow', bg: '#C1C2A3'} - # selected_column: blue - - # padding_column_right: 2 - # padding_column_left: 2 - - # padding_index_left: 2 - # padding_index_right: 1 - } - - config: { - cursor_color: {bg: 'yellow' fg: 'black' } - - # border_color: white - # list_color: green - } - } - - history: { - max_size: 10000 # Session has to be reloaded for this to take effect - sync_on_enter: true # Enable to share history between multiple sessions, else you have to close the session to write history to file - file_format: "plaintext" # "sqlite" or "plaintext" - } - completions: { - case_sensitive: false # set to true to enable case-sensitive completions - quick: true # set this to false to prevent auto-selecting completions when only one remains - partial: true # set this to false to prevent partial filling of the prompt - algorithm: "prefix" # prefix or fuzzy - external: { - enable: true # set to false to prevent nushell looking into $env.PATH to find more suggestions, `false` recommended for WSL users as this look up my be very slow - max_results: 100 # setting it lower can improve completion performance at the cost of omitting some options - completer: null # check 'carapace_completer' above as an example - } - } - filesize: { - metric: true # true => KB, MB, GB (ISO standard), false => KiB, MiB, GiB (Windows standard) - format: "auto" # b, kb, kib, mb, mib, gb, gib, tb, tib, pb, pib, eb, eib, zb, zib, auto - } - - color_config: $dark_theme # if you want a light theme, replace `$dark_theme` to `$light_theme` - use_grid_icons: true - footer_mode: "25" # always, never, number_of_rows, auto - float_precision: 2 # the precision for displaying floats in tables - # buffer_editor: "emacs" # command that will be used to edit the current line buffer with ctrl+o, if unset fallback to $env.EDITOR and $env.VISUAL - use_ansi_coloring: true - edit_mode: emacs # emacs, vi - shell_integration: true # enables terminal markers and a workaround to arrow keys stop working issue - # true or false to enable or disable the welcome banner at startup - show_banner: false - render_right_prompt_on_last_line: false # true or false to enable or disable right prompt to be rendered on last line of the prompt. - - #hooks: { - # pre_prompt: [{ || - # null # replace with source code to run before the prompt is shown - # }] - # pre_execution: [{ || - # null # replace with source code to run before the repl input is run - # }] - # env_change: { || - # PWD: [{|before, after| - # null # replace with source code to run if the PWD environment is different since the last repl input - # }] - # } - # display_output: { || - # if (term size).columns >= 100 { table -e } else { table } - # } - #} - menus: [ - # Configuration for default nushell menus - # Note the lack of source parameter - { - name: completion_menu - only_buffer_difference: false - marker: "| " - type: { - layout: columnar - columns: 4 - col_width: 20 # Optional value. If missing all the screen width is used to calculate column width - col_padding: 2 - } - style: { - text: green - selected_text: green_reverse - description_text: yellow - } - } - { - name: history_menu - only_buffer_difference: true - marker: "? " - type: { - layout: list - page_size: 10 - } - style: { - text: green - selected_text: green_reverse - description_text: yellow - } - } - { - name: help_menu - only_buffer_difference: true - marker: "? " - type: { - layout: description - columns: 4 - col_width: 20 # Optional value. If missing all the screen width is used to calculate column width - col_padding: 2 - selection_rows: 4 - description_rows: 10 - } - style: { - text: green - selected_text: green_reverse - description_text: yellow - } - } - # Example of extra menus created using a nushell source - # Use the source field to create a list of records that populates - # the menu - { - name: commands_menu - only_buffer_difference: false - marker: "# " - type: { - layout: columnar - columns: 4 - col_width: 20 - col_padding: 2 - } - style: { - text: green - selected_text: green_reverse - description_text: yellow - } - source: { |buffer, position| - $nu.scope.commands - | where name =~ $buffer - | each { |it| {value: $it.name description: $it.usage} } - } - } - { - name: vars_menu - only_buffer_difference: true - marker: "# " - type: { - layout: list - page_size: 10 - } - style: { - text: green - selected_text: green_reverse - description_text: yellow - } - source: { |buffer, position| - $nu.scope.vars - | where name =~ $buffer - | sort-by name - | each { |it| {value: $it.name description: $it.type} } - } - } - { - name: commands_with_description - only_buffer_difference: true - marker: "# " - type: { - layout: description - columns: 4 - col_width: 20 - col_padding: 2 - selection_rows: 4 - description_rows: 10 - } - style: { - text: green - selected_text: green_reverse - description_text: yellow - } - source: { |buffer, position| - $nu.scope.commands - | where name =~ $buffer - | each { |it| {value: $it.name description: $it.usage} } - } - } - ] - keybindings: [ - { - name: completion_menu - modifier: none - keycode: tab - mode: [emacs vi_normal vi_insert] - event: { - until: [ - { send: menu name: completion_menu } - { send: menunext } - ] - } - } - { - name: completion_previous - modifier: shift - keycode: backtab - mode: [emacs, vi_normal, vi_insert] # Note: You can add the same keybinding to all modes by using a list - event: { send: menuprevious } - } - { - name: history_menu - modifier: control - keycode: char_r - mode: emacs - event: { send: menu name: history_menu } - } - { - name: next_page - modifier: control - keycode: char_x - mode: emacs - event: { send: menupagenext } - } - { - name: undo_or_previous_page - modifier: control - keycode: char_z - mode: emacs - event: { - until: [ - { send: menupageprevious } - { edit: undo } - ] - } - } - { - name: yank - modifier: control - keycode: char_y - mode: emacs - event: { - until: [ - {edit: pastecutbufferafter} - ] - } - } - { - name: unix-line-discard - modifier: control - keycode: char_u - mode: [emacs, vi_normal, vi_insert] - event: { - until: [ - {edit: cutfromlinestart} - ] - } - } - { - name: kill-line - modifier: control - keycode: char_k - mode: [emacs, vi_normal, vi_insert] - event: { - until: [ - {edit: cuttolineend} - ] - } - } - # Keybindings used to trigger the user defined menus - { - name: commands_menu - modifier: control - keycode: char_t - mode: [emacs, vi_normal, vi_insert] - event: { send: menu name: commands_menu } - } - { - name: vars_menu - modifier: alt - keycode: char_o - mode: [emacs, vi_normal, vi_insert] - event: { send: menu name: vars_menu } - } - { - name: commands_with_description - modifier: control - keycode: char_s - mode: [emacs, vi_normal, vi_insert] - event: { send: menu name: commands_with_description } - } - ] - -} - -def add_soft [project] { git remote add soft $"ssh://git.aya00:/($project)" } - -alias ll = ls -la -alias la = ls -a -alias q = exit -alias e = emacsclient -t -alias ekill = (pkill emacs;pkill emacsclient;emacs --daemon) -alias picotik = picocom --b 115199 /dev/ttyUSB0 -alias nmap = ^nmap -T5 --min-parallelism 100 -Pn -alias ed = emacs --daemon -alias eledger = emacsclient -nw ~/Documents/Finanzen/Ledger/MyBudget.ledger -alias sshconfig = emacsclient -nw ~/.ssh/config -alias econfig = emacsclient -nw ~/.doom.d/init.el -alias wttr = curl wttr.in/Essen -alias tvres = xrandr --output HDMI1 --transform 1.02,0,-20,0,1.02,-10,0,0,1 -alias defaultres = xrandr --output HDMI1 --transform 1.00,0,0,0,1.00,0,0,0,1 -alias latexmk = ^latexmk -f -pdf -interaction=nonstopmode - -# git -alias gpa = git push all --all -alias gras = add_soft -alias gd = git diff -alias gp = git push -alias gcsm = git commit -s -m -alias gaa = git add --all -alias gco = git checkout -alias grv = git remote -v - -let-env DOCKER_BUILDKIT = 1 # Disable for podman -source ~/.cache/starship/init.nu - diff --git a/config/.config/nushell/env.nu b/config/.config/nushell/env.nu deleted file mode 100644 index 9783f9d..0000000 --- a/config/.config/nushell/env.nu +++ /dev/null @@ -1,70 +0,0 @@ -# Nushell Environment Config File - -def create_left_prompt [] { - let home = ($env | get -i (if $nu.os-info.name == "windows" { "USERPROFILE" } else { "HOME" }) | into string) - let dir = ([ - ($env.PWD | str substring 0..($home | str length) | str replace -s $home "~"), - ($env.PWD | str substring ($home | str length)..) - ] | str join) - - let path_segment = if (is-admin) { - $"(ansi red_bold)($dir)" - } else { - $"(ansi green_bold)($dir)" - } - - $path_segment -} - -def create_right_prompt [] { - let time_segment = ([ - (date now | date format '%m/%d/%Y %r') - ] | str join) - - $time_segment -} - -# Use nushell functions to define your right and left prompt -let-env PROMPT_COMMAND = { || create_left_prompt } -let-env PROMPT_COMMAND_RIGHT = {|| create_right_prompt } - -# The prompt indicators are environmental variables that represent -# the state of the prompt -let-env PROMPT_INDICATOR = { || "〉" } -let-env PROMPT_INDICATOR_VI_INSERT = { || ": " } -let-env PROMPT_INDICATOR_VI_NORMAL = { || "〉" } -let-env PROMPT_MULTILINE_INDICATOR = { || "::: " } - -# Specifies how environment variables are: -# - converted from a string to a value on Nushell startup (from_string) -# - converted from a value back to a string when running external commands (to_string) -# Note: The conversions happen *after* config.nu is loaded -let-env ENV_CONVERSIONS = { - "PATH": { - from_string: { |s| $s | split row (char esep) | path expand -n } - to_string: { |v| $v | path expand -n | str join (char esep) } - } - "Path": { - from_string: { |s| $s | split row (char esep) | path expand -n } - to_string: { |v| $v | path expand -n | str join (char esep) } - } -} - -# Directories to search for scripts when calling source or use -# -# By default, /scripts is added -let-env NU_LIB_DIRS = [ - ($nu.config-path | path dirname | path join 'scripts') -] - -# Directories to search for plugin binaries when calling register -# -# By default, /plugins is added -let-env NU_PLUGIN_DIRS = [ - ($nu.config-path | path dirname | path join 'plugins') -] - -# To add entries to PATH (on Windows you might use Path), you can use the following pattern: -# let-env PATH = ($env.PATH | split row (char esep) | prepend '/some/path') -let-env VISUAL = 'emacsclient -t' -let-env EDITOR = 'emacsclient -t' diff --git a/config/.config/polybar/config b/config/.config/polybar/config deleted file mode 100644 index 6c840e9..0000000 --- a/config/.config/polybar/config +++ /dev/null @@ -1,392 +0,0 @@ -[colors] -background = ${xrdb:color0:#22300} -background-alt = ${xrdb:color8:#fa400} -foreground = ${xrdb:color7:#cdd} -foreground-alt = ${xrdb:color15:#eef} -black = ${xrdb:color0:#233} -red = ${xrdb:color1:#f90} -green = ${xrdb:color2:#8c4} -yellow = ${xrdb:color3:#fc0} -blue = ${xrdb:color4:#0af} -magenta = ${xrdb:color5:#e16} -cyan = ${xrdb:color6:#098} -white = ${xrdb:color7:#cdd} - -[bar/systray] -width = 100% -height = 25 - -radius = 6.0 -fixed-center = true - -tray-position = right -tray-padding = 0 - -background = #00000000 -foreground = ${colors.foreground} - -module-margin-left = 1 -module-margin-right = 1 - -font-0 = DejaVu Sans Mono for Powerline:pixelsize=10;1 -# font-1 = unifont:fontformat=truetype:size=8:antialias=false;0 -# font-2 = siji:pixelsize=10;1 -# font-3 = FontAwesome:style=Regular:pixelsize=10 - -modules-left = -modules-center = i3 -modules-right = - -cursor-click = pointer -cursor-scroll = ns-resize - - -[bar/beep] -width = 100% -height = 25 - -radius = 6.0 -fixed-center = true - -tray-position = right -tray-padding = 2 - -background = #00000000 -foreground = ${colors.foreground} - -module-margin-left = 1 -module-margin-right = 1 - -font-0 = fixed:pixelsize=10;1 -font-1 = unifont:fontformat=truetype:size=8:antialias=false;0 -font-2 = siji:pixelsize=10;1 -font-3 = FontAwesome:style=Regular:pixelsize=10 - -modules-left = volume xkeyboard -modules-center = date -modules-right = - -cursor-click = pointer -cursor-scroll = ns-resize - -[bar/boop] -width = 100% -height = 2% -bottom = true -radius = 6.0 -fixed-center = true - -background = #00000000 -foreground = ${colors.foreground} - -line-size = 0 - -line-color = ${colors.blue} - -border-size = 0 -border-color = #00000000 - -padding-left = 0 -padding-right = 2 - -module-margin-left = 1 -module-margin-right = 2 - -font-0 = fixed:pixelsize=10;1 -font-1 = unifont:fontformat=truetype:size=8:antialias=false;0 -font-2 = siji:pixelsize=10;1 -font-3 = FontAwesome:style=Regular:pixelsize=10 - -modules-left = airvpn -modules-center = i3 -modules-right = xbacklight wlan eth battery1 powermenu - -cursor-click = pointer -cursor-scroll = ns-resize - -[module/xkeyboard] -type = internal/xkeyboard -blacklist-0 = num lock - -format-prefix = " " -format-prefix-foreground = ${colors.foreground-alt} -format-prefix-underline = ${colors.magenta} - -label-layout = %layout% -label-layout-underline = ${colors.magenta} - -label-indicator-padding = 2 -label-indicator-margin = 1 -label-indicator-background = ${colors.magenta} -label-indicator-underline = ${colors.magenta} - -[module/spotify] -type = custom/script -exec-if = pgrep -x spotify -exec = echo "$(playerctl metadata xesam:artist) - $(playerctl metadata xesam:title)" - -[module/spotify-prev] -type = custom/script -exec-if = pgrep -x spotify -exec = echo "" -click-left = bash -c "playerctl previous" - -[module/spotify-next] -type = custom/script -exec-if = pgrep -x spotify -exec = echo "" -click-left = bash -c "playerctl next" - -[module/spotify-play] -type = custom/script -exec-if = pgrep -x spotify -exec = ~/.scripts/spotify-play.out -tail = true -click-left = bash -c "if [ `cat /home/$USER/.scripts/playstate` = 0 ]; then echo '1'>/home/$USER/.scripts/playstate;else echo '0'>/home/$USER/.scripts/playstate;fi" - -[module/spotify-stop] -type = custom/script -exec-if = pgrep -x spotify -exec = echo "" -tail = true -click-left = bash -c "playerctl stop && echo '0'>/home/$USER/.scripts/playstate" - -[module/airvpn] -type = custom/script -exec-if = -exec = "if [[ $(ip addr | grep tun) ]]; then echo 'VPN: connected'; else echo 'VPN: disconnectd'; fi" -tail = true - - -[module/i3] -type = internal/i3 - -pin-workspaces = true - -strip-wsnumbers = true - -index-sort = false - -enable-click = false - -enable-scroll = false - -wrapping-scroll = false - -reverse-scroll = false - -fuzzy-match = true - -ws-icon-0 = 1; -ws-icon-1 = 2; -ws-icon-2 = 3; -ws-icon-3 = 4; -ws-icon-4 = 5; -ws-icon-5 = 6; -ws-icon-6 = 7; -ws-icon-7 = 8; -ws-icon-8 = 9; -ws-icon-default =  - -format = - -label-mode = %mode% -label-mode-padding = 2 -label-mode-background = ${colors.black} - -label-focused = %name% -label-focused-foreground = ${colors.foreground} -label-focused-background = ${colors.background} -label-focused-underline = ${colors.blue} -label-focused-padding = 4 - -label-unfocused = %name% -label-unfocused-padding = 4 - -label-visible = %name% -label-visible-underline = ${colors.red} -label-visible-padding = 4 - -label-urgent = %name% -label-urgent-foreground = ${colors.black} -label-urgent-background = ${colors.red} -label-urgent-padding = 4 - -[module/xbacklight] -type = internal/xbacklight - -format =