From f1247bee2d6ed6b0af12da20f4faea88fbd1e502 Mon Sep 17 00:00:00 2001 From: Alessandro Mauri Date: Sat, 26 Dec 2020 13:06:57 +0100 Subject: [PATCH] upedate --- .gitignore | 1 + conf/config/alacritty/alacritty.yml | 10 +++++++--- conf/config/micro/settings.json | 1 - conf/config/scripts/screenshot | 2 +- conf/home/bashrc | 3 +++ conf/home/onsuspend | 2 +- conf/home/xinitrc | 26 +++++++++++++++++--------- 7 files changed, 30 insertions(+), 15 deletions(-) diff --git a/.gitignore b/.gitignore index 7eaf2d1..cf8b10f 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ conf/config/micro/plug/** conf/config/nvim/plugged/** conf/config/nvim/.netrwhist **/*~ +conf/config/micro/backups/** diff --git a/conf/config/alacritty/alacritty.yml b/conf/config/alacritty/alacritty.yml index 72f7423..82cf2ea 100644 --- a/conf/config/alacritty/alacritty.yml +++ b/conf/config/alacritty/alacritty.yml @@ -24,7 +24,7 @@ font: family: monospace italic: family: monospace - size: 8.0 + size: 11.0 colors: # Default colors @@ -76,6 +76,10 @@ cursor: live_config_reload: true +dimensions: + columns: 0 + lines: 0 + # Send ESC (\x1b) before characters when alt is pressed. #alt_send_esc: true @@ -248,6 +252,6 @@ key_bindings: - { key: Insert, mods: Shift, action: PasteSelection } - { key: Home, mods: Control, action: ResetFontSize } - { key: Equals, mods: Control, action: IncreaseFontSize } - - { key: Add, mods: Control, action: IncreaseFontSize } - - { key: Subtract, mods: Control, action: DecreaseFontSize } + - { key: Plus, mods: Control, action: IncreaseFontSize } +# - { key: Subtract, mods: Control, action: DecreaseFontSize } - { key: Minus, mods: Control, action: DecreaseFontSize } diff --git a/conf/config/micro/settings.json b/conf/config/micro/settings.json index 2b3d500..9924e43 100644 --- a/conf/config/micro/settings.json +++ b/conf/config/micro/settings.json @@ -7,7 +7,6 @@ "https://raw.githubusercontent.com/micro-editor/plugin-channel/master/channel.json" ], "pluginrepos": [], - "scrollbar": true, "softwrap": true, "tabsize": 8 } diff --git a/conf/config/scripts/screenshot b/conf/config/scripts/screenshot index 6c524c0..8341da4 100755 --- a/conf/config/scripts/screenshot +++ b/conf/config/scripts/screenshot @@ -1,10 +1,10 @@ #!/bin/sh -slop=$(slop -f "%g") || exit 1 file="$HOME"/Pictures/screen-"$(date '+%d-%m-%y_%H:%M:%S')".png case $1 in "sel") + slop=$(slop -f "%g") || exit 1 exec import -window root -silent -crop "$slop" "$file" ;; *) diff --git a/conf/home/bashrc b/conf/home/bashrc index cacc520..35a7f28 100644 --- a/conf/home/bashrc +++ b/conf/home/bashrc @@ -24,6 +24,9 @@ alias ..='cd ..' alias open='xdg-open' alias buonanotte='sudo poweroff' alias progetti='cd $HOME/Documents/projects' +alias windoze='sudo zzz -R' +alias bruh='make && sudo make install && make clean' +alias mdl='youtube-dl -x --audio-format opus --audio-quality 0 -o "%(title)s.%(ext)s"' # Colored man pages with less(1) export LESS="--RAW-CONTROL-CHARS" diff --git a/conf/home/onsuspend b/conf/home/onsuspend index 60543f1..c39eed0 100755 --- a/conf/home/onsuspend +++ b/conf/home/onsuspend @@ -1,2 +1,2 @@ #!/bin/sh -xset s activate +#xset s activate diff --git a/conf/home/xinitrc b/conf/home/xinitrc index 8ced896..35d19ad 100644 --- a/conf/home/xinitrc +++ b/conf/home/xinitrc @@ -7,6 +7,7 @@ DOTS_ROOT=${STARTW_ROOT}/conf STARTX_LOG_FILE=${STARTW_ROOT}/"err-x11-$(date +%F).log" sysresources=/etc/X11/xinit/.Xresources sysmodmap=/etc/X11/xinit/.Xmodmap +userresources=${HOME}/.Xresources # Boilerplate for systemd-less systems if test -z "${XDG_RUNTIME_DIR}"; then @@ -66,7 +67,8 @@ export _JAVA_AWT_WM_NONREPARENTING=1 # Set the hardware acceleration driver export LIBVA_DRIVER_NAME=radeonsi export VDPAU_DRIVER=radeonsi -export RADV_PERFTEST=aco +#aco is enabled by default +#export RADV_PERFTEST=aco export MOZ_X11_EGL=1 # Set the default interface used by wpa_cli export WPA_CLI_INTERFACE=wlp2s0 @@ -118,8 +120,11 @@ if [ -f "$userresources" ]; then xrdb -merge "$userresources"; fi if [ -f "$usermodmap" ]; then xmodmap "$usermodmap"; fi xsetroot -cursor_name left_ptr & -setxkbmap it -xrandr --dpi 157 +setxkbmap it,gb -option grp:lctrl_lwin_toggle +xrandr --dpi 130 + +# Set middle mouse scrolling for ps2 trackball +xinput --set-prop 'GASIA PS2toUSB Adapter Mouse' 'libinput Scroll Method Enabled' 0, 0, 1 # # LAUNCH APPLICATIONS @@ -129,17 +134,20 @@ if ! pgrep -x "devmon" > /dev/null then devmon 2>&1 | "$STARTW_ROOT"/addts >> "$STARTX_LOG_FILE" & fi -#feh --no-fehbg --bg-fill "$WALLPAPER" & -#polybar -r vantagev1 2>&1 | "$STARTW_ROOT"/addts >> "$STARTX_LOG_FILE" & nitrogen --restore 2>/dev/null -tint2 | "$STARTW_ROOT"/addts >> "$STARTX_LOG_FILE" & xset s on xset s 600/660 -xss-lock --ignore-sleep -- xsecurelock & # # START WINDOW MANAGER # -sxhkd & -exec openbox +# Statusbar +status & +hkd & +# Is it time to get those christmas feels? +if [ "$(date +'%c=m')" = "12" ]; then + xsnow & +fi +sbl -r +while true; do dwm 2> ~/.dwm.log; done