From 0494a6fe60622e49ad62effe4d6c504036b8524d Mon Sep 17 00:00:00 2001 From: Rick van Lieshout Date: Fri, 3 Jan 2025 09:37:26 +0100 Subject: [PATCH] archfw setup --- bash/.bashrc | 5 +---- computers/archfw/.Xresources | 8 ++++++++ computers/archfw/install.sh | 3 +++ config/dunstrc | 4 ++-- config/picom.conf | 3 ++- config/polybar/modules.ini | 9 +++++++++ config/xfce4/thunar.xml | 6 +++--- config/xfce4/xfce4-power-manager.xml | 4 ++-- dependencies/aur.txt | 1 + dependencies/pacman.txt | 5 ++--- i3/config | 2 +- install.sh | 3 +++ 12 files changed, 37 insertions(+), 16 deletions(-) create mode 100644 computers/archfw/.Xresources create mode 100644 computers/archfw/install.sh diff --git a/bash/.bashrc b/bash/.bashrc index 54561f1..690c3ae 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -11,6 +11,7 @@ function sourceIfExists() { source ~/.alias source ~/.custom source ~/.variables +sourceIfExists /usr/share/nvm/init-nvm.sh sourceIfExists ~/lib/azure-cli/az.completion eval "$(thefuck --alias)" eval "$(oh-my-posh init bash --config ~/.config/poshthemes/mastermindzh.yaml)" @@ -25,10 +26,6 @@ fi eval "$(pyenv init -)" -export NVM_DIR="$HOME/.nvm" -[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm -[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion - if hash dotnet 2>/dev/null; then export DOTNET_ROOT=/usr/share/dotnet export MSBuildSDKsPath=$DOTNET_ROOT/sdk/$(${DOTNET_ROOT}/dotnet --version)/Sdks diff --git a/computers/archfw/.Xresources b/computers/archfw/.Xresources new file mode 100644 index 0000000..dfa6681 --- /dev/null +++ b/computers/archfw/.Xresources @@ -0,0 +1,8 @@ +Xft.antialias: true +Xft.hinting: true +Xft.rgba: rgba +Xft.hintstyle: hintslight +Xcursor.size: 20 + +Xft.dpi: 150 +rofi.dpi: 150 diff --git a/computers/archfw/install.sh b/computers/archfw/install.sh new file mode 100644 index 0000000..ed3b689 --- /dev/null +++ b/computers/archfw/install.sh @@ -0,0 +1,3 @@ +#!/bin/bash +MY_PATH=$PWD/computers/archfw +ln -sf "$MY_PATH/.Xresources" ~/.Xresources diff --git a/config/dunstrc b/config/dunstrc index 36589d5..a3e385b 100644 --- a/config/dunstrc +++ b/config/dunstrc @@ -23,8 +23,8 @@ ### Geometry ### # dynamic (0, 300) or fixed 300 - width = (0, 300) - height = (0, 200) + width = (0, 400) + height = (0, 300) origin = top-right offset = 10x50 scale = 0 diff --git a/config/picom.conf b/config/picom.conf index 5578c81..efab76a 100644 --- a/config/picom.conf +++ b/config/picom.conf @@ -3,6 +3,7 @@ ################################# # Opacity of inactive windows. (0.1 - 1.0) -inactive-opacity = 1.0; +inactive-opacity = 1.0 vsync=true backend="glx" +unredir-if-possible=true diff --git a/config/polybar/modules.ini b/config/polybar/modules.ini index d25d2bf..c68717d 100644 --- a/config/polybar/modules.ini +++ b/config/polybar/modules.ini @@ -63,6 +63,14 @@ label =%date% [module/temperature] type = internal/temperature +; Full path of temperature sysfs path +; Use `sensors` to find preferred temperature source, then run +; $ for i in /sys/class/hwmon/hwmon*/temp*_input; do echo "$(<$(dirname $i)/name): $(cat ${i%_*}_label 2>/dev/null || echo $(basename ${i%_*})) $(readlink -f $i)"; done +; to find path to desired file +; Default reverts to thermal zone setting +; hwmon-path = /sys/devices/platform/coretemp.0/hwmon/hwmon2/temp1_input + + base-temperature = 40 warn-temperature = 80 @@ -81,6 +89,7 @@ format-warn-foreground = ${colors.alert} [module/battery] type = internal/battery full-at = 98 +battery = BAT1 time-format = %H:%M format-charging = diff --git a/config/xfce4/thunar.xml b/config/xfce4/thunar.xml index 4f45054..54a579b 100644 --- a/config/xfce4/thunar.xml +++ b/config/xfce4/thunar.xml @@ -1,10 +1,10 @@ - + - - + + diff --git a/config/xfce4/xfce4-power-manager.xml b/config/xfce4/xfce4-power-manager.xml index ee83709..da6d2ba 100644 --- a/config/xfce4/xfce4-power-manager.xml +++ b/config/xfce4/xfce4-power-manager.xml @@ -1,8 +1,8 @@ - + - + diff --git a/dependencies/aur.txt b/dependencies/aur.txt index d9200bd..707b7e0 100644 --- a/dependencies/aur.txt +++ b/dependencies/aur.txt @@ -12,6 +12,7 @@ awf-gtk4 seafile networkmanager-l2tp xorg-xev +nvm dotnet-host-bin keychain diff --git a/dependencies/pacman.txt b/dependencies/pacman.txt index 185041a..bf65733 100644 --- a/dependencies/pacman.txt +++ b/dependencies/pacman.txt @@ -130,7 +130,7 @@ thefuck thunar thunar-archive-plugin dunst - +yq ufw gufw w3m @@ -138,9 +138,9 @@ blueberry xclip xfce4-terminal xorg-xkill - pass evince +tlp # fonts fontconfig @@ -149,4 +149,3 @@ otf-font-awesome ttf-font-awesome ttf-ubuntu-font-family fzf - diff --git a/i3/config b/i3/config index d4dd176..3d604b2 100644 --- a/i3/config +++ b/i3/config @@ -308,7 +308,7 @@ mode "$mode_gaps_outer" { # Autorun # ############################################ # exec_always --no-startup-id picom -b -exec_always feh --bg-scale $(find ~/Pictures/wallpapers/ -type f -name "*" | shuf -n 1) +exec_always feh --bg-fill $(find ~/Pictures/wallpapers/ -type f -name "*" | shuf -n 1) exec_always --no-startup-id ~/.config/polybar/launch.sh exec --no-startup-id i3-msg 'workspace $workspace2; exec xfce4-terminal' && i3-msg 'workspace $workspace1' exec --no-startup-id i3-msg 'workspace $workspace12; exec bitwarden-desktop' diff --git a/install.sh b/install.sh index 9256f5c..abb29b8 100644 --- a/install.sh +++ b/install.sh @@ -181,6 +181,9 @@ function install_dependencies { set -e fileToList dependencies/npm.txt | xargs sudo npm install -g + + # enable services + sudo systemctl enable tlp } # set up a new ssh key