From 41111989d02a6ad1e66b37dc58a21dd761d8f573 Mon Sep 17 00:00:00 2001 From: nic Date: Sat, 11 May 2024 22:41:54 -0400 Subject: now using sudo --- .config/nvim/init.vim | 6 +++--- .config/shell/profile | 2 +- .config/x11/xprofile | 6 ++---- 3 files changed, 6 insertions(+), 8 deletions(-) (limited to '.config') diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index c707c68..4a8f775 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -29,7 +29,7 @@ set noswapfile set nobackup colorscheme molokai -" make it so theme as no black background like default +" make it so molokai respect xcompmgr hi Normal ctermbg=NONE hi NonText ctermbg=NONE @@ -67,8 +67,8 @@ hi NonText ctermbg=NONE " Runs a script that cleans out tex build files whenever I close out of a .tex file. autocmd VimLeave *.tex !texclear % -" Save file as doas? on files that require root permission -" cabbrev w!! execute 'silent! write !doas tee % >/dev/null' edit! +" Save file as sudo on files that require root permission + cabbrev w!! execute 'silent! write !sudo tee % >/dev/null' edit! " Bindings " Spell-check set to o, 'o' for 'orthography': diff --git a/.config/shell/profile b/.config/shell/profile index 4a58f2e..d4479b0 100644 --- a/.config/shell/profile +++ b/.config/shell/profile @@ -44,4 +44,4 @@ export W3M_DIR="$XDG_CONFIG_HOME/w3m" [ "$(tty)" = "/dev/tty1" ] && ! pidof -s Xorg >/dev/null 2>&1 && exec startx "$XINITRC" # Switch escape and caps lock -doas loadkeys ${XDG_DATA_HOME:-$HOME/.local/share}/ttymaps.kmap 2>/dev/null +sudo -n loadkeys ${XDG_DATA_HOME:-$HOME/.local/share}/ttymaps.kmap 2>/dev/null diff --git a/.config/x11/xprofile b/.config/x11/xprofile index 5a3a21c..aff206e 100644 --- a/.config/x11/xprofile +++ b/.config/x11/xprofile @@ -3,11 +3,9 @@ # If you use startx/xinit, this file will also be sourced. xrandr --output DP-4 --mode 1920x1080 --rate 240 -setbg & -slstatus & -autostart="dunst mpd xcompmgr unclutter remapd" -#gentoo-pipewire-launcher +autostart="gentoo-pipewire-launcher setbg dunst mpd xcompmgr unclutter remapd" + for program in $autostart; do pidof -sx "$program" || "$program" & done >/dev/null 2>&1 -- cgit v1.2.3