From: Samir Benmendil Date: Thu, 10 Nov 2016 09:57:33 +0000 (+0000) Subject: autostart: let xprofile manage application startup X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/2f4b8a959417d20015433571154384d08564723c autostart: let xprofile manage application startup --- diff --git a/Makefile b/Makefile index 877c50c..e0b3912 100644 --- 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 index 707d8b7..0000000 --- a/awesome/autostart.lua +++ /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") diff --git a/awesome/rc.lua b/awesome/rc.lua index af38777..6ba9749 100644 --- a/awesome/rc.lua +++ b/awesome/rc.lua @@ -56,7 +56,6 @@ require("menu") require("topbar") require("rules") -- require("conky") -require("autostart") require("signals") -- Set keys diff --git a/awesome/rules.lua b/awesome/rules.lua index fe8ffc0..20fa19a 100644 --- a/awesome/rules.lua +++ b/awesome/rules.lua @@ -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" }, diff --git a/xprofile b/xprofile index 9c2cda5..ba632e7 100644 --- 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 &