commit 1a56cdf69682ad5223653897abdda26411229b55 Author: Tim Wundenberg Date: Sun Oct 26 14:32:37 2025 +0100 feat: initial commit diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..b959477 --- /dev/null +++ b/install.sh @@ -0,0 +1,38 @@ +#!/bin/sh +set -xe + +# self explanatory +sudo pacman -Syu --noconfirm +sudo pacman -S --needed --noconfirm firefox thunderbird neovim nextcloud-client keepassxc zsh terraform spotify-launcher man git go nvm ttf-firacode-nerd waybar ripgrep gammastep telegram-desktop element-desktop + +# for the "fzf" plugin in zsh +sudo pacman -S --needed --noconfirm fzf +# for "infrastructure" project +sudo pacman -S --needed --noconfirm git-crypt +# keyring required, so that I don't have to login everytime (e.g. Nextcloud) +sudo pacman -S --needed --noconfirm gnome-keyring +# For clipboard functionality in neovim +sudo pacman -S --needed --noconfirm wl-clipboard +# For screenshot +sudo pacman -S --needed --noconfirm grim slurp + + +# Install yay, if not exists +if ! command -v yay +then + sudo pacman -S --needed --noconfirm base-devel + git clone https://aur.archlinux.org/yay.git + cd yay + makepkg -si +fi + +if ! [ -d ~/.oh-my-zsh ]; +then + sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" +fi + +# yay -S --needed --noconfirm aur/wdisplays + +# TODO +# Persist sway.conf & foot.ini & waybar & zshrc/ohmyzsh & scripts & gammastep +# GTK Themes and autoswitching all apps between dark mode diff --git a/setup_screen.sh b/setup_screen.sh new file mode 100755 index 0000000..6615d09 --- /dev/null +++ b/setup_screen.sh @@ -0,0 +1,13 @@ +#!/bin/sh +set -e + +if swaymsg -t get_outputs | grep DP-2 > /dev/null; +then + echo "changing to external display" + swaymsg output DP-2 enable scale 1 + swaymsg output eDP-1 disable +else + echo "changing to internal display" + swaymsg output eDP-1 enable scale 1 + swaymsg output DP-2 disable +fi diff --git a/toggle_dark_mode.sh b/toggle_dark_mode.sh new file mode 100755 index 0000000..8778e52 --- /dev/null +++ b/toggle_dark_mode.sh @@ -0,0 +1,20 @@ +#!/bin/sh + +# does not work! + +current=$(dconf read /org/gnome/desktop/interface/color-scheme) + +if [[ "$current" == "'prefer-dark'" ]]; then + dconf write /org/gnome/desktop/interface/color-scheme "'default'" + dconf write /org/gnome/desktop/interface/gtk-theme "'Adwaita'" + # this does not work! + export GTK_THEME=Adwaita +else + dconf write /org/gnome/desktop/interface/color-scheme "'prefer-dark'" + dconf write /org/gnome/desktop/interface/gtk-theme "'Adwaita-dark'" + # this does not work! + export GTK_THEME=Adwaita-dark +fi + +# Reload Sway config or notify running apps +swaymsg reload