aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2021-05-01 17:31:51 +0200
committerMateja <mail@matejamaric.com>2021-05-01 17:31:51 +0200
commit3858306acd6ebf93ee826a1c161d3096f6b0bf35 (patch)
tree979509e3636fb6719f37fdefe50b0cc7a16b4628
parentc6fc484be86316b9a5f96b68aaaf192671983d17 (diff)
downloaddotfiles-3858306acd6ebf93ee826a1c161d3096f6b0bf35.tar.gz
dotfiles-3858306acd6ebf93ee826a1c161d3096f6b0bf35.zip
Use `.xprofile` instead of `autostart.sh`.
-rw-r--r--.config/awesome/rc.lua2
-rw-r--r--.config/qtile/config.py6
-rwxr-xr-x.local/bin/autostart.sh17
-rw-r--r--.xinitrc5
-rwxr-xr-x.xprofile15
5 files changed, 20 insertions, 25 deletions
diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua
index 6400075..05e9714 100644
--- a/.config/awesome/rc.lua
+++ b/.config/awesome/rc.lua
@@ -66,8 +66,6 @@ awful.layout.layouts = {
-- Keyboard map indicator and switcher
mykeyboardlayout = awful.widget.keyboardlayout()
-awful.spawn.with_shell("~/.local/bin/autostart.sh")
-
-- Wibar --------------------------------------------------------------------
-- Create a textclock widget
diff --git a/.config/qtile/config.py b/.config/qtile/config.py
index 878ddd6..dedfe6c 100644
--- a/.config/qtile/config.py
+++ b/.config/qtile/config.py
@@ -12,12 +12,6 @@ mod = "mod4"
terminal = "st -e tmux"
-@hook.subscribe.startup_once
-def autostart():
- home = os.path.expanduser('~/.local/bin/autostart.sh')
- subprocess.call([home])
-
-
keys = [
# Audio
Key([mod], "h", lazy.spawn("amixer -q sset Master 1%+"),
diff --git a/.local/bin/autostart.sh b/.local/bin/autostart.sh
deleted file mode 100755
index f1cfe16..0000000
--- a/.local/bin/autostart.sh
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/usr/bin/env bash
-xset -b
-
-#setxkbmap -option caps:swapescape
-#setxkbmap -layout us,rs,rs -variant ,alternatequotes,latin -option grp:alt_shift_toggle,caps:swapescape
-setxkbmap -layout us,rs,rs -variant ,alternatequotes,latin -option caps:swapescape
-
-numlockx &
-dunst &
-udiskie &
-
-#picom &
-compton --backend glx -b &
-
-feh --bg-fill ~/stuff/pictures/nantes.jpg
-
-#mpd &
diff --git a/.xinitrc b/.xinitrc
new file mode 100644
index 0000000..9c0f21d
--- /dev/null
+++ b/.xinitrc
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+[ -f ~/.xprofile ] && . ~/.xprofile
+
+exec awesome
diff --git a/.xprofile b/.xprofile
index d13cb65..d4f0efc 100755
--- a/.xprofile
+++ b/.xprofile
@@ -1,2 +1,17 @@
#!/bin/sh
+
eval $(keychain --clear --eval --agents gpg,ssh --quiet)
+
+xset -b
+setxkbmap -layout us,rs,rs -variant ,alternatequotes,latin -option grp:alt_shift_toggle,caps:swapescape
+numlockx &
+
+dunst &
+udiskie &
+
+#picom &
+compton --backend glx -b &
+
+feh --bg-fill ~/stuff/pictures/nantes.jpg
+
+mpd &