From ee15a55ba6e830d840984054756300a2f14acfca Mon Sep 17 00:00:00 2001 From: h7x4 Date: Mon, 24 May 2021 22:10:13 +0200 Subject: [PATCH] Add xinit for xmonad --- .../setup-script/setup-screen.desktop.sh | 0 .../setup-script/setup-screen.laptop.sh | 3 + general/.xmonad/setup-script/xinit.sh | 56 +++++++++++++++++++ 3 files changed, 59 insertions(+) create mode 100755 general/.xmonad/setup-script/setup-screen.desktop.sh create mode 100755 general/.xmonad/setup-script/setup-screen.laptop.sh create mode 100755 general/.xmonad/setup-script/xinit.sh diff --git a/general/.xmonad/setup-script/setup-screen.desktop.sh b/general/.xmonad/setup-script/setup-screen.desktop.sh new file mode 100755 index 0000000..e69de29 diff --git a/general/.xmonad/setup-script/setup-screen.laptop.sh b/general/.xmonad/setup-script/setup-screen.laptop.sh new file mode 100755 index 0000000..43ff301 --- /dev/null +++ b/general/.xmonad/setup-script/setup-screen.laptop.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +xrandr --output eDP-1 --mode 1920x1080 diff --git a/general/.xmonad/setup-script/xinit.sh b/general/.xmonad/setup-script/xinit.sh new file mode 100755 index 0000000..4a12997 --- /dev/null +++ b/general/.xmonad/setup-script/xinit.sh @@ -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 \ No newline at end of file