archfw setup

This commit is contained in:
Rick van Lieshout 2025-01-03 09:37:26 +01:00
parent 323698cd12
commit 0494a6fe60
12 changed files with 37 additions and 16 deletions

View File

@ -11,6 +11,7 @@ function sourceIfExists() {
source ~/.alias source ~/.alias
source ~/.custom source ~/.custom
source ~/.variables source ~/.variables
sourceIfExists /usr/share/nvm/init-nvm.sh
sourceIfExists ~/lib/azure-cli/az.completion sourceIfExists ~/lib/azure-cli/az.completion
eval "$(thefuck --alias)" eval "$(thefuck --alias)"
eval "$(oh-my-posh init bash --config ~/.config/poshthemes/mastermindzh.yaml)" eval "$(oh-my-posh init bash --config ~/.config/poshthemes/mastermindzh.yaml)"
@ -25,10 +26,6 @@ fi
eval "$(pyenv init -)" 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 if hash dotnet 2>/dev/null; then
export DOTNET_ROOT=/usr/share/dotnet export DOTNET_ROOT=/usr/share/dotnet
export MSBuildSDKsPath=$DOTNET_ROOT/sdk/$(${DOTNET_ROOT}/dotnet --version)/Sdks export MSBuildSDKsPath=$DOTNET_ROOT/sdk/$(${DOTNET_ROOT}/dotnet --version)/Sdks

View File

@ -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

View File

@ -0,0 +1,3 @@
#!/bin/bash
MY_PATH=$PWD/computers/archfw
ln -sf "$MY_PATH/.Xresources" ~/.Xresources

View File

@ -23,8 +23,8 @@
### Geometry ### ### Geometry ###
# dynamic (0, 300) or fixed 300 # dynamic (0, 300) or fixed 300
width = (0, 300) width = (0, 400)
height = (0, 200) height = (0, 300)
origin = top-right origin = top-right
offset = 10x50 offset = 10x50
scale = 0 scale = 0

View File

@ -3,6 +3,7 @@
################################# #################################
# Opacity of inactive windows. (0.1 - 1.0) # Opacity of inactive windows. (0.1 - 1.0)
inactive-opacity = 1.0; inactive-opacity = 1.0
vsync=true vsync=true
backend="glx" backend="glx"
unredir-if-possible=true

View File

@ -63,6 +63,14 @@ label =%date%
[module/temperature] [module/temperature]
type = internal/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 base-temperature = 40
warn-temperature = 80 warn-temperature = 80
@ -81,6 +89,7 @@ format-warn-foreground = ${colors.alert}
[module/battery] [module/battery]
type = internal/battery type = internal/battery
full-at = 98 full-at = 98
battery = BAT1
time-format = %H:%M time-format = %H:%M
format-charging = <animation-charging> <label-charging> format-charging = <animation-charging> <label-charging>

View File

@ -1,10 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.1" encoding="UTF-8"?>
<channel name="thunar" version="1.0"> <channel name="thunar" version="1.0">
<property name="last-view" type="string" value="ThunarIconView"/> <property name="last-view" type="string" value="ThunarIconView"/>
<property name="last-icon-view-zoom-level" type="string" value="THUNAR_ZOOM_LEVEL_100_PERCENT"/> <property name="last-icon-view-zoom-level" type="string" value="THUNAR_ZOOM_LEVEL_100_PERCENT"/>
<property name="last-window-width" type="int" value="753"/> <property name="last-window-width" type="int" value="1416"/>
<property name="last-window-height" type="int" value="1156"/> <property name="last-window-height" type="int" value="1851"/>
<property name="last-window-maximized" type="bool" value="true"/> <property name="last-window-maximized" type="bool" value="true"/>
<property name="last-separator-position" type="int" value="229"/> <property name="last-separator-position" type="int" value="229"/>
<property name="misc-single-click" type="bool" value="false"/> <property name="misc-single-click" type="bool" value="false"/>

View File

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.1" encoding="UTF-8"?>
<channel name="xfce4-power-manager" version="1.0"> <channel name="xfce4-power-manager" version="1.0">
<property name="xfce4-power-manager" type="empty"> <property name="xfce4-power-manager" type="empty">
<property name="brightness-switch" type="int" value="0"/> <property name="brightness-switch" type="int" value="0"/>
<property name="brightness-switch-restore-on-exit" type="int" value="1"/> <property name="brightness-switch-restore-on-exit" type="int" value="-1"/>
</property> </property>
</channel> </channel>

View File

@ -12,6 +12,7 @@ awf-gtk4
seafile seafile
networkmanager-l2tp networkmanager-l2tp
xorg-xev xorg-xev
nvm
dotnet-host-bin dotnet-host-bin
keychain keychain

View File

@ -130,7 +130,7 @@ thefuck
thunar thunar
thunar-archive-plugin thunar-archive-plugin
dunst dunst
yq
ufw ufw
gufw gufw
w3m w3m
@ -138,9 +138,9 @@ blueberry
xclip xclip
xfce4-terminal xfce4-terminal
xorg-xkill xorg-xkill
pass pass
evince evince
tlp
# fonts # fonts
fontconfig fontconfig
@ -149,4 +149,3 @@ otf-font-awesome
ttf-font-awesome ttf-font-awesome
ttf-ubuntu-font-family ttf-ubuntu-font-family
fzf fzf

View File

@ -308,7 +308,7 @@ mode "$mode_gaps_outer" {
# Autorun # # Autorun #
############################################ ############################################
# exec_always --no-startup-id picom -b # 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_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 $workspace2; exec xfce4-terminal' && i3-msg 'workspace $workspace1'
exec --no-startup-id i3-msg 'workspace $workspace12; exec bitwarden-desktop' exec --no-startup-id i3-msg 'workspace $workspace12; exec bitwarden-desktop'

View File

@ -181,6 +181,9 @@ function install_dependencies {
set -e set -e
fileToList dependencies/npm.txt | xargs sudo npm install -g fileToList dependencies/npm.txt | xargs sudo npm install -g
# enable services
sudo systemctl enable tlp
} }
# set up a new ssh key # set up a new ssh key