mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-24 18:58:33 +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
|
||||
local browser = "conkeror"
|
||||
|
||||
-- Setup display
|
||||
local xrandr = {
|
||||
|
@ -21,6 +22,9 @@ local execute = {
|
|||
"numlockx on",
|
||||
-- Read resources
|
||||
"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
|
||||
|
@ -63,15 +67,12 @@ xrun("Bluetooth Applet",
|
|||
"bluetooth-applet")
|
||||
xrun("pidgin", "pidgin -n")
|
||||
xrun("emacs")
|
||||
xrun(browser)
|
||||
|
||||
if config.hostname == "neo" then
|
||||
xrun("keepassx", "keepassx -min -lock")
|
||||
xrun("transmission", "transmission-gtk -m")
|
||||
xrun("conkeror")
|
||||
elseif config.hostname == "guybrush" then
|
||||
xrun("keepassx", "keepassx -min -lock")
|
||||
xrun("NetworkManager Applet", "nm-applet")
|
||||
xrun("conkeror")
|
||||
elseif config.hostname == "naruto" then
|
||||
xrun("conkeror")
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue