mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-25 03:08:34 +02:00
start: start and define the "default" browser
To setup the default browser, the appropriate commands are: xdg-mime default conkeror.desktop x-scheme-handler/http xdg-mime default conkeror.desktop x-scheme-handler/https See: http://blog.radevic.com/2012/02/how-to-set-default-apps-aka-how-to-use.html
This commit is contained in:
parent
05b845ff66
commit
4ce181df0a
1 changed files with 5 additions and 4 deletions
|
@ -1,4 +1,5 @@
|
||||||
-- Startup
|
-- Startup
|
||||||
|
local browser = "conkeror"
|
||||||
|
|
||||||
-- Setup display
|
-- Setup display
|
||||||
local xrandr = {
|
local xrandr = {
|
||||||
|
@ -21,6 +22,9 @@ local execute = {
|
||||||
"numlockx on",
|
"numlockx on",
|
||||||
-- Read resources
|
-- Read resources
|
||||||
"xrdb -merge " .. awful.util.getdir("config") .. "/Xresources",
|
"xrdb -merge " .. awful.util.getdir("config") .. "/Xresources",
|
||||||
|
-- Default browser
|
||||||
|
"xdg-mime default " .. browser .. ".desktop x-scheme-handler/http",
|
||||||
|
"xdg-mime default " .. browser .. ".desktop x-scheme-handler/https"
|
||||||
}
|
}
|
||||||
|
|
||||||
-- Keyboard/Mouse configuration
|
-- Keyboard/Mouse configuration
|
||||||
|
@ -63,15 +67,12 @@ xrun("Bluetooth Applet",
|
||||||
"bluetooth-applet")
|
"bluetooth-applet")
|
||||||
xrun("pidgin", "pidgin -n")
|
xrun("pidgin", "pidgin -n")
|
||||||
xrun("emacs")
|
xrun("emacs")
|
||||||
|
xrun(browser)
|
||||||
|
|
||||||
if config.hostname == "neo" then
|
if config.hostname == "neo" then
|
||||||
xrun("keepassx", "keepassx -min -lock")
|
xrun("keepassx", "keepassx -min -lock")
|
||||||
xrun("transmission", "transmission-gtk -m")
|
xrun("transmission", "transmission-gtk -m")
|
||||||
xrun("conkeror")
|
|
||||||
elseif config.hostname == "guybrush" then
|
elseif config.hostname == "guybrush" then
|
||||||
xrun("keepassx", "keepassx -min -lock")
|
xrun("keepassx", "keepassx -min -lock")
|
||||||
xrun("NetworkManager Applet", "nm-applet")
|
xrun("NetworkManager Applet", "nm-applet")
|
||||||
xrun("conkeror")
|
|
||||||
elseif config.hostname == "naruto" then
|
|
||||||
xrun("conkeror")
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue