From e215aeec14eb694a155c88413701c66c31040ae8 Mon Sep 17 00:00:00 2001 From: pryazha Date: Sun, 26 Oct 2025 20:08:56 +0500 Subject: change x11 configs, emacs config --- .config/.Xresources | 8 ++------ .config/.emacs | 12 ------------ .config/.profile | 3 --- .config/mpd.conf | 10 ++-------- scripts/back | 45 +++++++++++++++++++++++++++++++++++++++++++++ scripts/backup | 2 +- 6 files changed, 50 insertions(+), 30 deletions(-) create mode 100755 scripts/back diff --git a/.config/.Xresources b/.config/.Xresources index d60def1..899b99a 100644 --- a/.config/.Xresources +++ b/.config/.Xresources @@ -1,8 +1,4 @@ -Xft.dpi: 96 -Xcursor.theme: miku-cursor-linux - xterm*background: black xterm*foreground: white -xterm*faceName: Iosevka -xterm*faceSize: 18 -# xterm*font: -*-fixed-*-*-*-*-18-*-*-*-*-*-*-* +xterm*font: -*-fixed-medium-*-*-*-18-*-*-*-*-*-iso10646-* +xterm*geometry: 100x40 diff --git a/.config/.emacs b/.config/.emacs index 407eb53..4ac5da8 100644 --- a/.config/.emacs +++ b/.config/.emacs @@ -21,15 +21,3 @@ (set-default 'truncate-lines t) (add-to-list 'default-frame-alist '(font . "Iosevka-16")) (load-theme 'wombat t) -(custom-set-variables - ;; custom-set-variables was added by Custom. - ;; If you edit it by hand, you could mess it up, so be careful. - ;; Your init file should contain only one such instance. - ;; If there is more than one, they won't work right. - '(package-selected-packages '(rfc-mode))) -(custom-set-faces - ;; custom-set-faces was added by Custom. - ;; If you edit it by hand, you could mess it up, so be careful. - ;; Your init file should contain only one such instance. - ;; If there is more than one, they won't work right. - ) diff --git a/.config/.profile b/.config/.profile index fc7d58f..800927f 100644 --- a/.config/.profile +++ b/.config/.profile @@ -6,6 +6,3 @@ PATH="$HOME/.local/bin:$PATH" EDITOR='vi' LOGDIR='~/log' - -PLAN9=/home/pryazha/clone/plan9port export PLAN9 -PATH=$PATH:$PLAN9/bin export PATH diff --git a/.config/mpd.conf b/.config/mpd.conf index ee1c90b..fc93a33 100644 --- a/.config/mpd.conf +++ b/.config/mpd.conf @@ -1,13 +1,7 @@ music_directory "~/music" -playlist_directory "~/.config/mpd/playlists" -state_file "~/.config/mpd/state" +playlist_directory "~/.mpd/playlists" +state_file "~/.mpd/state" auto_update "yes" bind_to_address "127.0.0.1" restore_paused "yes" -max_output_buffer_size "16384" - -audio_output { - type "pipewire" - name "PipeWire Sound Server" -} diff --git a/scripts/back b/scripts/back new file mode 100755 index 0000000..3ad9428 --- /dev/null +++ b/scripts/back @@ -0,0 +1,45 @@ +#!/bin/sh +echorun() +{ + echo $@ + $@ +} +check_commands() +{ + for cmd in $@ ; do + if [ ! `which $cmd` ] ; then + echo "$cmd doesn't exist" + exit + fi + done +} + +check_commands ssh tar rsync + +if ! ssh -q "$1" exit ; then + echo "first argument should be valid ssh connection" + exit +fi + +dirs=' +books +log +music +pictures +projects +studies +' +start=$PWD +today=`date +%d_%m_%Y` + +echorun cd $HOME +for dir in $dirs ; do + if [ -d $dir ] ; then + tarname="$dir"_"$today".tar + echorun tar cf $tarname $dir + echo rsync -avz --progress $tarname $1:backups + else + echo "$dir doesn't exist" + fi +done +echorun cd $start diff --git a/scripts/backup b/scripts/backup index 9650187..e41782d 100755 --- a/scripts/backup +++ b/scripts/backup @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh directories=" $HOME/projects -- cgit v1.2.3-70-g09d2