Compare commits

...

7 Commits

18 changed files with 240 additions and 53 deletions

12
.bashrc
View File

@ -11,6 +11,7 @@ PS1='[\u@\h \W]\$ '
alias ll='ls -alF' alias ll='ls -alF'
alias sd="cd \$(find . -type d -not -path '*/.*' 2>/dev/null | sed 's/^..//' | fzf)" alias sd="cd \$(find . -type d -not -path '*/.*' 2>/dev/null | sed 's/^..//' | fzf)"
alias asd="cd \$(find . -type d 2>/dev/null | sed 's/^..//' | fzf)" alias asd="cd \$(find . -type d 2>/dev/null | sed 's/^..//' | fzf)"
alias cls="printf '\033[2J\033[3J\033[1;1H'"
export PATH=$PATH:/home/andreas/ext_sw/flutter/bin export PATH=$PATH:/home/andreas/ext_sw/flutter/bin
export PATH=$PATH:/home/andreas/.local/bin export PATH=$PATH:/home/andreas/.local/bin
@ -18,15 +19,16 @@ export PATH=$PATH:/home/andreas/.local/bin
alias get-idf='. $HOME/git/esp-idf/export.sh' alias get-idf='. $HOME/git/esp-idf/export.sh'
alias clang-idf='export IDF_TOOLCHAIN=clang && . $HOME/git/esp-idf/export.sh' alias clang-idf='export IDF_TOOLCHAIN=clang && . $HOME/git/esp-idf/export.sh'
alias c='cd ~/.config' alias ic='cd ~/.config/i3'
alias nc='cd ~/.config/nvim' alias nc='cd ~/.config/nvim'
alias enc='nvim ~/.config/nvim && nvim'
alias ebc='nvim ~/.bashrc' alias ebc='nvim ~/.bashrc'
alias eic='nvim ~/.config/i3/config'
alias ntp='cd ~/Documents/kit/NTP/tasks' alias ait='cd ~/Documents/kit/AIT'
alias kit='cd ~/Documents/kit'
alias eml='cd ~/Documents/kit/EMLLAB/emllab-challenge && . venv/bin/activate' alias eml='cd ~/Documents/kit/EMLLAB/emllab-challenge && . venv/bin/activate'
alias let='cd ~/git/ba-letter' alias let='cd ~/git/ba-letter'
alias ams='cd ~/Documents/kit/AMS/'
alias hyp='cd ~/git/HyperLink_SW'
source /usr/share/git/completion/git-completion.bash source /usr/share/git/completion/git-completion.bash

View File

@ -1,13 +1,71 @@
exec_always --no-startup-id feh --bg-scale ~/.config/i3/wallpaper.jpg # Workspaces
set $ws1 "1: Dev"
set $ws2 "2: Firefox"
set $ws3 "3: Management"
set $ws4 "4"
set $ws5 "5"
set $ws6 "6"
set $ws7 "7: Music"
set $ws8 "8"
set $ws9 "9"
set $ws10 "10"
bindsym $mod+1 workspace number $ws1
bindsym $mod+2 workspace number $ws2
bindsym $mod+3 workspace number $ws3
bindsym $mod+4 workspace number $ws4
bindsym $mod+5 workspace number $ws5
bindsym $mod+6 workspace number $ws6
bindsym $mod+7 workspace number $ws7
bindsym $mod+8 workspace number $ws8
bindsym $mod+9 workspace number $ws9
bindsym $mod+0 workspace number $ws10
bindsym $mod+Shift+1 move container to workspace number $ws1
bindsym $mod+Shift+2 move container to workspace number $ws2
bindsym $mod+Shift+3 move container to workspace number $ws3
bindsym $mod+Shift+4 move container to workspace number $ws4
bindsym $mod+Shift+5 move container to workspace number $ws5
bindsym $mod+Shift+6 move container to workspace number $ws6
bindsym $mod+Shift+7 move container to workspace number $ws7
bindsym $mod+Shift+8 move container to workspace number $ws8
bindsym $mod+Shift+9 move container to workspace number $ws9
bindsym $mod+Shift+0 move container to workspace number $ws10
# assign [class="firefox"] $ws2
assign [class="Spotify"] $ws7
exec --no-startup-id i3-msg 'workspace $ws2; exec firefox'
exec --no-startup-id i3-msg 'workspace $ws1; exec kitty; $ws1'
# Multiple monitors
workspace $ws1 output DP-1-3 eDP-1
workspace $ws2 output DP-1-3 eDP-1
workspace $ws3 output DP-1-3 eDP-1
workspace $ws4 output DP-1-3 eDP-1
workspace $ws5 output eDP-1
workspace $ws6 output eDP-1
workspace $ws7 output eDP-1
workspace $ws8 output eDP-1
exec_always --no-startup-id xrandr --output eDP-1 --primary --mode 1920x1080 --pos 1920x903 --rotate normal --output DP-1-3 --mode 1920x1200 --pos 0x0 --rotate normal
bindsym $mod+m exec --no-startup-id xrandr --output eDP-1 --primary --mode 1920x1080 --pos 1920x903 --rotate normal --output DP-1-3 --mode 1920x1200 --pos 0x0 --rotate normal
# bindsym $mod+m exec --no-startup-id xrandr --output HDMI2 --auto --right-of eDP1
# Normal stuff
exec_always --no-startup-id "picom --config ~/.config/picom/picom.conf" exec_always --no-startup-id "picom --config ~/.config/picom/picom.conf"
exec_always --no-startup-id ~/.config/polybar/launch.sh & exec_always --no-startup-id ~/.config/polybar/launch.sh &
exec_always --no-startup-id feh --bg-scale ~/.config/i3/wallpapers/mountains.jpg
for_window [class="^.*"] border pixel 3 for_window [class="^.*"] border pixel 3
default_floating_border none default_floating_border none
default_floating_border normal 0 default_floating_border normal 0
hide_edge_borders smart hide_edge_borders smart
gaps inner 8 gaps inner 20
smart_gaps on smart_gaps on

View File

@ -1,38 +0,0 @@
set $ws1 "1: Terminal"
set $ws2 "2: Firefox"
set $ws3 "3: Music"
set $ws4 "4"
set $ws5 "5"
set $ws6 "6"
set $ws7 "7"
set $ws8 "8"
set $ws9 "9"
set $ws10 "10"
bindsym $mod+1 workspace number $ws1
bindsym $mod+2 workspace number $ws2
bindsym $mod+3 workspace number $ws3
bindsym $mod+4 workspace number $ws4
bindsym $mod+5 workspace number $ws5
bindsym $mod+6 workspace number $ws6
bindsym $mod+7 workspace number $ws7
bindsym $mod+8 workspace number $ws8
bindsym $mod+9 workspace number $ws9
bindsym $mod+0 workspace number $ws10
bindsym $mod+Shift+1 move container to workspace number $ws1
bindsym $mod+Shift+2 move container to workspace number $ws2
bindsym $mod+Shift+3 move container to workspace number $ws3
bindsym $mod+Shift+4 move container to workspace number $ws4
bindsym $mod+Shift+5 move container to workspace number $ws5
bindsym $mod+Shift+6 move container to workspace number $ws6
bindsym $mod+Shift+7 move container to workspace number $ws7
bindsym $mod+Shift+8 move container to workspace number $ws8
bindsym $mod+Shift+9 move container to workspace number $ws9
bindsym $mod+Shift+0 move container to workspace number $ws10
assign [class="firefox"] $ws2
assign [class="Spotify"] $ws3
exec --no-startup-id firefox
exec --no-startup-id i3-msg 'workspace $ws1; exec kitty; $ws1'

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

View File

Before

Width:  |  Height:  |  Size: 514 KiB

After

Width:  |  Height:  |  Size: 514 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 779 KiB

View File

@ -3,4 +3,4 @@
include current-theme.conf include current-theme.conf
# END_KITTY_THEME # END_KITTY_THEME
# #
background_opacity 0.95 background_opacity 0.87

View File

@ -3,7 +3,7 @@ return {
'kkoomen/vim-doge', 'kkoomen/vim-doge',
build = ':call doge#install()', build = ':call doge#install()',
init = function() init = function()
vim.g.doge_doc_standard_cpp = 'doxygen_qt' vim.g.doge_doc_standard_cpp = 'doxygen_cpp_comment_slash'
vim.g.doge_mapping_comment_jump_forward = '<c-j>' vim.g.doge_mapping_comment_jump_forward = '<c-j>'
vim.g.doge_mapping_comment_jump_backward = '<c-k>' vim.g.doge_mapping_comment_jump_backward = '<c-k>'
end end

View File

@ -28,8 +28,11 @@ return {
highlight = { highlight = {
enable = true, enable = true,
additional_vim_regex_highlighting = false, -- additional_vim_regex_highlighting = false,
disable = { -- disable = {
-- "latex"
-- },
additional_vim_regex_highlighting = {
"latex" "latex"
} }
} }

View File

@ -1,7 +1,10 @@
return { return {
{ {
"lervag/vimtex", "lervag/vimtex",
ft = {"tex", "bib"}, ft = {
"tex",
"bib"
},
config = function() config = function()
-- General configuration -- General configuration
@ -24,7 +27,27 @@ return {
-- Concealment -- Concealment
vim.cmd([[set conceallevel=1]]) vim.cmd([[set conceallevel=1]])
vim.g.tex_conceal = 'abdmg' vim.cmd([[
let g:vimtex_syntax_conceal = {
\ 'accents': 1,
\ 'ligatures': 1,
\ 'cites': 1,
\ 'fancy': 1,
\ 'spacing': 0,
\ 'greek': 1,
\ 'math_bounds': 1,
\ 'math_delimiters': 1,
\ 'math_fracs': 1,
\ 'math_super_sub': 0,
\ 'math_symbols': 1,
\ 'sections': 0,
\ 'styles': 0,
\}
let g:vimtex_syntax_custom_cmds = [
\ {'name': 'bm', 'mathmode': 1, 'argstyle': 'bold', 'conceal': 1},
\]
]])
-- Synctex configuration -- Synctex configuration

View File

@ -1,6 +1,8 @@
vim.keymap.set("v", "J", ":m '>+1<CR>gv=gv") vim.keymap.set("v", "J", ":m '>+1<CR>gv=gv")
vim.keymap.set("v", "K", ":m '<-2<CR>gv=gv") vim.keymap.set("v", "K", ":m '<-2<CR>gv=gv")
vim.keymap.set("n", "<C-x>", "<C-w>c")
vim.keymap.set("n", "<C-d>", "<C-d>zz") vim.keymap.set("n", "<C-d>", "<C-d>zz")
vim.keymap.set("n", "<C-u>", "<C-u>zz") vim.keymap.set("n", "<C-u>", "<C-u>zz")
vim.keymap.set("n", "n", "nzzzv") vim.keymap.set("n", "n", "nzzzv")

View File

@ -0,0 +1,83 @@
----------------
-- Abbreviations
----------------
local ls = require("luasnip")
local s = ls.snippet
local sn = ls.snippet_node
local t = ls.text_node
local i = ls.insert_node
local f = ls.function_node
local d = ls.dynamic_node
local fmt = require("luasnip.extras.fmt").fmt
local fmta = require("luasnip.extras.fmt").fmta
local rep = require("luasnip.extras").rep
local line_begin = require("luasnip.extras.expand_conditions").line_begin
-----------
-- Snippets
-----------
return {
s({trig="()", wordTrig=false, snippetType="autosnippet"},
{
t("("),
i(1),
t(")"),
i(0),
}
),
s({trig="[]", wordTrig=false, snippetType="autosnippet"},
{
t("["),
i(1),
t("]"),
i(0),
}
),
s({trig="{}", wordTrig=false, snippetType="autosnippet"},
{
t("{"),
i(1),
t("}"),
i(0),
}
),
s({trig="<>", wordTrig=false, snippetType="autosnippet"},
{
t("<"),
i(1),
t(">"),
i(0),
}
),
s({trig="\"\"", wordTrig=false, snippetType="autosnippet"},
{
t("\""),
i(1),
t("\""),
i(0),
}
),
s({trig="''", wordTrig=false, snippetType="autosnippet"},
{
t("'"),
i(1),
t("'"),
i(0),
}
),
} -- return

View File

@ -186,6 +186,60 @@ s({trig="csssec"},
) )
), ),
-- s({trig="()", wordTrig=false, snippetType="autosnippet"},
-- {
-- t("("),
-- i(1),
-- t(")"),
-- i(0),
-- }
-- ),
--
-- s({trig="[]", wordTrig=false, snippetType="autosnippet"},
-- {
-- t("["),
-- i(1),
-- t("]"),
-- i(0),
-- }
-- ),
--
-- s({trig="{}", wordTrig=false, snippetType="autosnippet"},
-- {
-- t("{"),
-- i(1),
-- t("}"),
-- i(0),
-- }
-- ),
--
-- s({trig="<>", wordTrig=false, snippetType="autosnippet"},
-- {
-- t("<"),
-- i(1),
-- t(">"),
-- i(0),
-- }
-- ),
--
-- s({trig="\"\"", wordTrig=false, snippetType="autosnippet"},
-- {
-- t("\""),
-- i(1),
-- t("\""),
-- i(0),
-- }
-- ),
--
-- s({trig="''", wordTrig=false, snippetType="autosnippet"},
-- {
-- t("'"),
-- i(1),
-- t("'"),
-- i(0),
-- }
-- ),
} -- return } -- return

View File

@ -156,7 +156,7 @@ label-connected = %{F#F0C674}%ifname%%{F-} %local_ip%
type = internal/date type = internal/date
interval = 1 interval = 1
date = %a, %d %B %Y | %I:%M %p date = %a, %d %B %Y | %H:%M
;date = %H:%M ;date = %H:%M
;date-alt = %d-%m-%Y %r ;date-alt = %d-%m-%Y %r
;%H:%M:%S ;%H:%M:%S