summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authorAdam <adam@adast.xyz>2022-06-02 12:03:38 +0200
committerAdam <adam@adast.xyz>2022-06-02 12:03:38 +0200
commitcdc0fdd9c3733378d1488a007e5dac3fd89a0cc7 (patch)
tree30782ab29a26b663d351ac8ccee99584a5a1d58f /.config
parentc378c2e6190afbd9538f0a743e21949a98798056 (diff)
Better organized startup process and scripts
Diffstat (limited to '.config')
-rw-r--r--.config/X11/Xresources (renamed from .config/X11/.Xresources)0
-rwxr-xr-x.config/X11/xinitrc45
-rwxr-xr-x.config/i3/after5
-rw-r--r--.config/i3/config11
-rw-r--r--.config/i3/init13
5 files changed, 49 insertions, 25 deletions
diff --git a/.config/X11/.Xresources b/.config/X11/Xresources
index 37d7396..37d7396 100644
--- a/.config/X11/.Xresources
+++ b/.config/X11/Xresources
diff --git a/.config/X11/xinitrc b/.config/X11/xinitrc
new file mode 100755
index 0000000..61c9173
--- /dev/null
+++ b/.config/X11/xinitrc
@@ -0,0 +1,45 @@
+#!/bin/sh
+
+userresources=$XDG_CONFIG_HOME/X11/Xresources
+usermodmap=$XDG_CONFIG_HOME/X11/Xmodmap
+sysresources=/etc/X11/xinit/.Xresources
+sysmodmap=/etc/X11/xinit/.Xmodmap
+
+# merge in defaults and keymaps
+
+if [ -f $sysresources ]; then
+ xrdb -merge $sysresources
+fi
+
+if [ -f $sysmodmap ]; then
+ xmodmap $sysmodmap
+fi
+
+if [ -f "$userresources" ]; then
+ xrdb -merge "$userresources"
+fi
+
+if [ -f "$usermodmap" ]; then
+ xmodmap "$usermodmap"
+fi
+
+# start some nice programs
+
+if [ -d /etc/X11/xinit/xinitrc.d ] ; then
+ for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
+ [ -x "$f" ] && . "$f"
+ done
+ unset f
+fi
+
+clipdel -d ".*" &
+clipmenud &
+playerctld daemon &
+nitrogen --restore &
+redshift -l 56:10 &
+nm-applet &
+unclutter -b &
+nextcloud --background &
+~/.local/bin/picom-toggle &
+~/.local/bin/rate &
+exec i3
diff --git a/.config/i3/after b/.config/i3/after
deleted file mode 100755
index 061830c..0000000
--- a/.config/i3/after
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/sh
-
-xset dpms 300 300 300
-xset r rate 300 25
-setxkbmap -option grp:win_space_toggle us,dk
diff --git a/.config/i3/config b/.config/i3/config
index 54f9539..758deb5 100644
--- a/.config/i3/config
+++ b/.config/i3/config
@@ -14,9 +14,9 @@ bindsym $mod+b exec firefox
bindsym $mod+e exec pcmanfm
bindsym $mod+f fullscreen toggle
bindsym $mod+i exec --no-startup-id polybar-msg cmd toggle
-bindsym $mod+Shift+s exec --no-startup-id ~/.local/bin/screenshot -s
-bindsym Print exec --no-startup-id ~/.local/bin/screenshot
-bindsym $mod+Shift+c exec --no-startup-id ~/.local/bin/picom-toggle
+bindsym $mod+Shift+s exec --no-startup-id $HOME/.local/bin/screenshot -s
+bindsym Print exec --no-startup-id $HOME/.local/bin/screenshot
+bindsym $mod+Shift+c exec --no-startup-id $HOME/.local/bin/picom-toggle
bindsym $mod+d exec --no-startup-id rofi -show drun -show-icons -drun-display-format {name}
bindsym $alt+Tab exec --no-startup-id rofi -show window -show-icons -drun-display-format {name}
@@ -190,7 +190,4 @@ for_window [class="^Steam$" title="^Steam Guard - Computer Authorization Require
for_window [title="^Steam Keyboard$"] floating enable
##### Exec
-exec --no-startup-id /usr/bin/unclutter -b
-exec --no-startup-id ~/.local/bin/polybar-launch
-exec --no-startup-id ~/.local/bin/picom-toggle
-exec --no-startup-id nextcloud --background
+exec_always --no-startup-id $HOME/.local/bin/polybar-launch
diff --git a/.config/i3/init b/.config/i3/init
deleted file mode 100644
index 4d12c38..0000000
--- a/.config/i3/init
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/bin/sh
-
-clipdel -d ".*"
-clipmenud &
-playerctld daemon &
-nitrogen --restore &
-redshift -l 56:10 &
-nm-applet &
-exec i3 & wmpid=$!
-
-sleep 5
-source $HOME/.config/i3/after &
-wait $wmpid