Add xinit for xmonad

This commit is contained in:
Oystein Kristoffer Tveit 2021-05-24 22:10:13 +02:00
parent 2d360d3a04
commit ee15a55ba6
3 changed files with 59 additions and 0 deletions

View File

@ -0,0 +1,3 @@
#!/bin/sh
xrandr --output eDP-1 --mode 1920x1080

View File

@ -0,0 +1,56 @@
#!/usr/bin/env bash
ifExistsThen() {
if command -v $1 &> /dev/null; then
eval $2
fi
}
xrdb -merge ~/.Xresources
export _JAVA_AWT_WM_NONREPARENTING=1
# ░█▀▄░▀█▀░█▀▀░█▀█░█░░░█▀█░█░█
# ░█░█░░█░░▀▀█░█▀▀░█░░░█▀█░░█░
# ░▀▀░░▀▀▀░▀▀▀░▀░░░▀▀▀░▀░▀░░▀░
# export QT_AUTO_SCREEN_SCALE_FACTOR=1
ifExistsThen picom \
"picom --experimental-backends &"
ifExistsThen feh \
"feh --bg-fill $HOME/Dropbox/bilder/Wallpapers/pixiv/80242900_p0.jpg"
# ░█░█░█▀▀░█░█░█▀▀
# ░█▀▄░█▀▀░░█░░▀▀█
# ░▀░▀░▀▀▀░░▀░░▀▀▀
setxkbmap -option caps:escape
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS=@im=fcitx
# ░▀█▀░█▀▄░█▀█░█░█
# ░░█░░█▀▄░█▀█░░█░
# ░░▀░░▀░▀░▀░▀░░▀░
# flameshot &
# pa-applet &
ifExistsThen nm-applet \
"nm-applet --sm-disable --indicator &"
ifExistsThen dropbox \
"dropbox &"
ifExistsThen fcitx \
"fcitx &"
ifExistsThen protonmail-bridge \
"protonmail-bridge --no-window &"
ifExistsThen mpd \
"mpd"
ifExistsThen piavpn \
"piavpn"
ifExistsThen copyq \
"copyq --start-server"
source ~/.aliases
xmonad