typical update of files
This commit is contained in:
0
stuff/manual-programs/suckless/dmenu-5.2/dmenu
Normal file → Executable file
0
stuff/manual-programs/suckless/dmenu-5.2/dmenu
Normal file → Executable file
0
stuff/manual-programs/suckless/dmenu-5.2/dmenu_path
Normal file → Executable file
0
stuff/manual-programs/suckless/dmenu-5.2/dmenu_path
Normal file → Executable file
0
stuff/manual-programs/suckless/dmenu-5.2/dmenu_run
Normal file → Executable file
0
stuff/manual-programs/suckless/dmenu-5.2/dmenu_run
Normal file → Executable file
0
stuff/manual-programs/suckless/dmenu-5.2/stest
Normal file → Executable file
0
stuff/manual-programs/suckless/dmenu-5.2/stest
Normal file → Executable file
0
stuff/manual-programs/suckless/dwm-bak/dwm
Normal file → Executable file
0
stuff/manual-programs/suckless/dwm-bak/dwm
Normal file → Executable file
0
stuff/manual-programs/suckless/dwm/dwm
Normal file → Executable file
0
stuff/manual-programs/suckless/dwm/dwm
Normal file → Executable file
@@ -223,6 +223,7 @@ static void resizemouse(const Arg *arg);
|
||||
static void resizerequest(XEvent *e);
|
||||
static void restack(Monitor *m);
|
||||
static void run(void);
|
||||
static void runAutostart(void);
|
||||
static void scan(void);
|
||||
static int sendevent(Window w, Atom proto, int m, long d0, long d1, long d2, long d3, long d4);
|
||||
static void sendmon(Client *c, Monitor *m);
|
||||
@@ -1554,6 +1555,12 @@ run(void)
|
||||
handler[ev.type](&ev); /* call handler */
|
||||
}
|
||||
|
||||
void
|
||||
runAutostart(void) {
|
||||
system("cd ~/.config/dwm; ./autostart_blocking.sh");
|
||||
system("cd ~/.config/dwm; ./autostart.sh &");
|
||||
}
|
||||
|
||||
void
|
||||
scan(void)
|
||||
{
|
||||
@@ -2509,6 +2516,7 @@ main(int argc, char *argv[])
|
||||
die("pledge");
|
||||
#endif /* __OpenBSD__ */
|
||||
scan();
|
||||
runAutostart();
|
||||
run();
|
||||
cleanup();
|
||||
XCloseDisplay(dpy);
|
||||
|
||||
Binary file not shown.
@@ -30,3 +30,4 @@ WEBEXTCFLAGS = -fPIC $(WEBEXTINC)
|
||||
|
||||
# compiler
|
||||
#CC = c99
|
||||
CC = gcc -std=c99
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -15,11 +15,13 @@ fsyncb () {
|
||||
fi
|
||||
}
|
||||
|
||||
syncfile="stuff .bash_profile .bashrc .surf .wezterm.lua .tmux.conf .gtkrc-2.0 .profile .urlview .vimrc .xinitrc .Xresources .zshrc .newsboat .gnupg .ssh .local/bin/lf-gadgets .config/dwm .config/awesome .config/gtk-3.0 .config/rofi .config/lf .config/picom.conf .config/nvim .config/screenkey.json .config/vesktop/themes .keepass .config/Pinta"
|
||||
syncfile="stuff .bash_profile .bashrc .surf/styles .wezterm.lua .tmux.conf .gtkrc-2.0 .profile .urlview .vimrc .xinitrc .Xresources .zshrc .p10k.zsh .newsboat .gnupg .ssh .local/bin/lf-gadgets .config/dwm .config/awesome .config/wlxoverlay .config/vesktop/themes .config/gtk-3.0 .config/rofi .config/lf .config/mutt .config/zsh .config/picom.conf .config/nvim .config/atuin .config/screenkey.json .config/vesktop/themes .keepass .config/Pinta .local/share/applications/custom"
|
||||
|
||||
# se shit
|
||||
syncfile="$syncfile /home/iceyrazor/.local/share/Steam/steamapps/compatdata/244850/pfx/drive_c/users/steamuser/AppData/Roaming/SpaceEngineers/Blueprints /home/iceyrazor/.local/share/Steam/steamapps/compatdata/244850/pfx/drive_c/users/steamuser/AppData/Roaming/SpaceEngineers/IngameScripts /home/iceyrazor/.local/share/Steam/steamapps/compatdata/244850/pfx/drive_c/users/steamuser/AppData/Roaming/SpaceEngineers/Saves"
|
||||
|
||||
#sync game stuff
|
||||
target="/home/iceyrazor/mnt-backups/LINUX FILES/home/iceyrazor"
|
||||
exclude="--exclude **/cc-survival --exclude node_modules --exclude dontsync --exclude **/iceys-linux-stuffs"
|
||||
exclude="--exclude node_modules --exclude node_modules_23 --exclude dontsync --exclude **/iceys-linux-stuffs --exclude **/target --exclude LinVAM/pyenv"
|
||||
|
||||
|
||||
fsynca
|
||||
@@ -27,4 +29,3 @@ fsynca
|
||||
printf "==CC-survival unsynced\n\n"
|
||||
|
||||
fsyncb
|
||||
|
||||
|
||||
@@ -1,21 +1,21 @@
|
||||
cd ~/
|
||||
|
||||
fsync () {
|
||||
rsync -RUurvn --size-only --delete-after $exclude $syncfile "$target"
|
||||
rsync -RUurvn --delete-after $exclude $syncfile "$target"
|
||||
printf "===commit these changes?\n"
|
||||
read -p "y/n: " uinput
|
||||
if [ "$uinput" != "n" ] && [ "$uinput" != "N" ]; then
|
||||
printf "\n\n\n"
|
||||
rsync -PRUurv --size-only --delete-after $exclude $syncfile "$target"
|
||||
rsync -PRUurv --delete-after $exclude $syncfile "$target"
|
||||
printf "\n===end sync\n---------\n\n"
|
||||
fi
|
||||
}
|
||||
|
||||
syncfile=".bash_profile .bashrc .gtkrc-2.0 .wezterm.lua .profile .urlview .vimrc .Xresources .zshrc .config/dwm .config/awesome .config/rofi .config/lf .config/picom.conf .config/nvim .config/screenkey.json stuff/manual-programs/suckless"
|
||||
syncfile=".bash_profile .bashrc .gtkrc-2.0 .tmux.conf .wezterm.lua .profile .urlview .vimrc .Xresources .zshrc .p10k.zsh .config/dwm .config/awesome .config/rofi .config/lf .config/picom.conf .config/nvim .config/atuin .config/screenkey.json stuff/manual-programs/suckless"
|
||||
|
||||
syncfile="$syncfile stuff/scripts/system/stbar stuff/scripts/system/url-handler.sh stuff/scripts/system/backup/copy-to-git.sh stuff/scripts/system/backup/backup.sh"
|
||||
syncfile="$syncfile stuff/scripts/system/neoboot.sh stuff/scripts/system/math.sh stuff/scripts/system/bri.sh stuff/scripts/system/restart-pipe.sh stuff/scripts/system/set-pri-java.sh"
|
||||
target=~/stuff/iceys-linux-stuffs
|
||||
exclude="--exclude check_weth.sh --exclude lua-ls-cc-tweaked --exclude .config/nvim/plugin"
|
||||
exclude="--exclude check_weth.sh --exclude awesome/default --exclude lua-ls-cc-tweaked --exclude .config/nvim/plugin"
|
||||
|
||||
fsync
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#!/bin/bash
|
||||
normal() {
|
||||
randnum=$(($RANDOM % 2))
|
||||
|
||||
@@ -21,7 +22,7 @@ laptop() {
|
||||
lsblk --filter 'NAME=~"sd[abcde]"' -o NAME,MOUNTPOINTS | lolcat -as 10000 -S 100
|
||||
}
|
||||
|
||||
if [[ "$(cat /etc/hostname)" == "iceynethp1" ]]; then
|
||||
if [[ "$(cat /etc/hostname)" == "Witchen" ]]; then
|
||||
laptop
|
||||
else
|
||||
normal
|
||||
|
||||
@@ -3,7 +3,7 @@ delim='|'
|
||||
|
||||
curr_dir="$(cd "$(dirname "$0")" && pwd)"
|
||||
#wifi_device=$(cat $curr_dir/config.txt | grep wifi_device | sed 's/wifi_device://')
|
||||
wifi_device="wlp4s0"
|
||||
wifi_device="wlan0"
|
||||
# curr_dir/check_weth.sh "$cur_dir" &
|
||||
|
||||
|
||||
@@ -32,28 +32,34 @@ if [ "$(ls /sys/class/power_supply/BAT0/)" ]; then
|
||||
echo "$delim"
|
||||
fi
|
||||
|
||||
#mic
|
||||
|
||||
[ "$(pactl get-source-mute @DEFAULT_SOURCE@)" == "Mute: no" ] && echo || echo
|
||||
|
||||
echo "$delim"
|
||||
|
||||
#rss
|
||||
|
||||
echo RSS:$(newsboat -x print-unread|sed "s/\s.*//; s/Error:/IA/")
|
||||
echo $(newsboat -x print-unread|sed "s/\s.*//; s/Error:/IA/")
|
||||
|
||||
echo "$delim"
|
||||
|
||||
if [ "$(cat $curr_dir/config.txt | grep full_stat)" == "full_stat:true" ]; then
|
||||
#cpu
|
||||
echo CPU:$(ps axch -o cmd:15,%cpu --sort=-%cpu | sed "1q")%
|
||||
echo $(ps axch -o cmd:15,%cpu --sort=-%cpu | sed "1q")%
|
||||
|
||||
echo "$delim"
|
||||
|
||||
#mem
|
||||
echo Mem:$(free -mlw | grep Mem: | sed "s/Mem\:\W*[0-9]*\W*//; s/ .*//")
|
||||
echo $(free -mlw | grep Mem: | sed "s/Mem\:\W*[0-9]*\W*//; s/ .*//")
|
||||
echo $(ps axch -o cmd:15,%mem --sort=-%mem | sed "1q")%
|
||||
|
||||
else
|
||||
#cpu
|
||||
echo CPU:$(ps axch -o cmd:15,%cpu --sort=-%cpu | sed "1q" | sed 's/.* //')%
|
||||
echo $(ps axch -o cmd:15,%cpu --sort=-%cpu | sed "1q" | sed 's/.* //')%
|
||||
|
||||
#mem
|
||||
echo Mem:$(free -mlw | grep Mem: | sed "s/Mem\:\W*[0-9]*\W*//; s/ .*//")
|
||||
echo $(free -mlw | grep Mem: | sed "s/Mem\:\W*[0-9]*\W*//; s/ .*//")
|
||||
|
||||
fi
|
||||
echo "$delim"
|
||||
@@ -62,7 +68,7 @@ echo "$delim"
|
||||
#echo \/$(df -h | grep /dev/nvme0n1p3 | sed "s/\/dev\/nvme0n1p3 *[0-9]*.[0-9]*. *[0-9]*.[0-9]*. *//" | sed "s/ .*//")
|
||||
|
||||
#echo \~$(df -h | grep /dev/nvme0n1p4 | sed "s/\/dev\/nvme0n1p4 *[0-9]*.[0-9]*. *[0-9]*.[0-9]*. *//" | sed "s/ .*//")
|
||||
echo $(df -h -x=used /dev/mapper/system-root | sed '1d' | awk '{print $4}')
|
||||
echo $(df -h -x=used /dev/mapper/artix-root | sed '1d' | awk '{print $4}'| sed 's/[^0-9]*//g')
|
||||
|
||||
echo "$delim"
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ clipboard
|
||||
firefox
|
||||
"
|
||||
|
||||
choice=$(echo "$choices" | sed /^$/d | dmenu -i -p "$prompt_message")
|
||||
choice=$(echo "$choices" | sed /^$/d | rofi -dmenu "$prompt_message")
|
||||
|
||||
if [ "$choice" == "clipboard" ]; then
|
||||
printf "$url" | xclip -selection clipboard
|
||||
|
||||
Reference in New Issue
Block a user