feat: initial commit
This commit is contained in:
38
install.sh
Executable file
38
install.sh
Executable file
@@ -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
|
||||||
13
setup_screen.sh
Executable file
13
setup_screen.sh
Executable file
@@ -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
|
||||||
20
toggle_dark_mode.sh
Executable file
20
toggle_dark_mode.sh
Executable file
@@ -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
|
||||||
Reference in New Issue
Block a user