Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- SHIFTY: application matching rules
- -- order here matters, early rules will be applied first
- min_y = 19;
- min_x = 0;
- max_y = 749;
- max_x = 1364;
- full_desktop = {min_x, min_y, max_x, max_y};
- full_screen = screen[1].workarea;
- if screen.count() == 2 then
- player_geometry = screen[2].workarea;
- else
- player_geometry = full_screen;
- end
- shifty.config.apps = {
- {
- match = {
- "Firefox",
- },
- tag = "web",
- -- geometry = full_desktop,
- screen = math.max(screen.count(), 2),
- },
- {
- match = {
- "Gmpc"
- },
- tag = "music",
- nopopup = true,
- },
- {
- match = {
- "sublime_text",
- },
- tag = "editor",
- nopopup = true,
- },
- {
- match = {"termite"},
- float = true,
- intrusive = true,
- above = true,
- ontop = true,
- skip_taskbar = true,
- sticky = true,
- geometry = {0, 0, 1366, 299},
- },
- {
- match = {"Skype.*",},
- tag = "skype",
- },
- {
- match = {"Pidgin.*"},
- tag = "pidgin",
- },
- {
- match = {"Conky",},
- float = true,
- intrusive = true,
- skip_taskbar = true,
- geometry = {0, 361, 233, 405},
- },
- {
- match = {"gmrun"},
- float = true,
- intrusive = true,
- skip_taskbar = true,
- },
- {
- match = {"VirtualBox"},
- tag = "virtualbox",
- },
- {
- match = {"Wine", "dosbox", "FTL", "Buddha.bin.x86", "retroarch"},
- tag = "wine",
- },
- {
- match = {"Player", "vlc", "mplayer2", "mpv", "gl"},
- tag = "P",
- nopopup = true,
- geometry = player_geometry,
- },
- {
- match = {"Client"},
- tag = "C",
- geometry = full_desktop,
- },
- {
- match = {"Gimp"},
- tag = "gimp",
- },
- {
- match = {"Mirage"},
- tag = "mirage",
- },
- {
- match = {"plugin-container"},
- float = true,
- },
- {
- match = {"chromium"},
- tag = "chrome",
- geometry = full_desktop,
- },
- {
- match = {"transmission"},
- tag = "pause",
- geometry = full_desktop,
- },
- {
- match = {"VCLSalFrame"},
- tag = "Office",
- },
- {
- match = {"Xephyr"},
- tag = "X",
- },
- {
- match = {"m2gui"},
- tag = "M",
- },
- {
- match = {"Hamster"},
- tag = "L",
- },
- {
- match = {""},
- buttons = awful.util.table.join(
- awful.button({}, 1, function (c) client.focus = c; c:raise() end),
- awful.button({"Mod1"}, 1, function(c)
- client.focus = c
- c:raise()
- awful.mouse.client.move(c)
- end),
- awful.button({"Mod1"}, 3, awful.mouse.client.resize)
- )
- },
- }
- -- Shifty configured tags.
- shifty.config.tags = {
- ["pause"] = {
- layout = awful.layout.suit.floating,
- position = stags.pause,
- icon = "/usr/share/icons/oxygen/16x16/actions/media-playback-pause.png",
- icon_only = true,
- leave_kills = true,
- },
- -- Autorun
- ["music"] = {
- layout = awful.layout.suit.magnifier,
- exclusive = true,
- position = stags.gmpc,
- init = true,
- spawn = music_app,
- icon = "/usr/share/icons/hicolor/16x16/apps/gmpc.png",
- icon_only = true,
- nopopup = true,
- },
- ["skype"] = {
- layout = awful.layout.suit.magnifier,
- position = stags.skype,
- exclusive = true,
- init = true,
- spawn = skype,
- icon = "/usr/share/icons/hicolor/16x16/apps/skype.png",
- icon_only = true,
- nopopup = true,
- },
- ["pidgin"] = {
- layout = awful.layout.suit.tile.left,
- position = stags.pidgin,
- exclusive = true,
- slave = true,
- -- init = true,
- spawn = pidgin,
- icon = "/usr/share/icons/hicolor/16x16/apps/pidgin.png",
- icon_only = true,
- nopopup = true,
- },
- -- Spawning
- ["web"] = {
- layout = awful.layout.suit.floating,
- exclusive = true,
- position = stags.browser,
- spawn = browser,
- icon = "/usr/share/icons/hicolor/16x16/apps/firefox.png",
- icon_only = true,
- init = true,
- nopopup = true,
- screen = math.max(screen.count(), 2),
- },
- ["editor"] = {
- layout = awful.layout.suit.magnifier,
- exclusive = true,
- position = stags.editor,
- slave = true,
- spawn = editor_cmd,
- icon = "/home/socek/apps/sublime_text_3/Icon/16x16/sublime-text.png",
- icon_only = true,
- init = true,
- nopopup = true,
- },
- ["chrome"] = {
- layout = awful.layout.suit.floating,
- exclusive = true,
- position = stags.chrome,
- spawn = "/usr/bin/chromium",
- icon = "/usr/share/icons/hicolor/16x16/apps/chromium.png",
- icon_only = true,
- leave_kills = true,
- },
- ["gimp"] = {
- layout = awful.layout.suit.floating,
- icon = '/usr/share/icons/hicolor/16x16/apps/gimp.png',
- exclusive = true,
- position = stags.gimp,
- icon_only = true,
- spawn = '/usr/bin/gimp',
- leave_kills = true,
- },
- -- Rest
- ["mirage"] = {
- layout = awful.layout.suit.magnifier,
- icon = '/usr/share/icons/hicolor/16x16/apps/qv4l2.png',
- exclusive = true,
- position = stags.imgbrowser,
- icon_only = true,
- leave_kills = true,
- },
- ["wine"] = {
- layout = awful.layout.suit.floating,
- position = stags.wine,
- exclusive = true,
- icon = "/home/socek/obrazy/wine.png",
- icon_only = true,
- leave_kills = true,
- },
- ["virtualbox"] = {
- layout = awful.layout.suit.floating,
- position = stags.virtualbox,
- exclusive = true,
- icon = "/usr/share/icons/hicolor/16x16/mimetypes/virtualbox-vbox.png",
- icon_only = true,
- leave_kills = true,
- },
- ["P"] = {
- layout = awful.layout.suit.tile.left,
- position = stags.player,
- exclusive = true,
- screen = math.max(screen.count(), 2),
- leave_kills = true,
- -- init = true,
- },
- ["C"] = {
- layout = awful.layout.suit.floating,
- position = stags.client,
- exclusive = true,
- leave_kills = true,
- },
- ["Office"] = {
- layout = awful.layout.suit.floating,
- position = stags.office,
- exclusive = true,
- icon = "/usr/share/icons/hicolor/16x16/apps/libreoffice-calc.png",
- icon_only = true,
- spawn = "/usr/bin/libreoffice",
- leave_kills = true,
- },
- ["X"] = {
- layout = awful.layout.suit.floating,
- position = stags.xephyr,
- exclusive = true,
- leave_kills = true,
- },
- ["M"] = {
- layout = awful.layout.suit.floating,
- position = stags.m2gui,
- exclusive = true,
- leave_kills = true,
- },
- ["L"] = {
- layout = awful.layout.suit.floating,
- position = stags.counter,
- exclusive = true,
- leave_kills = true,
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment