diff --git a/config/i3/config b/config/i3/config deleted file mode 100644 index 36d5a81..0000000 --- a/config/i3/config +++ /dev/null @@ -1,515 +0,0 @@ -font pango: Noto Sans Regular 10 - -# set the mod key to the winkey: -set $mod Mod4 -set $wallpaper = ~/Images/wallpapers/sky-like-ghibli.png - -exec wal -i $wallpaper - -##################### -# workspace layout: # -##################### - -# default i3 tiling mode: -workspace_layout default - -# i3 stacking layout: -# Each window will be fullscreen and tabbed top to bottom. -#workspace_layout stacking - -# i3 tabbed layout: -# Each new window will open fullscreen as a tab (left to right) -#workspace_layout tabbed - -############################## -# extra options for windows: # -############################## - -#border indicator on windows: -new_window pixel 1 - -# thin borders -# hide_edge_borders both - -# Set inner/outer gaps -gaps inner 10 -gaps outer 30 - -# show window title bars (not officially supported with i3gaps) -#default_border normal -default_border pixel 2 - -# window title alignment -#title_align center - -# Use Mouse+$mod to drag floating windows to their wanted position -floating_modifier $mod - -# switch/iterate between workspaces -bindsym $mod+Tab workspace next -bindsym $mod+Shift+Tab workspace prev - -# switch to workspace -bindsym $mod+1 workspace $ws1 -bindsym $mod+2 workspace $ws2 -bindsym $mod+3 workspace $ws3 -bindsym $mod+4 workspace $ws4 -bindsym $mod+5 workspace $ws5 -bindsym $mod+6 workspace $ws6 -bindsym $mod+7 workspace $ws7 -bindsym $mod+8 workspace $ws8 -bindsym $mod+9 workspace $ws9 -bindsym $mod+0 workspace $ws10 - -# switch to workspace with numpad keys -bindcode $mod+87 workspace 1 -bindcode $mod+88 workspace 2 -bindcode $mod+89 workspace 3 -bindcode $mod+83 workspace 4 -bindcode $mod+84 workspace 5 -bindcode $mod+85 workspace 6 -bindcode $mod+79 workspace 7 -bindcode $mod+80 workspace 8 -bindcode $mod+81 workspace 9 -bindcode $mod+90 workspace 10 - -# switch to workspace with numlock numpad keys -bindcode $mod+Mod2+87 workspace $ws1 -bindcode $mod+Mod2+88 workspace $ws2 -bindcode $mod+Mod2+89 workspace $ws3 -bindcode $mod+Mod2+83 workspace $ws4 -bindcode $mod+Mod2+84 workspace $ws5 -bindcode $mod+Mod2+85 workspace $ws6 -bindcode $mod+Mod2+79 workspace $ws7 -bindcode $mod+Mod2+80 workspace $ws8 -bindcode $mod+Mod2+81 workspace $ws9 -bindcode $mod+Mod2+90 workspace $ws10 - -# move focused container to workspace -bindsym $mod+Shift+1 move container to workspace $ws1 -bindsym $mod+Shift+2 move container to workspace $ws2 -bindsym $mod+Shift+3 move container to workspace $ws3 -bindsym $mod+Shift+4 move container to workspace $ws4 -bindsym $mod+Shift+5 move container to workspace $ws5 -bindsym $mod+Shift+6 move container to workspace $ws6 -bindsym $mod+Shift+7 move container to workspace $ws7 -bindsym $mod+Shift+8 move container to workspace $ws8 -bindsym $mod+Shift+9 move container to workspace $ws9 -bindsym $mod+Shift+0 move container to workspace $ws10 - -# move focused container to workspace with numpad keys -bindcode $mod+Shift+Mod2+87 move container to workspace $ws1 -bindcode $mod+Shift+Mod2+88 move container to workspace $ws2 -bindcode $mod+Shift+Mod2+89 move container to workspace $ws3 -bindcode $mod+Shift+Mod2+83 move container to workspace $ws4 -bindcode $mod+Shift+Mod2+84 move container to workspace $ws5 -bindcode $mod+Shift+Mod2+85 move container to workspace $ws6 -bindcode $mod+Shift+Mod2+79 move container to workspace $ws7 -bindcode $mod+Shift+Mod2+80 move container to workspace $ws8 -bindcode $mod+Shift+Mod2+81 move container to workspace $ws9 -bindcode $mod+Shift+Mod2+90 move container to workspace $ws10 - -# move focused container to workspace with numpad keys -bindcode $mod+Shift+87 move container to workspace $ws1 -bindcode $mod+Shift+88 move container to workspace $ws2 -bindcode $mod+Shift+89 move container to workspace $ws3 -bindcode $mod+Shift+83 move container to workspace $ws4 -bindcode $mod+Shift+84 move container to workspace $ws5 -bindcode $mod+Shift+85 move container to workspace $ws6 -bindcode $mod+Shift+79 move container to workspace $ws7 -bindcode $mod+Shift+80 move container to workspace $ws8 -bindcode $mod+Shift+81 move container to workspace $ws9 -bindcode $mod+Shift+90 move container to workspace $ws10 - -# resize window (you can also use the mouse for that): -mode "resize" { -# These bindings trigger as soon as you enter the resize mode -# Pressing left will shrink the window's width. -# Pressing right will grow the window's width. -# Pressing up will shrink the window's height. -# Pressing down will grow the window's height. - bindsym j resize shrink width 10 px or 10 ppt - bindsym i resize grow height 10 px or 10 ppt - bindsym k resize shrink height 10 px or 10 ppt - bindsym l resize grow width 10 px or 10 ppt - -# same bindings, but for the arrow keys - bindsym Left resize shrink width 10 px or 10 ppt - bindsym Down resize grow height 10 px or 10 ppt - bindsym Up resize shrink height 10 px or 10 ppt - bindsym Right resize grow width 10 px or 10 ppt - -# back to normal: Enter or Escape - bindsym Return mode "default" - bindsym Escape mode "default" - bindsym $mod+r mode "default" -} - -bindsym $mod+r mode "resize" - -###################################### -# keybindings for different actions: # -###################################### - -# start a terminal -bindsym $mod+Return exec alacritty - -# kill focused window -bindsym $mod+q kill - -# reload the configuration file -bindsym $mod+Shift+c reload - -# restart i3 inplace (preserves your layout/session, can be used to update i3) -bindsym $mod+Shift+r restart - -bindsym $mod+j focus left -bindsym $mod+k focus down -bindsym $mod+i focus up -bindsym $mod+l focus right - -# alternatively, you can use the cursor keys: -bindsym $mod+Left focus left -bindsym $mod+Down focus down -bindsym $mod+Up focus up -bindsym $mod+Right focus right - -# move focused window -bindsym $mod+Shift+j move left -bindsym $mod+Shift+k move down -bindsym $mod+Shift+i move up -bindsym $mod+Shift+l move right - -# alternatively, you can use the cursor keys: -bindsym $mod+Shift+Left move left -bindsym $mod+Shift+Down move down -bindsym $mod+Shift+Up move up -bindsym $mod+Shift+Right move right - -# split in horizontal orientation -bindsym $mod+h split h - -# split in vertical orientation -bindsym $mod+v split v - -# enter fullscreen mode for the focused container -bindsym $mod+f fullscreen toggle - -# change container layout (stacked, tabbed, toggle split) -bindsym $mod+s layout stacking -bindsym $mod+g layout tabbed -bindsym $mod+e layout toggle split - -# toggle tiling / floating -bindsym $mod+Shift+space floating toggle - -# change focus between tiling / floating windows -bindsym $mod+space focus mode_toggle - -# focus the parent container -bindsym $mod+a focus parent - -# open new empty workspace -bindsym $mod+Shift+n exec ~/.config/i3/scripts/empty_workspace - -# Multimedia Keys - -# volume -bindsym XF86AudioRaiseVolume exec amixer -D pulse sset Master 5%+ && pkill -RTMIN+1 i3blocks -bindsym XF86AudioLowerVolume exec amixer -D pulse sset Master 5%- && pkill -RTMIN+1 i3blocks - -# gradular volume control -bindsym $mod+XF86AudioRaiseVolume exec amixer -D pulse sset Master 1%+ && pkill -RTMIN+1 i3blocks -bindsym $mod+XF86AudioLowerVolume exec amixer -D pulse sset Master 1%- && pkill -RTMIN+1 i3blocks - -# mute -bindsym XF86AudioMute exec amixer sset Master toggle && killall -USR1 i3blocks - -# audio control -bindsym XF86AudioPlay exec playerctl play -bindsym XF86AudioPause exec playerctl pause -bindsym XF86AudioNext exec playerctl next -bindsym XF86AudioPrev exec playerctl previous - -## App shortcuts -bindsym $mod+w exec /usr/bin/vivaldi-stable -bindsym $mod+n exec /usr/bin/thunar - -########################################## -# configuration for workspace behaviour: # -########################################## - -# Define names for default workspaces for which we configure key bindings later on. -# We use variables to avoid repeating the names in multiple places. -set $ws2 "2" -set $ws1 "1" -set $ws3 "3" -set $ws4 "4" -set $ws5 "5" -set $ws6 "6" -set $ws7 "7" -set $ws8 "8" -set $ws9 "9" -set $ws10 "10" - -# use workspaces on different displays: -# where you have to replace VGA-0/HDMI-0 with the names for your displays -# you can get from xrandr command -workspace $ws1 output HDMI-0 -workspace $ws4 output DP-5 -workspace $ws3 output DP-5 -workspace $ws10 output DP-5 -#workspace $ws3 output HDMI-0 -#workspace $ws4 output HDMI-0 -#workspace $ws5 output HDMI-0 - -# bind program to workspace and focus to them on startup: -assign [class="alacritty"] $ws1 -assign [class="(?i)firefox"] $ws3 -assign [class="Vivaldi-stable"] $ws3 -assign [class="discord"] $ws4 -assign [class="Spotify"] $ws10 -assign [class="spotify"] $ws10 -assign [class="Ymuse"] $ws10 -assign [class="jetbrains-phpstorm"] $ws1 -assign [class="jetbrains-goland"] $ws1 -assign [class="jetbrains-idea"] $ws1 - -# automatic set focus new window if it opens on another workspace then the current: -for_window [class=Xfce4-terminal] focus -for_window [class=Vivaldi-stable] focus -for_window [class=Thunar] focus - -############################################# -# autostart applications/services on login: # -############################################# - -#get auth work with polkit-gnome -exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 - -# dex execute .desktop files + apps using /etc/xdg/autostart. -# when second to i3 a DE is installed or mixed usage of i3 + xfce4 or GNOME -# in this cases better disable dex and use manual starting apps using xdg/autostart -# if enabled you should comment welcome app. -# https://github.com/jceb/dex -#exec --no-startup-id dex -a -s /etc/xdg/autostart/:~/.config/autostart/ -exec --no-startup-id dex --autostart --environment i3 - -# start welcome app -#exec --no-startup-id sh /usr/share/endeavouros/scripts/welcome --startdelay=3 - -# num lock activated -#exec --no-startup-id numlockx on - -# configure multiple keyboard layouts and hotkey to switch (Alt+CAPSLOCK in this example) -#exec --no-startup-id setxkbmap -layout 'us,sk' -variant altgr-intl,qwerty -option 'grp:alt_caps_toggle' - -# start conky: -#exec_always --no-startup-id conky - -# start a script to setup displays -# uncomment the next line, use arandr to setup displays and save the file as monitor: -#exec --no-startup-id ~/.screenlayout/monitor.sh - -# set powersavings for display: -exec --no-startup-id xset s 480 dpms 600 600 600 - -# disable power saving (for example if using xscreensaver) -#exec --no-startup-id xset -dpms - -# use xautolock to use autosuspend rules for mobile devices -# https://wiki.archlinux.org/title/Session_lock#xautolock -#exec --no-startup-id xautolock -time 60 -locker "systemctl suspend" - - -# xscreensaver -# https://www.jwz.org/xscreensaver -#exec --no-startup-id xscreensaver --no-splash - -# Desktop notifications -exec --no-startup-id dbus-launch dunst --config ~/.config/dunst/dunstrc -# alternative if you installed aside with XFCE4: -# exec --no-startup-id /usr/lib/xfce4/notifyd/xfce4-notifyd & - -# autotiling script -# https://github.com/nwg-piotr/autotiling -# `yay -S autotiling ;) (it is in AUR) -#exec_always --no-startup-id autotiling - -# Autostart apps as you like -#exec --no-startup-id sleep 2 && xfce4-terminal -#exec --no-startup-id sleep 3 && thunar - -############### -# system tray # -############### -# if you do not use dex: exec --no-startup-id dex --autostart --environment i3 -# you need to have tray apps started manually one by one: - -# start blueberry app for managing bluetooth devices from tray: -#exec --no-startup-id blueberry-tray - -# networkmanager-applet -#exec --no-startup-id nm-applet - -# clipman-applet -#exec --no-startup-id xfce4-clipman - -################## -# floating rules # -################## - -# set size of floating window -#for_window [window_role="(?i)GtkFileChooserDialog"] resize set 640 480 #to set size of file choose dialog -#for_window [class=".*"] resize set 640 480 #to change size of all floating windows - -# set position of floating window -#for_window [class=".*"] move position center - -###################################### -# color settings for bar and windows # -###################################### - -# Define colors variables: -set $darkbluetrans #08052be6 -set $darkblue #08052b -set $lightblue #5294e2 -set $urgentred #e53935 -set $white #ffffff -set $black #000000 -set $purple #e345ff -set $darkgrey #383c4a -set $grey #b0b5bd -set $mediumgrey #8b8b8b -set $yellowbrown #e1b700 - -set_from_resource $fg i3wm.color7 #f0f0f0 -set_from_resource $bg i3wm.color4 #f0f0f0 -set_from_resource $nbg i3wm.color1 #f0f0f0 - -# define colors for windows: -# class border backgr. text indicator child_border -client.focused $bg $bg $fg $bg $bg -client.focused_inactive $bg $bg $fg $bg $bg -client.unfocused $nbg $bg $fg $bg $nbg -client.urgent $bg $bg $fg $bg $bg -client.placeholder $bg $bg $fg $bg $bg - -client.background $bg - -############################################ -# bar settings (input comes from i3blocks) # -############################################ - -# Start i3bar to display a workspace bar -# (plus the system information i3status finds out, if available) -#bar { -# font pango: Noto Sans Regular 10 - #status_command $HOME/.config/polybar/launch.sh -# position top -# i3bar_command $HOME/.config/polybar/launch.sh -# it could be that you have no primary display set: set one (xrandr --output --primary) -# reference: https://i3wm.org/docs/userguide.html#_tray_output -# tray_output primary -# tray_padding 0 - -# When strip_workspace_numbers is set to yes, -# any workspace that has a name of the form -# “[n][:][NAME]” will display only the name. -#strip_workspace_numbers yes -##strip_workspace_name no - -# colors { -# separator $purple -# background $darkgrey -# statusline $white -# border bg txt indicator -# focused_workspace $mediumgrey $grey $darkgrey $purple -# active_workspace $lightblue $mediumgrey $darkgrey $purple -# inactive_workspace $darkgrey $darkgrey $grey $purple -# urgent_workspace $urgentred $urgentred $white $purple -# } -#} - -# you can add different bars for multidisplay setups on each display: -# set output HDMI-0 to the display you want the bar, --transparency can be set. -# Transparency needs rgba color codes to be used where the last two letters are the transparency factor see here: -# https://gist.github.com/lopspower/03fb1cc0ac9f32ef38f4 -# #08052be6 --> e6=90% - -# bar { -# font pango: Noto Sans Regular 10 -# status_command i3blocks -c ~/.config/i3/i3blocks-2.conf -# i3bar_command i3bar --transparency -# output HDMI-0 -# position bottom -# -# When strip_workspace_numbers is set to yes, -# any workspace that has a name of the form -# “[n][:][NAME]” will display only the name. -#strip_workspace_numbers yes -##strip_workspace_name no -# -# colors { -# separator $purple -# background $darkbluetrans -# statusline $white -# border bg txt indicator -# focused_workspace $lighterblue $lighterblue $darkblue $purple -# active_workspace $lightdblue $lightdblue $darkblue $purple -# inactive_workspace $darkblue $darkblue $lightdblue $purple -# urgent_workspace $urgentred $urgentred $white $purple -# } -#} - -##################################### -# Application menu handled by rofi: # -##################################### - -## rofi bindings fancy application menu ($mod+d /F9 optional disabled) - -# bindsym $mod+d exec rofi -modi drun -show drun \ -# -config ~/.config/rofi/rofidmenu.rasi - -# bindsym F9 exec rofi -modi drun -show drun \ -# -config ~/.config/rofi/rofidmenu.rasi - -## rofi bindings for window menu ($mod+t /F10 optional disabled) - -bindsym $mod+d exec --no-startup-id ~/.config/rofi/launchers/type-1/launcher.sh -bindsym $mod+Shift+e exec --no-startup-id ~/.config/rofi/powermenu/type-1/powermenu.sh - -# bindsym F10 exec rofi -show window \ -# -config ~/.config/rofi/rofidmenu.rasi - -## rofi bindings to manage clipboard (install rofi-greenclip from the AUR) - -#exec --no-startup-id greenclip daemon>/dev/null -# bindsym $mod+c exec --no-startup-id rofi -modi "clipboard:greenclip print" -show clipboard \ -# -config ~/.config/rofi/rofidmenu.rasi -exec_always --no-startup-id xrandr --output DP-0 --off --output DP-1 --off --output DP-2 --off --output DP-3 --off --output HDMI-0 -r 144.00 --primary --mode 1920x1080 --pos 0x0 --rotate normal --output DP-4 --off --output DP-5 -r 74.97 --mode 1920x1080 --pos 1920x0 --rotate normal - -# Polybar -exec_always --no-startup-id killall -q polybar -exec_always --no-startup-id sleep 1 && sh $HOME/.config/polybar/colorblocks/launch-main.sh -exec_always --no-startup-id sleep 1 && sh $HOME/.config/polybar/colorblocks/launch-external.sh - -exec_always --no-startup-id killall -q picom -exec_always --no-startup-id sleep 3 && picom --config ~/.config/picom/picom.conf - -# run applications -exec spotify -exec vivaldi-stable -exec flatpak run com.discordapp.Discord -exec ymuse - -# Commands for screenshot -# Screenshot -bindsym Print exec --no-startup-id maim "/home/$USER/Images/$(date).png" -bindsym $mod+Print exec --no-startup-id maim --window $(xdotool getactivewindow) "/home/$USER/Images/$(date).png" -bindsym Shift+Print exec --no-startup-id maim -s -u "/home/$USER/Images/$(date).png" - -## Clipboard Screenshots -bindsym Ctrl+Print exec --no-startup-id maim | xclip -selection clipboard -t image/png -bindsym Ctrl+$mod+Print exec --no-startup-id maim --window $(xdotool getactivewindow) | xclip -selection clipboard -t image/png -bindsym Ctrl+Shift+Print exec --no-startup-id maim -s -u | xclip -selection clipboard -t image/png -i diff --git a/config/nvim/UltiSnips/tex.snippets b/config/nvim/UltiSnips/tex.snippets deleted file mode 100644 index 6971a63..0000000 --- a/config/nvim/UltiSnips/tex.snippets +++ /dev/null @@ -1,673 +0,0 @@ -global !p -texMathZones = ['texMathZone'+x for x in ['A', 'AS', 'B', 'BS', 'C', 'CS', 'D', 'DS', 'E', 'ES', 'F', 'FS', 'G', 'GS', 'H', 'HS', 'I', 'IS', 'J', 'JS', 'K', 'KS', 'L', 'LS', 'DS', 'V', 'W', 'X', 'Y', 'Z']] - -texIgnoreMathZones = ['texMathText'] - -texMathZoneIds = vim.eval('map('+str(texMathZones)+", 'hlID(v:val)')") -texIgnoreMathZoneIds = vim.eval('map('+str(texIgnoreMathZones)+", 'hlID(v:val)')") - -ignore = texIgnoreMathZoneIds[0] - -def math(): - synstackids = vim.eval("synstack(line('.'), col('.') - (col('.')>=2 ? 1 : 0))") - try: - first = next(i for i in reversed(synstackids) if i in texIgnoreMathZoneIds or i in texMathZoneIds) - return first != ignore - except StopIteration: - return False -endglobal - -snippet template "Basic template" b -\documentclass[a4paper]{article} - -\usepackage[utf8]{inputenc} -\usepackage[T1]{fontenc} -\usepackage{textcomp} -\usepackage[dutch]{babel} -\usepackage{amsmath, amssymb} - - -% figure support -\usepackage{import} -\usepackage{xifthen} -\pdfminorversion=7 -\usepackage{pdfpages} -\usepackage{transparent} -\newcommand{\incfig}[1]{% - \def\svgwidth{\columnwidth} - \import{./figures/}{#1.pdf_tex} -} - -\pdfsuppresswarningpagegroup=1 - -\begin{document} - $0 -\end{document} -endsnippet - -snippet beg "begin{} / end{}" bA -\\begin{$1} - $0 -\\end{$1} -endsnippet - -priority 100 -snippet ... "ldots" iA -\ldots -endsnippet - -snippet table "Table environment" b -\begin{table}[${1:htpb}] - \centering - \caption{${2:caption}} - \label{tab:${3:label}} - \begin{tabular}{${5:c}} - $0${5/((?<=.)c|l|r)|./(?1: & )/g} - \end{tabular} -\end{table} -endsnippet - -snippet fig "Figure environment" b -\begin{figure}[${1:htpb}] - \centering - ${2:\includegraphics[width=0.8\textwidth]{$3}} - \caption{${4:$3}} - \label{fig:${5:${3/\W+/-/g}}} -\end{figure} -endsnippet - -snippet enum "Enumerate" bA -\begin{enumerate} - \item $0 -\end{enumerate} -endsnippet - -snippet item "Itemize" bA -\begin{itemize} - \item $0 -\end{itemize} -endsnippet - -snippet desc "Description" b -\begin{description} - \item[$1] $0 -\end{description} -endsnippet - -snippet pac "Package" b -\usepackage[${1:options}]{${2:package}}$0 -endsnippet - -snippet => "implies" Ai -\implies -endsnippet - -snippet <=> "equivalent" Ai -\iff -endsnippet - -snippet =< "implied by" Ai -\impliedby -endsnippet - -context "math()" -snippet iff "iff" Ai -\iff -endsnippet - -snippet mk "Math" wA -$${1}$`!p -if t[2] and t[2][0] not in [',', '.', '?', '-', ' ']: - snip.rv = ' ' -else: - snip.rv = '' -`$2 -endsnippet - -snippet dm "Math" wA -\[ -${1:${VISUAL}} -\] $0 -endsnippet - -snippet ali "Align" bA -\begin{align*} - ${1:${VISUAL}} -.\end{align*} -endsnippet - - -context "math()" -snippet // "Fraction" iA -\\frac{$1}{$2}$0 -endsnippet - -snippet / "Fraction" i -\\frac{${VISUAL}}{$1}$0 -endsnippet - -context "math()" -snippet '((\d+)|(\d*)(\\)?([A-Za-z]+)((\^|_)(\{\d+\}|\d))*)/' "symbol frac" wrA -\\frac{`!p snip.rv = match.group(1)`}{$1}$0 -endsnippet - -priority 1000 -context "math()" -snippet '^.*\)/' "() frac" wrA -`!p -stripped = match.string[:-1] -depth = 0 -i = len(stripped) - 1 -while True: - if stripped[i] == ')': depth += 1 - if stripped[i] == '(': depth -= 1 - if depth == 0: break; - i-=1 -snip.rv = stripped[0:i] + "\\frac{" + stripped[i+1:-1] + "}" -`{$1}$0 -endsnippet - -context "math()" -snippet '([A-Za-z])(\d)' "auto subscript" wrA -`!p snip.rv = match.group(1)`_`!p snip.rv = match.group(2)` -endsnippet - -context "math()" -snippet '([A-Za-z])_(\d|[a-z]|\\)' "auto subscript2" wrA -`!p snip.rv = match.group(1)`_{`!p snip.rv = match.group(2)`$0} -endsnippet - - -snippet sympy "sympyblock " w -sympy $1 sympy$0 -endsnippet - -priority 10000 -snippet 'sympy(.*)sympy' "sympy" wr -`!p -from sympy import * -x, y, z, t = symbols('x y z t') -k, m, n = symbols('k m n', integer=True) -f, g, h = symbols('f g h', cls=Function) -init_printing() -snip.rv = eval('latex(' + match.group(1).replace('\\', '').replace('^', '**').replace('{', '(').replace('}', ')') + ')') -` -endsnippet - -priority 1000 -snippet math "mathematicablock" w -math $1 math$0 -endsnippet - -priority 10000 -snippet 'math(.*)math' "math" wr -`!p -import subprocess -code = match.group(1) -code = 'ToString[' + code + ', TeXForm]' -snip.rv = subprocess.check_output(['wolframscript', '-code', code]) -` -endsnippet - -snippet == "equals" iA -&= $1 \\\\ -endsnippet - -snippet != "equals" iA -\neq -endsnippet - -context "math()" -snippet ceil "ceil" iA -\left\lceil $1 \right\rceil $0 -endsnippet - -context "math()" -snippet floor "floor" iA -\left\lfloor $1 \right\rfloor$0 -endsnippet - -snippet pmat "pmat" iA -\begin{pmatrix} $1 \end{pmatrix} $0 -endsnippet - -snippet bmat "bmat" iA -\begin{bmatrix} $1 \end{bmatrix} $0 -endsnippet - -snippet ( "parens ()" iA -($0) -endsnippet - -snippet lr "left( right)" i -\left( ${1:${VISUAL}} \right) $0 -endsnippet - -snippet lr( "left( right)" i -\left( ${1:${VISUAL}} \right) $0 -endsnippet - -snippet lr| "left| right|" i -\left| ${1:${VISUAL}} \right| $0 -endsnippet - -snippet lr{ "left\{ right\}" i -\left\\{ ${1:${VISUAL}} \right\\} $0 -endsnippet - -snippet lrb "left\{ right\}" i -\left\\{ ${1:${VISUAL}} \right\\} $0 -endsnippet - -snippet lr[ "left[ right]" i -\left[ ${1:${VISUAL}} \right] $0 -endsnippet - -snippet lra "leftangle rightangle" iA -\left<${1:${VISUAL}} \right>$0 -endsnippet - -context "math()" -snippet conj "conjugate" iA -\overline{$1}$0 -endsnippet - -snippet sum "sum" w -\sum_{${1:i=1}}^{${2:\infty}} ${3:a_n z^n} -endsnippet - -snippet taylor "taylor" w -\sum_{${1:k}=${2:0}}^{${3:\infty}} ${4:c_$1} (x-a)^$1 $0 -endsnippet - -snippet lim "limit" w -\lim_{${1:n} \to ${2:\infty}} -endsnippet - -snippet limsup "limsup" w -\limsup_{${1:n} \to ${2:\infty}} -endsnippet - -snippet prod "product" w -\prod_{${1:n=${2:1}}}^{${3:\infty}} ${4:${VISUAL}} $0 -endsnippet - -snippet part "d/dx" w -\frac{\partial ${1:V}}{\partial ${2:x}} $0 -endsnippet - -context "math()" -snippet sq "\sqrt{}" iA -\sqrt{${1:${VISUAL}}} $0 -endsnippet - -context "math()" -snippet sr "^2" iA -^2 -endsnippet - -context "math()" -snippet cb "^3" iA -^3 -endsnippet - -context "math()" -snippet td "to the ... power" iA -^{$1}$0 -endsnippet - -context "math()" -snippet rd "to the ... power" iA -^{($1)}$0 -endsnippet - -snippet __ "subscript" iA -_{$1}$0 -endsnippet - -snippet ooo "\infty" iA -\infty -endsnippet - -snippet rij "mrij" i -(${1:x}_${2:n})_{${3:$2}\\in${4:\\N}}$0 -endsnippet - -snippet <= "leq" iA -\le -endsnippet - -snippet >= "geq" iA -\ge -endsnippet - -context "math()" -snippet EE "geq" iA -\exists -endsnippet - -context "math()" -snippet AA "forall" iA -\forall -endsnippet - -context "math()" -snippet xnn "xn" iA -x_{n} -endsnippet - -context "math()" -snippet ynn "yn" iA -y_{n} -endsnippet - - -context "math()" -snippet xii "xi" iA -x_{i} -endsnippet - -context "math()" -snippet yii "yi" iA -y_{i} -endsnippet - -context "math()" -snippet xjj "xj" iA -x_{j} -endsnippet - -context "math()" -snippet yjj "yj" iA -y_{j} -endsnippet - -context "math()" -snippet xp1 "x" iA -x_{n+1} -endsnippet - -context "math()" -snippet xmm "x" iA -x_{m} -endsnippet - -snippet R0+ "R0+" iA -\\R_0^+ -endsnippet - -snippet plot "Plot" w -\begin{figure}[$1] - \centering - \begin{tikzpicture} - \begin{axis}[ - xmin= ${2:-10}, xmax= ${3:10}, - ymin= ${4:-10}, ymax = ${5:10}, - axis lines = middle, - ] - \addplot[domain=$2:$3, samples=${6:100}]{$7}; - \end{axis} - \end{tikzpicture} - \caption{$8} - \label{${9:$8}} -\end{figure} -endsnippet - -snippet nn "Tikz node" w -\node[$5] (${1/[^0-9a-zA-Z]//g}${2}) ${3:at (${4:0,0}) }{$${1}$}; -$0 -endsnippet - -context "math()" -snippet mcal "mathcal" iA -\mathcal{$1}$0 -endsnippet - -snippet lll "l" iA -\ell -endsnippet - -context "math()" -snippet nabl "nabla" iA -\nabla -endsnippet - -context "math()" -snippet xx "cross" iA -\times -endsnippet - -priority 100 -snippet ** "cdot" iA -\cdot -endsnippet - -context "math()" -snippet norm "norm" iA -\|$1\|$0 -endsnippet - -priority 100 -context "math()" -snippet '(? "to" iA -\to -endsnippet - -priority 200 -context "math()" -snippet <-> "leftrightarrow" iA -\leftrightarrow -endsnippet - -context "math()" -snippet !> "mapsto" iA -\mapsto -endsnippet - -context "math()" -snippet invs "inverse" iA -^{-1} -endsnippet - -context "math()" -snippet compl "complement" iA -^{c} -endsnippet - -context "math()" -snippet \\\ "setminus" iA -\setminus -endsnippet - -snippet >> ">>" iA -\gg -endsnippet - -snippet << "<<" iA -\ll -endsnippet - - -snippet ~~ "~" iA -\sim -endsnippet - -context "math()" -snippet set "set" wA -\\{$1\\} $0 -endsnippet - -snippet || "mid" iA - \mid -endsnippet - - -context "math()" -snippet cc "subset" Ai -\subset -endsnippet - -snippet notin "not in " iA -\not\in -endsnippet - -context "math()" -snippet inn "in " iA -\in -endsnippet - -snippet NN "n" iA -\N -endsnippet - -snippet Nn "cap" iA -\cap -endsnippet - -snippet UU "cup" iA -\cup -endsnippet - -snippet uuu "bigcup" iA -\bigcup_{${1:i \in ${2: I}}} $0 -endsnippet - -snippet nnn "bigcap" iA -\bigcap_{${1:i \in ${2: I}}} $0 -endsnippet - -snippet OO "emptyset" iA -\O -endsnippet - -snippet RR "real" iA -\R -endsnippet - -snippet QQ "Q" iA -\Q -endsnippet - -snippet ZZ "Z" iA -\Z -endsnippet - -snippet "hokje" iA -\diamond -endsnippet - - -context "math()" -snippet '(?' - let g:UltiSnipsJumpForwardTrigger = '' - let g:UltiSnipsJumpBackwardTrigger = '' -Plugin 'lervag/vimtex' - let g:tex_flavor='latex' - let g:vimtex_view_method='zathura' - let g:vimtex_quickfix_mode=0 - set conceallevel=1 - let g:tex_conceal='abdmg' - -call vundle#end() " required -filetype plugin indent on " required - -:colorscheme purify - -:set number relativenumber -:set autoindent -:set tabstop=4 -:set shiftwidth=4 -:set smarttab -:set softtabstop=4 -:set mouse=a - -nnoremap :tabprevious -nnoremap :tabnext -nnoremap :tabprevious -nnoremap :tabnext -nnoremap :tabclose - -nnoremap :NERDTreeFocus -nnoremap :NERDTree -nnoremap :NERDTreeToggle - -nmap :TagbarToggle - -:set completeopt-=preview " For No Previews - -let g:NERDTreeDirArrowExpandable="+" -let g:NERDTreeDirArrowCollapsible="~" - -let g:airline_powerline_fonts = 1 - -if !exists('g:airline_symbols') - let g:airline_symbols = {} -endif - -" airline symbols -let g:airline_left_sep = '' -let g:airline_left_alt_sep = '' -let g:airline_right_sep = '' -let g:airline_right_alt_sep = '' -let g:airline_symbols.branch = '' -let g:airline_symbols.readonly = '' -let g:airline_symbols.linenr = '' - -" Custom Commands -"" LateX -:command Ttp !pdflatex %:t - -"" JS/TS/Node -:command NpmInstall !npm install -:command TscWatch !npm run ts-watch -:command NodemonStart !npm run start - -"" Git -:command -nargs=1 -bar GitignoreCreate !curl https://www.toptal.com/developers/gitignore/api/ | tee -a .gitignore -:command -nargs=* GitCommit !git commit -m "" -:command -nargs=* GitCommitAll !git commit -am "" -:command GitAddAll !git add * && git add .* -:command GitStatus !git status -:command GitPush !git push - -inoremap pumvisible() ? coc#_select_confirm() : "" - -set shell=/bin/bash - -" Highlight -augroup twig_ft - au! - autocmd BufNewFile,BufRead *.mcfunction set syntax=mcfunction -augroup END diff --git a/config/picom/picom.conf b/config/picom/picom.conf deleted file mode 100644 index 1c6b333..0000000 --- a/config/picom/picom.conf +++ /dev/null @@ -1,58 +0,0 @@ -## Shadow -shadow = true; -no-dnd-shadow = true; -no-dock-shadow = false; -clear-shadow = true; -shadow-radius = 12; -shadow-offset-x = -17; -shadow-offset-y = -7; -shadow-opacity = 0.5; - -## fading -fading = true; -fade-delta = 0.25; -fade-in-step = 0.02; -fade-out-step = 0.02; -fade-exclude = [ -]; - -## opacity -active-opacity = 0.85; -inactive-opacity = 0.6; -frame-opacity = 0.7; -opacity-rule = [ - "100:name *= 'Minecraft'", - "100:_NET_WM_STATE@[0]:32a = '_NET_WM_STATE_FULLSCREEN'", - "100:_NET_WM_STATE@[1]:32a = '_NET_WM_STATE_FULLSCREEN'", - "100:_NET_WM_STATE@[2]:32a = '_NET_WM_STATE_FULLSCREEN'", - "100:_NET_WM_STATE@[3]:32a = '_NET_WM_STATE_FULLSCREEN'", - "100:_NET_WM_STATE@[4]:32a = '_NET_WM_STATE_FULLSCREEN'" -]; - -## other -backend = "glx"; -mark-wmwin-focused = true; -mark-ovredir-focused = true; -detect-rounded-corners = true; -detect-client-opacity = true; -vsync = false; -dbe = false; -paint-on-overlay = true; -detect-transient = true; -detect-client-leader = true; -invert-color-include = [ ]; -glx-copy-from-front = false; -wintypes: -{ - tooltip = { fade = true; shadow = true; opacity = 0.75; focus = true; }; -}; -corner-radius = 5.0; - -## blur -blur-background = true; -blur-background-frame = false; -blur-background-fixed = false; -blur-kern = "3x3gaussian"; -blur-method = "dual_kawase"; -blur-strength = 10; -blur-background-exclude = [ "class_g = 'slop'", "class_g = 'Peek'", "class_g = 'kdeconnect.daemon'", "window_type = 'desktop'" ]; diff --git a/config/polybar/blocks/bars.ini b/config/polybar/blocks/bars.ini deleted file mode 100644 index c245f34..0000000 --- a/config/polybar/blocks/bars.ini +++ /dev/null @@ -1,600 +0,0 @@ -;; ┌────────────────────────────────────────────────────┐ -;; │░█▀█░█▀█░█░░░█░█░█▀▄░█▀█░█▀▄░░░░░░░░░█▀▄░█▀█░█▀▄░█▀▀│ -;; │░█▀▀░█░█░█░░░░█░░█▀▄░█▀█░█▀▄░░░░▀░░░░█▀▄░█▀█░█▀▄░▀▀█│ -;; │░▀░░░▀▀▀░▀▀▀░░▀░░▀▀░░▀░▀░▀░▀░░░░▀░░░░▀▀░░▀░▀░▀░▀░▀▀▀│ -;; │░Created░By░Aditya░Shakya░@adi1090x░░░░░░░░░░░░░░░░░│ -;; └────────────────────────────────────────────────────┘ - -;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ - -[bar] -fill = ⏽ -empty = ⏽ -indicator = ⏽ -; Nerd font :   ,  ⏽,  樂 籠 錄 , 雷 絛 - -[module/volume] -type = internal/alsa - -; Soundcard to be used -; Usually in the format hw:# where # is the card number -; You can find the different card numbers in `/proc/asound/cards` -master-soundcard = default -speaker-soundcard = default -headphone-soundcard = default - -; Name of the master, speaker and headphone mixers -; Use the following command to list available mixer controls: -; $ amixer scontrols | sed -nr "s/.*'([[:alnum:]]+)'.*/\1/p" -; If master, speaker or headphone-soundcard isn't the default, -; use `amixer -c # scontrols` instead where # is the number -; of the master, speaker or headphone soundcard respectively -; -; Default: Master -master-mixer = Master - -; Optionally define speaker and headphone mixers -; Default: none -;;speaker-mixer = Speaker -; Default: none -;;headphone-mixer = Headphone - -; NOTE: This is required if headphone_mixer is defined -; Use the following command to list available device controls -; $ amixer controls | sed -r "/CARD/\!d; s/.*=([0-9]+).*name='([^']+)'.*/printf '%3.0f: %s\n' '\1' '\2'/e" | sort -; You may also need to use `amixer -c # controls` as above for the mixer names -; Default: none -;;headphone-id = 9 - -; Use volume mapping (similar to amixer -M and alsamixer), where the increase in volume is linear to the ear -; Default: false -;;mapped = true - -; Interval for volume increase/decrease (in percent points) -; Default: 5 -interval = 5 - -; Available tags: -; (default) -; -; -format-volume = -format-volume-prefix =  -format-volume-prefix-padding = 1 -format-volume-prefix-background = ${color.blue} -format-volume-prefix-foreground = ${color.foreground} -format-volume-background = ${color.background-alt} -format-volume-foreground = ${color.foreground} -format-volume-overline = ${color.background} -format-volume-underline = ${color.background} - -; Available tags: -; (default) -; -; -format-muted = -format-muted-prefix =  -format-muted-prefix-padding = 1 -format-muted-prefix-background = ${color.red} -format-muted-overline = ${color.background} -format-muted-underline = ${color.background} - -; Available tokens: -; %percentage% (default) -label-volume = %percentage%% -label-volume-background = ${color.background-alt} -label-volume-padding = 1 - -; Available tokens: -; %percentage% (default -label-muted = "Muted" -label-muted-foreground = ${color.foreground} -label-muted-background = ${color.background-alt} -label-muted-padding = 1 - -; Only applies if is used -ramp-volume-0 =  -ramp-volume-1 =  -ramp-volume-2 =  -ramp-volume-background = ${color.blue} -ramp-volume-padding = 1 - -; Only applies if is used -bar-volume-format = " %fill%%indicator%%empty% " -bar-volume-width = 10 -bar-volume-gradient = false - -bar-volume-indicator = ${bar.indicator} -bar-volume-indicator-foreground = ${color.foreground} - -bar-volume-fill = ${bar.fill} -bar-volume-foreground-0 = ${color.foreground} -bar-volume-foreground-1 = ${color.foreground} -bar-volume-foreground-2 = ${color.foreground} - -bar-volume-empty = ${bar.empty} -bar-volume-empty-foreground = ${color.gray} - -; If defined, it will replace when -; headphones are plugged in to `headphone_control_numid` -; If undefined, will be used for both -; Only applies if is used -ramp-headphones-0 =  -ramp-headphones-background = ${color.blue} -ramp-headphones-padding = 1 - -;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ - -[module/brightness] -;type = internal/xbacklight -type = internal/backlight - -; Use the following command to list available cards: -; $ ls -1 /sys/class/backlight/ -;card = intel_backlight -card = amdgpu_bl0 - -; Available tags: -;