Compare commits
No commits in common. "341472929b9cfdba886bdd4da50c3ba46d3b1589" and "e6449f8d7db02c99438abe11b561bacc3eae327d" have entirely different histories.
341472929b
...
e6449f8d7d
11
.bashrc
11
.bashrc
@ -18,10 +18,7 @@ alias mkdir='mkdir -p'
|
|||||||
alias cd='z'
|
alias cd='z'
|
||||||
|
|
||||||
# Edit this .bashrc file
|
# Edit this .bashrc file
|
||||||
alias ebrc='nano ~/.bashrc'
|
alias ebrc='edit ~/.bashrc'
|
||||||
|
|
||||||
alias wgu='wg-quick up wg0'
|
|
||||||
alias wgd='wg-quick down wg0'
|
|
||||||
|
|
||||||
# Change directory aliases
|
# Change directory aliases
|
||||||
alias home='cd ~'
|
alias home='cd ~'
|
||||||
@ -87,12 +84,6 @@ export ELECTRON_ENABLE_OZONE=1
|
|||||||
export OZONE_PLATFORM=wayland
|
export OZONE_PLATFORM=wayland
|
||||||
export GDK_SCALE=1
|
export GDK_SCALE=1
|
||||||
export GDK_DPI_SCALE=1
|
export GDK_DPI_SCALE=1
|
||||||
export QT_QPA_PLATFORM=wayland
|
|
||||||
export QT_AUTO_SCREEN_SCALE_FACTOR=1
|
|
||||||
export QT_SCALE_FACTOR=1
|
|
||||||
|
|
||||||
# Force Wayland Anki
|
|
||||||
export ANKI_WAYLAND=1
|
|
||||||
|
|
||||||
# Force Firefox to run in wayland
|
# Force Firefox to run in wayland
|
||||||
export MOZ_ENABLE_WAYLAND=1
|
export MOZ_ENABLE_WAYLAND=1
|
||||||
|
@ -43,7 +43,6 @@
|
|||||||
"clock#date", // date
|
"clock#date", // date
|
||||||
"custom/right4",
|
"custom/right4",
|
||||||
|
|
||||||
"custom/wireguard", // wireguard
|
|
||||||
"custom/wifi", // wi-fi
|
"custom/wifi", // wi-fi
|
||||||
"bluetooth", // bluetooth
|
"bluetooth", // bluetooth
|
||||||
"custom/update", // system update
|
"custom/update", // system update
|
||||||
@ -179,19 +178,6 @@
|
|||||||
"max-length": 8
|
"max-length": 8
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
// ──────────────────────────────────────────────────────────┤ wireguard ├───
|
|
||||||
|
|
||||||
"custom/wireguard": {
|
|
||||||
"exec": "~/.config/waybar/scripts/wireguard-status.sh",
|
|
||||||
"return-type": "json",
|
|
||||||
"format": "{}",
|
|
||||||
"on-click": "~/.config/waybar/scripts/wireguard-toggle.sh",
|
|
||||||
"interval": 3,
|
|
||||||
"min-length": 1,
|
|
||||||
"max-length": 1
|
|
||||||
},
|
|
||||||
|
|
||||||
// ──────────────────────────────────────────────────────────────┤ wi-fi ├───
|
// ──────────────────────────────────────────────────────────────┤ wi-fi ├───
|
||||||
|
|
||||||
"custom/wifi": {
|
"custom/wifi": {
|
||||||
@ -200,7 +186,7 @@
|
|||||||
"format": "{}",
|
"format": "{}",
|
||||||
"on-click": "~/.config/waybar/scripts/wifi-menu.sh",
|
"on-click": "~/.config/waybar/scripts/wifi-menu.sh",
|
||||||
"on-click-right": "kitty --title ' Network Manager TUI' bash -c nmtui",
|
"on-click-right": "kitty --title ' Network Manager TUI' bash -c nmtui",
|
||||||
"interval": 3,
|
"interval": 1,
|
||||||
"min-length": 1,
|
"min-length": 1,
|
||||||
"max-length": 1
|
"max-length": 1
|
||||||
},
|
},
|
||||||
@ -226,7 +212,7 @@
|
|||||||
|
|
||||||
"on-click": "~/.config/waybar/scripts/bluetooth-menu.sh",
|
"on-click": "~/.config/waybar/scripts/bluetooth-menu.sh",
|
||||||
"on-click-right": "kitty --title ' Bluetooth TUI' bash -c bluetui",
|
"on-click-right": "kitty --title ' Bluetooth TUI' bash -c bluetui",
|
||||||
"interval": 3,
|
"interval": 1,
|
||||||
"min-length": 1,
|
"min-length": 1,
|
||||||
"max-length": 1
|
"max-length": 1
|
||||||
},
|
},
|
||||||
@ -238,7 +224,7 @@
|
|||||||
"return-type": "json",
|
"return-type": "json",
|
||||||
"format": "{}",
|
"format": "{}",
|
||||||
"on-click": "~/.config/waybar/scripts/system-update.sh up",
|
"on-click": "~/.config/waybar/scripts/system-update.sh up",
|
||||||
"interval": 240,
|
"interval": 30,
|
||||||
"min-length": 1,
|
"min-length": 1,
|
||||||
"max-length": 1
|
"max-length": 1
|
||||||
},
|
},
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
rofi -dmenu -password -no-fixed-num-lines -p "Sudo password"
|
|
@ -1,12 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
SERVICE_NAME="wg-quick@wg0"
|
|
||||||
STATUS_CONNECTED_STR='{"text":"", "tooltip":"Tunnel connected."}'
|
|
||||||
STATUS_DISCONNECTED_STR='{"text":"", "tooltip":"Tunnel disconnected"}'
|
|
||||||
|
|
||||||
function status_wireguard() {
|
|
||||||
systemctl is-active $SERVICE_NAME >/dev/null 2>&1
|
|
||||||
return $?
|
|
||||||
}
|
|
||||||
|
|
||||||
status_wireguard && echo $STATUS_CONNECTED_STR || echo $STATUS_DISCONNECTED_STR
|
|
@ -1,16 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
SERVICE_NAME="wg-quick@wg0"
|
|
||||||
|
|
||||||
function status_wireguard() {
|
|
||||||
systemctl is-active $SERVICE_NAME >/dev/null 2>&1
|
|
||||||
return $?
|
|
||||||
}
|
|
||||||
|
|
||||||
function askpass() {
|
|
||||||
rofi -dmenu -password -no-fixed-num-lines -p "Sudo password"
|
|
||||||
}
|
|
||||||
|
|
||||||
status_wireguard && \
|
|
||||||
SUDO_ASKPASS=~/.config/waybar/scripts/askpass.sh sudo -A systemctl stop $SERVICE_NAME || \
|
|
||||||
SUDO_ASKPASS=~/.config/waybar/scripts/askpass.sh sudo -A systemctl start $SERVICE_NAME
|
|
@ -46,7 +46,6 @@ tooltip label {
|
|||||||
#idle_inhibitor,
|
#idle_inhibitor,
|
||||||
#clock,
|
#clock,
|
||||||
#custom-wifi,
|
#custom-wifi,
|
||||||
#custom-wireguard,
|
|
||||||
#bluetooth,
|
#bluetooth,
|
||||||
#custom-update,
|
#custom-update,
|
||||||
#mpris,
|
#mpris,
|
||||||
@ -268,17 +267,6 @@ tooltip label {
|
|||||||
color: @hover-fg;
|
color: @hover-fg;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ────────────────────────────────────────────────────────────────┤ wireguard ├───
|
|
||||||
*/
|
|
||||||
#custom-wireguard {
|
|
||||||
background: @tray;
|
|
||||||
padding: 0 8px 0 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#custom-wireguard:hover {
|
|
||||||
color: @hover-fg;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ────────────────────────────────────────────────────────────┤ bluetooth ├───
|
/* ────────────────────────────────────────────────────────────┤ bluetooth ├───
|
||||||
*/
|
*/
|
||||||
#bluetooth {
|
#bluetooth {
|
||||||
|
@ -1,14 +1,9 @@
|
|||||||
[[manager.prepend_keymap]]
|
[[manager.prepend_keymap]]
|
||||||
on = [ "C", "i" ]
|
on = [ "g", "i" ]
|
||||||
run = "plugin lazygit"
|
run = "plugin lazygit"
|
||||||
desc = "run lazygit"
|
desc = "run lazygit"
|
||||||
|
|
||||||
[[manager.append_keymap]]
|
[[manager.append_keymap]]
|
||||||
on = [ "g", "p" ]
|
on = [ "g", "p" ]
|
||||||
run = "cd ~/Documents/Programming"
|
run = "cd ~/Documents/Programming"
|
||||||
desc = "Go to ~/Documents/Programming"
|
desc = "Navigate to ~/Documents/Programming"
|
||||||
|
|
||||||
[[manager.append_keymap]]
|
|
||||||
on = [ "g", "u" ]
|
|
||||||
run = "cd ~/Documents/Uni"
|
|
||||||
desc = "Go to ~/Documents/Uni"
|
|
||||||
|
16
install.bash
16
install.bash
@ -57,6 +57,15 @@ pacman -S networkmanager wpa_supplicant
|
|||||||
echo '[Service]\nExecStart=\nExecStart=-/sbin/agetty --noreset --noclear --autologin alex %I $TERM' | sudo tee /etc/systemd/system/getty@tty1.service.d/override.conf > /dev/null && sudo systemctl enable getty@tty1
|
echo '[Service]\nExecStart=\nExecStart=-/sbin/agetty --noreset --noclear --autologin alex %I $TERM' | sudo tee /etc/systemd/system/getty@tty1.service.d/override.conf > /dev/null && sudo systemctl enable getty@tty1
|
||||||
|
|
||||||
# Battery optimization
|
# Battery optimization
|
||||||
|
# https://github.com/AdnanHodzic/auto-cpufreq?tab=readme-ov-file#installing-auto-cpufreq
|
||||||
|
#git clone https://github.com/AdnanHodzic/auto-cpufreq.git
|
||||||
|
#cd auto-cpufreq && sudo ./auto-cpufreq-installer
|
||||||
|
#sudo auto-cpufreq --install
|
||||||
|
#sudo auto-cpufreq --update
|
||||||
|
#sudo auto-cpufreq --stats
|
||||||
|
# https://wiki.archlinux.org/title/Framework_Laptop_13#Battery_control
|
||||||
|
#yay -S fw-ectool-git
|
||||||
|
#ectool chargecontrol normal 80 80
|
||||||
cp ~/dotfiles/etc/tlp.conf /etc/
|
cp ~/dotfiles/etc/tlp.conf /etc/
|
||||||
pacman -S tlp tlp-rdw
|
pacman -S tlp tlp-rdw
|
||||||
systemctl enable --now tlp.service
|
systemctl enable --now tlp.service
|
||||||
@ -67,9 +76,6 @@ systemctl mask systemd-rfkill.socket # Also needed for auto-disable BT
|
|||||||
# Make wireguard connection persistent in /etc/wireguard
|
# Make wireguard connection persistent in /etc/wireguard
|
||||||
echo "PersistentKeepalive = 25" >> /etc/wireguard/home.conf
|
echo "PersistentKeepalive = 25" >> /etc/wireguard/home.conf
|
||||||
|
|
||||||
# After installing Anki, force Anki to use Wayland by replacing Exec= in /usr/local/share/applications/anki.desktop
|
|
||||||
# Exec=env ANKI_WAYLAND=1 anki %f
|
|
||||||
|
|
||||||
###################################################################
|
###################################################################
|
||||||
# MANUAL CONFIGURATION REQUIRED
|
# MANUAL CONFIGURATION REQUIRED
|
||||||
###################################################################
|
###################################################################
|
||||||
@ -80,3 +86,7 @@ echo "PersistentKeepalive = 25" >> /etc/wireguard/home.conf
|
|||||||
pacman -S cava bluez-utils bluez pipewire-pulse ttf-jetbrains-mono-nerd wireplumber
|
pacman -S cava bluez-utils bluez pipewire-pulse ttf-jetbrains-mono-nerd wireplumber
|
||||||
yay -S rofi-lbonn-wayland-git bluetui
|
yay -S rofi-lbonn-wayland-git bluetui
|
||||||
systemctl enable --now bluetooth.service
|
systemctl enable --now bluetooth.service
|
||||||
|
|
||||||
|
# Battery optimization:
|
||||||
|
sudo pacman -S tlp
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user