Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
HynDuf committed Oct 30, 2022
1 parent 99f505f commit a59faeb
Show file tree
Hide file tree
Showing 4 changed files with 234 additions and 13 deletions.
19 changes: 6 additions & 13 deletions .config/nvim/lua/custom/autocmds.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ local autocmd = vim.api.nvim_create_autocmd
-- Ibus typing
local ibus_cur = "xkb:us::eng"
autocmd("InsertEnter", {
pattern = { "*.tex", "*.md" },
pattern = { "*.tex", "*.md", "*.txt" },
callback = function()
os.execute("ibus engine " .. ibus_cur)
end,
})

autocmd("InsertLeave", {
pattern = { "*.tex", "*.md" },
pattern = { "*.tex", "*.md", "*.txt" },
callback = function()
local f = io.popen("ibus engine", "r")
if f then
Expand All @@ -27,7 +27,7 @@ local function sed(from, to, fname)
end

-- reloads kitty for current focused window only
local function liveReload_xresources()
local function liveReloadKitty()
vim.cmd(
string.format "silent !kill -s SIGUSR1 $(xprop -id $(xdotool getwindowfocus) | grep '_NET_WM_PID' | grep -oE '[[:digit:]]*$')"
)
Expand All @@ -37,8 +37,8 @@ autocmd({ "BufNewFile", "BufRead" }, {
callback = function(ctx)
-- remove terminal padding
sed("window_margin_width 20", "window_margin_width 0", "~/.config/kitty/kitty.conf")
liveReload_xresources()
-- revert xresources change but dont reload it
liveReloadKitty()
-- revert kitty margin width change but dont reload it
sed("window_margin_width 0", "window_margin_width 20", "~/.config/kitty/kitty.conf")
vim.api.nvim_del_autocmd(ctx.id)
end,
Expand All @@ -48,7 +48,7 @@ autocmd({ "BufNewFile", "BufRead" }, {
autocmd("VimLeavePre", {
callback = function()
sed("window_margin_width 0", "window_margin_width 20", "~/.config/kitty/kitty.conf")
liveReload_xresources()
liveReloadKitty()
end,
})

Expand All @@ -67,13 +67,6 @@ autocmd("FileChangedShellPost", {
end,
})

autocmd("FileType", {
pattern = "cpp",
callback = function()
vim.cmd(string.format "silent !ulimit -s unlimited")
end,
})

autocmd("BufRead", {
pattern = { "*.inp", "*.out" },
callback = function()
Expand Down
2 changes: 2 additions & 0 deletions .zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,5 @@ source $(dirname $(gem which colorls))/tab_complete.sh
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
source /usr/share/z/z.sh

ulimit -s unlimited

4 changes: 4 additions & 0 deletions bin/update-dotfiles
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,7 @@ for f in "${needUpdate[@]}"; do
rm -rf "${dotfilesPath}/${f}"
mkdir -p "$(dirname "${dotfilesPath}/${f}")" && cp -r "$HOME/${f}" "${dotfilesPath}/${f}"
done


# List all installed packages
yay -Qeqa > "${dotfilesPath}/packages.txt"
222 changes: 222 additions & 0 deletions packages.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,222 @@
amd-ucode
amf-amdgpu-pro
android-tools
anki
asciidoc
auto-cpufreq
autoconf
automake
base
betterdiscord-installer
binutils
bison
blueman
bluez
bluez-utils
brightnessctl
bspwm
btop
cava
clang
cmake
cmatrix
cowsay
cuda
cudnn
dhcpcd
discord
dmenu
dosfstools
dunst
efibootmgr
eww-git
fakeroot
fd
feh
file
findutils
firefox
flex
fortune-mod
gawk
gcc
gd
gettext
git
gnome-keyring
gnu-netcat
google-chrome
grep
groff
grub
gzip
i3lock-color
ibus
ibus-bamboo
imagemagick
jdk-openjdk
jre-openjdk
kitty
libconfig
libev
libtool
libva-mesa-driver
libva-utils
linux
linux-firmware
linux-headers
lsof
lxappearance
m4
maim
make
mars-mips
maven
mesa-vdpau
meson
miniconda3
mpv
mtools
nano
nbfc-linux
neofetch
neovim
nerd-fonts-fira-code
nerd-fonts-jetbrains-mono
nerd-fonts-sarasa-mono
network-manager-applet
networkmanager
ngrok
noto-fonts
noto-fonts-cjk
noto-fonts-emoji
noto-fonts-extra
npm
ntp
nvidia
nvidia-settings
nvidia-utils
nvtop
nyx
obsidian
opendoas
openmp
openssh
os-prober
p7zip
pacman
pandoc
papirus-icon-theme
patch
pavucontrol
pinta
pkgconf
playerctl
polybar
pomo
poppler
postman-bin
pulseaudio
pulseaudio-bluetooth
ranger
rar
ripgrep
rofi
rofi-calc
rofi-emoji
ruby
rust-analyzer
rxfetch
screenkey
sed
shellcheck
simplescreenrecorder
spicetify-cli
spotify
sudo
sxhkd
teams
teamviewer
texinfo
tokei
tor
torbrowser-launcher
tree
ttf-caladea
ttf-carlito
ttf-croscore
ttf-dejavu
ttf-droid
ttf-fira-code
ttf-font-awesome
ttf-font-awesome-4
ttf-iosevka-nerd
ttf-ms-win10-auto
ttf-ubuntu-font-family
ueberzug
usb_modeswitch
usbutils
uthash
vim
visual-studio-code-bin
vlc
which
xampp
xclip
xdotool
xf86-video-amdgpu
xf86-video-vesa
xorg-bdftopcf
xorg-docs
xorg-font-util
xorg-fonts-100dpi
xorg-fonts-75dpi
xorg-fonts-encodings
xorg-iceauth
xorg-mkfontscale
xorg-server
xorg-server-common
xorg-server-devel
xorg-server-xephyr
xorg-server-xnest
xorg-server-xvfb
xorg-sessreg
xorg-setxkbmap
xorg-smproxy
xorg-x11perf
xorg-xauth
xorg-xbacklight
xorg-xcmsdb
xorg-xcursorgen
xorg-xdpyinfo
xorg-xdriinfo
xorg-xev
xorg-xgamma
xorg-xhost
xorg-xinit
xorg-xinput
xorg-xkbcomp
xorg-xkbevd
xorg-xkbutils
xorg-xkill
xorg-xlsatoms
xorg-xlsclients
xorg-xmodmap
xorg-xpr
xorg-xprop
xorg-xrandr
xorg-xrdb
xorg-xrefresh
xorg-xset
xorg-xsetroot
xorg-xvinfo
xorg-xwayland
xorg-xwd
xorg-xwininfo
xorg-xwud
yay
z
zathura
zathura-pdf-mupdf
zoom
zsh

0 comments on commit a59faeb

Please sign in to comment.