]> git.rmz.io Git - dotfiles.git/commitdiff
autostart: let xprofile manage application startup
authorSamir Benmendil <samir.benmendil@ultrahaptics.com>
Thu, 10 Nov 2016 09:57:33 +0000 (09:57 +0000)
committerSamir Benmendil <samir.benmendil@ultrahaptics.com>
Thu, 10 Nov 2016 09:57:33 +0000 (09:57 +0000)
Makefile
awesome/autostart.lua [deleted file]
awesome/rc.lua
awesome/rules.lua
xprofile

index 877c50c8e78f1e936dd1232f73d76341809cd0e3..e0b39123e06590aad3c98a4508d844a4c0a1fc4a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -25,6 +25,10 @@ zsh:
        mkdir -p ~/.cache/zsh
 .PHONY: zsh
 
+xprofile:
+       ln -sfT $(APATH)/xprofile ~/.xprofile
+.PHONY: xprofile
+
 dircolors:
        ln -sfT $(APATH)/dircolors ~/.config/dircolors
 .PHONY: dircolors
diff --git a/awesome/autostart.lua b/awesome/autostart.lua
deleted file mode 100644 (file)
index 707d8b7..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-local utils = require("utils")
-
-utils.run_once("qutebrowser")
-utils.run_once("urxvtc -name ncmpcpp -icon ~/src/dotfiles/icons/bmp.png           -e ncmpcpp",         nil, "ncmpcpp")
-utils.run_once("urxvtc -name mopidy  -icon ~/src/dotfiles/icons/bmp.png           -e ncmpcpp -p 6601", nil, "ncmpcpp -p 6601")
-utils.run_once("urxvtc -name weechat -icon ~/src/dotfiles/icons/im-irc.png        -e weechat",         nil, "weechat")
-utils.run_once("urxvtc -name mutt    -icon ~/src/dotfiles/icons/internet-mail.png -e mutt",            nil, "mutt")
index af38777cdad3ec67ad7163386aecb173ef443a48..6ba97494237f53ec397d834166cdb3dfa5b87aeb 100644 (file)
@@ -56,7 +56,6 @@ require("menu")
 require("topbar")
 require("rules")
 -- require("conky")
-require("autostart")
 require("signals")
 
 -- Set keys
index fe8ffc0f44440c49c18ff6d147db153ef1286880..20fa19aea3b5c7c3ebc5cdb979ecc51e51bcb776 100644 (file)
@@ -23,6 +23,8 @@ awful.rules.rules = {
                      focus = awful.client.focus.filter,
                      keys = clientkeys,
                      buttons = clientbuttons } },
+    { rule = { class = "Sensation Editor Standard" },
+      properties = { floating = true } },
     { rule = { class = "mpv" },
       properties = { floating = true } },
     { rule = { class = "MPlayer" },
index 9c2cda5ccf1a50217c74f28bbbb31a8f909ec05d..ba632e7e200255e26d9c009d0f76ef147abdc097 100644 (file)
--- a/xprofile
+++ b/xprofile
@@ -1,11 +1,20 @@
+#!/usr/bin/env bash
+
 start-pulseaudio-x11
 compton --config ~/.config/compton.conf &
 xautolock -detectsleep \
           -notify  600 -notifier "xset dpms force off" \
           -time     20 -locker   "i3lock -nc 000000" \
           -killtime 70 -killer   "systemctl suspend" &
-xkbcomp -I$HOME/.config/xkb $HOME/.config/xkb/$(hostname).xkb $DISPLAY
 unclutter --timeout 1 &
 [[ -f "$XDG_CONFIG_HOME/xbindkeys/$(hostname)" ]] && xbindkeys --file $XDG_CONFIG_HOME/xbindkeys/$(hostname)
 xcape -e "Control_L=Escape;Control_R=Escape"
+xkbcomp -I$HOME/.config/xkb $HOME/.config/xkb/$(hostname).xkb $DISPLAY
+
 urxvtd -q -f -o
+hash mopidy  && urxvtc -name mopidy  -icon ~/src/dotfiles/icons/bmp.png           -e ncmpcpp -p 6601
+hash ncmpcpp && urxvtc -name ncmpcpp -icon ~/src/dotfiles/icons/bmp.png           -e ncmpcpp
+hash weechat && urxvtc -name weechat -icon ~/src/dotfiles/icons/im-irc.png        -e weechat
+hash mutt    && urxvtc -name mutt    -icon ~/src/dotfiles/icons/internet-mail.png -e mutt
+
+qutebrowser &