Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rc.lua:
- -- WTF?!
- globalkeys = awful.util.table.join(
- awful.key({ modkey, }, "Left", awful.tag.viewprev ),
- awful.key({ modkey, }, "Right", awful.tag.viewnext ),
- awful.key({ modkey, }, "Escape", awful.tag.history.restore),
- awful.key({ modkey, }, "F12", function () awful.util.spawn('/usr/bin/xlock -mode life') end),
- -- Table of layouts to cover with awful.layout.inc, order matters.
- awful.layout.layouts = {
- awful.layout.suit.tile,
- awful.layout.suit.tile.left,
- awful.layout.suit.tile.bottom,
- awful.layout.suit.tile.top,
- awful.layout.suit.fair,
- awful.layout.suit.fair.horizontal,
- awful.layout.suit.spiral,
- awful.layout.suit.spiral.dwindle,
- awful.layout.suit.max,
- awful.layout.suit.max.fullscreen,
- awful.layout.suit.magnifier,
- awful.layout.suit.corner.nw,
- awful.layout.suit.floating,
- -- awful.layout.suit.corner.ne,
- -- awful.layout.suit.corner.sw,
- -- awful.layout.suit.corner.se,
- }
- -- Add titlebars to normal clients and dialogs
- { rule_any = {type = { "dialog" }
- }, properties = { titlebars_enabled = true }
- },
- -- Set Firefox to always map on the tag named "2" on screen 1.
- -- To detect class: xprop WM_CLASS and clisk
- { rule = { class = "Kopete" },
- properties = { screen = 1, tag = "1" } },
- { rule = { class = "Telegram" },
- properties = { screen = 1, tag = "1" } },
- { rule = { class = "Konqueror" },
- properties = { screen = 1, tag = "9" } },
- { rule = { class = "KeePass" },
- properties = { screen = 2, tag = "8" } },
- { rule = { class = "KeePass2" },
- properties = { screen = 2, tag = "8" } },
- }
- awful.util.spawn_with_shell("pgrep Telegram >/dev/null || /opt/Telegram/Telegram")
- awful.util.spawn_with_shell("pgrep firefox >/dev/null || /usr/bin/firefox")
- awful.util.spawn_with_shell("pgrep kbdd >/dev/null || /usr/bin/kbdd")
- awful.util.spawn_with_shell("pgrep keepassxc >/dev/null || /usr/bin/keepassxc")
- awful.util.spawn_with_shell("pgrep konsole >/dev/null || /usr/bin/konsole")
- awful.util.spawn_with_shell("pgrep nautilus >/dev/null || /usr/bin/nautilus")
- awful.util.spawn_with_shell("pgrep nm-applet >/dev/null || /usr/bin/nm-applet")
- awful.util.spawn_with_shell("pgrep pasystray >/dev/null || /usr/bin/pasystray")
- awful.util.spawn_with_shell("pgrep syncthing-gtk >/dev/null || /usr/bin/syncthing-gtk")
- awful.util.spawn_with_shell("pgrep syndaemon >/dev/null || /usr/bin/syndaemon -i 1 -d -t -K")
- awful.util.spawn_with_shell("pgrep thunderbird >/dev/null || /usr/bin/thunderbird")
- awful.util.spawn_with_shell("pgrep xbindkeys >/dev/null || /usr/bin/xbindkeys")
- awful.util.spawn_with_shell("pgrep xfce4-power-manager >/dev/null || /usr/bin/xfce4-power-manager")
- awful.util.spawn_with_shell("pgrep xscreensaver >/dev/null || /usr/bin/xscreensaver -nosplash")
- /usr/share/awesome/themes/default/theme.lua:
- theme.font = "sans 10"
- # Определить класс окна для конфига:
- xprop|grep -i class
- # XRandr
- https://awesomewm.org/recipes/xrandr/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement