Created
August 7, 2012 13:49
-
-
Save gilsondev/3285475 to your computer and use it in GitHub Desktop.
Minha configuração do Xmonad com Unity no Ubuntu 12.04
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /usr/share/xsession/ | |
[Desktop Entry] | |
Name=XMonad Unity | |
Comment=Tiling window manager | |
TryExec=/usr/bin/gnome-session | |
Exec=gnome-session --session=xmonad | |
Type=XSession |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /usr/share/applications | |
[Desktop Entry] | |
Type=Application | |
Encoding=UTF-8 | |
Name=Xmonad | |
Exec=xmonad | |
NoDisplay=true | |
X-GNOME-WMName=Xmonad | |
X-GNOME-Autostart-Phase=WindowManager | |
X-GNOME-Provides=windowmanager | |
X-GNOME-Autostart-Notify=true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import XMonad | |
import XMonad.Config.Gnome | |
import XMonad.Hooks.ManageDocks | |
import XMonad.Util.EZConfig | |
import XMonad.Layout.Gaps | |
import Data.List | |
-- Configuração Simples | |
-- main = xmonad defaultConfig | |
-- { modMask = mod4Mask -- Use Super instead of Alt | |
-- , terminal = "terminator" | |
-- , normalBorderColor = "#CCCCCC" | |
-- , focusedBorderColor = "#CD8B00" | |
-- } | |
myManageHook = composeAll . concat $ | |
[ [ className =? "Firefox-bin" --> doShift "6:ff" ] | |
, [ className =? "Firefox" --> doShift "6:ff" ] | |
, [(className =? "Firefox" <&&> resource =? "Dialog") --> doFloat] | |
, [ className =? "chromium-browser" --> doShift "1:chrome" ] | |
, [(className =? "chromium-browser" <&&> resource =? "Dialog") --> doFloat] | |
, [ className =? "gvim" --> doShift "2:code" ] | |
, [ className =? "terminator" --> doShift "3:console" ] | |
, [ className =? "vlc" --> doShift "7:video" ] | |
] | |
myLayouts = gaps [(U, 0)] $ layoutHook gnomeConfig | |
main = xmonad $ gnomeConfig | |
{ workspaces = ["1:chrome","2:code","3:console","4:server","5:mail","6:ff","7:video","8","9","0","-","="] | |
, manageHook = myManageHook <+> manageHook gnomeConfig | |
, modMask = mod4Mask | |
, layoutHook = myLayouts | |
, terminal = "terminator" | |
, focusFollowsMouse = False | |
} | |
`additionalKeysP` | |
-- DMenu | |
[ ("M-p", spawn "dmenu_run") | |
-- Shutdown | |
, ("M-S-q", spawn "gnome-session-quit --power-off") | |
-- Lock Screen | |
, ("M-S-l", spawn "gnome-screensaver-command -l") | |
-- Logout | |
, ("M1-M-S-l", spawn "gnome-session-save --gui --kill") | |
-- Reboot | |
, ("M1-S-,", spawn "gnome-power-cmd.sh reboot") | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /usr/share/gnome-session/sessions | |
[GNOME Session] | |
Name=Xmonad Unity | |
RequiredComponents=gnome-settings-daemon; | |
RequiredProviders=windowmanager; | |
DefaultProvider-windowmanager=xmonad |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment