Compare commits
154 Commits
awesome-3.
...
master
Author | SHA1 | Date |
---|---|---|
Kolan Sh | 86808f50da | |
Kolan Sh | 62048699f1 | |
Kolan Sh | 46741ec146 | |
Kolan Sh | f0c0b9c09c | |
Kolan Sh | 7cce1e81a4 | |
Kolan Sh | 065af1ee3e | |
Kolan Sh | bb4e10195e | |
Kolan Sh | 02a6df886d | |
Kolan Sh | 5bc940b2ff | |
Kolan Sh | 2471492879 | |
Kolan Sh | 78ecab8ecf | |
Kolan Sh | f190b4320e | |
Kolan Sh | 0d1b07e167 | |
Kolan Sh | 90fdd53f4c | |
Kolan Sh | 0d651da5d1 | |
Kolan Sh | d2e0513b03 | |
Kolan Sh | 4248e2ff98 | |
Kolan Sh | 8288a5b426 | |
Kolan Sh | 54b132728c | |
Kolan Sh | 38ad350475 | |
Kolan Sh | a5ed9ac2e9 | |
Kolan Sh | f128bf543f | |
Kolan Sh | 402b4c4000 | |
Kolan Sh | 1fac5825e4 | |
Kolan Sh | 53711db703 | |
Kolan Sh | 952dfd9463 | |
Kolan Sh | 409a7c3d2f | |
Kolan Sh | 1c42902e06 | |
Kolan Sh | 7573ae080d | |
Kolan Sh | 89401f40e1 | |
Kolan Sh | ee19a6c71f | |
Kolan Sh | e2bca4158a | |
Kolan Sh | f62d2b88df | |
Kolan Sh | 6837a73977 | |
Kolan Sh | 477533aa40 | |
Kolan Sh | 3f6cb4b981 | |
Kolan Sh | 83e20dd892 | |
Kolan Sh | e2a692d997 | |
Kolan Sh | f0656eb4a0 | |
Kolan Sh | 39d739303c | |
Kolan Sh | 4394fa73f9 | |
Kolan Sh | 5161f4c4d9 | |
Kolan Sh | 4648b8f341 | |
Kolan Sh | 3104af29d1 | |
Kolan Sh | 40908e3306 | |
Kolan Sh | 31df76c3ce | |
Kolan Sh | feed8ef46f | |
Kolan Sh | 352484ecaa | |
Kolan Sh | 11db495e01 | |
Kolan Sh | c1c1180575 | |
Kolan Sh | 9613d2f97a | |
Kolan Sh | da1d38b4c6 | |
Kolan Sh | 54aa287427 | |
Kolan Sh | acfc4f354c | |
Kolan Sh | 3bc12df35a | |
Kolan Sh | 3f042a32fc | |
Kolan Sh | a7594831df | |
Kolan Sh | 1a746e7938 | |
Kolan Sh | 82f1cfd2b1 | |
Kolan Sh | d66189d5d8 | |
Kolan Sh | 052b345ebc | |
Kolan Sh | b1b1d3567a | |
Kolan Sh | 19ed9bc819 | |
Kolan Sh | 4b5aa0b95f | |
Kolan Sh | 738c403532 | |
Kolan Sh | ff4e8ba2d4 | |
Kolan Sh | bfab6229c8 | |
Kolan Sh | 6d2e119811 | |
Kolan Sh | a882fbb3da | |
Kolan Sh | 908d4e7e0a | |
Kolan Sh | 217eb693d8 | |
Kolan Sh | 06fc3aed7d | |
Kolan Sh | 57fbcb3d93 | |
Kolan Sh | 709e679630 | |
Kolan Sh | a88e255d6d | |
Kolan Sh | aac2863441 | |
Kolan Sh | 37a1f0690b | |
Kolan Sh | b841873b38 | |
Kolan Sh | 434e84ff8c | |
Kolan Sh | 264016cb31 | |
Kolan Sh | 1d1c349cfc | |
Kolan Sh | 434dc96e86 | |
Kolan Sh | 1a1c88e835 | |
Kolan Sh | cdedaeb946 | |
Kolan Sh | 7922959639 | |
Kolan Sh | abbd144dc3 | |
Kolan Sh | 65106f3366 | |
Kolan Sh | d420f3b74b | |
Kolan Sh | 57e63c8017 | |
Kolan Sh | e7cd7ce3ae | |
Kolan Sh | 33ffeb420b | |
Kolan Sh | e0d612f927 | |
Kolan Sh | 82c0d34ed3 | |
Kolan Sh | 956a326956 | |
Kolan Sh | 4164c0dab8 | |
Kolan Sh | f2f467f30f | |
Kolan Sh | 4127fcd2ac | |
Kolan Sh | e798bbe862 | |
Kolan Sh | ed31192eda | |
Kolan Sh | 665d28ff23 | |
Kolan Sh | e6733957eb | |
Kolan Sh | bd1ea492d2 | |
Kolan Sh | 4092f2d7cf | |
Kolan Sh | cfab75032d | |
Kolan Sh | 6c0efb53ab | |
Kolan Sh | 4799e07878 | |
Kolan Sh | bda0e9c85a | |
Kolan Sh | e1fac67736 | |
Kolan Sh | 14c950da34 | |
Kolan Sh | 49e43b0cc2 | |
Kolan Sh | 22477f02fd | |
Kolan Sh | b12ec25c8e | |
Kolan Sh | 93cd5bd7c3 | |
Kolan Sh | 40f07a6590 | |
Kolan Sh | 2e13bb1c3e | |
Kolan Sh | e52d41f0a9 | |
Kolan Sh | 64b89b92a5 | |
Kolan Sh | ec35d5c8e1 | |
Kolan Sh | 3b1ebf63c1 | |
Kolan Sh | 1bdc6f55fc | |
Kolan Sh | 47bb829b7b | |
Kolan Sh | 271a7c9977 | |
Kolan Sh | 6433c95d6a | |
Kolan Sh | 41510b2ce6 | |
Kolan Sh | fdb7cfc635 | |
Kolan Sh | 880ec14064 | |
Kolan Sh | b1746089e1 | |
Kolan Sh | d54799aece | |
Kolan Sh | bd6aaeccdd | |
Kolan Sh | e94a80e551 | |
Kolan Sh | a841ef8588 | |
Kolan Sh | f5148dab24 | |
Kolan Sh | 5e171d5ae6 | |
Kolan Sh | d529981055 | |
Kolan Sh | 4ee66e7511 | |
Kolan Sh | fd27123164 | |
Kolan Sh | fb48ce0b63 | |
Kolan Sh | 7d06c98475 | |
Kolan Sh | e4ecdaff65 | |
Kolan Sh | 2ca1960e55 | |
Kolan Sh | 6f07a56e3c | |
Kolan Sh | bbe18e33ad | |
Kolan Sh | bbd47fb1ae | |
Kolan Sh | b78e96b230 | |
Kolan Sh | df390aa3b9 | |
Kolan Sh | 55a180e4db | |
Kolan Sh | 00d89cdce4 | |
Kolan Sh | 0aa2afb5bc | |
Kolan Sh | 11c4af84a9 | |
Kolan Sh | 609dbd7cc9 | |
Kolan Sh | 56af16c897 | |
Kolan Sh | 01efb99e3c | |
Kolan Sh | 55ff7d81ac | |
Kolan Sh | 4dc9d763ba |
Before Width: | Height: | Size: 191 B After Width: | Height: | Size: 191 B |
Before Width: | Height: | Size: 204 B After Width: | Height: | Size: 204 B |
Before Width: | Height: | Size: 298 B After Width: | Height: | Size: 298 B |
Before Width: | Height: | Size: 218 B After Width: | Height: | Size: 218 B |
After Width: | Height: | Size: 194 B |
Before Width: | Height: | Size: 171 B After Width: | Height: | Size: 171 B |
After Width: | Height: | Size: 213 B |
Before Width: | Height: | Size: 217 B After Width: | Height: | Size: 217 B |
Before Width: | Height: | Size: 299 B After Width: | Height: | Size: 299 B |
Before Width: | Height: | Size: 247 B After Width: | Height: | Size: 247 B |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 5.0 KiB |
After Width: | Height: | Size: 1000 B |
After Width: | Height: | Size: 4.3 KiB |
69
apprules.lua
|
@ -1,69 +0,0 @@
|
|||
-- {{{ Rules
|
||||
awful.rules.rules = {
|
||||
-- All clients will match this rule.
|
||||
{ rule = { },
|
||||
properties = { border_width = beautiful.border_width,
|
||||
border_color = beautiful.border_normal,
|
||||
focus = true,
|
||||
keys = clientkeys,
|
||||
buttons = clientbuttons } },
|
||||
{ rule = { class = "URxvt" },
|
||||
properties = { tag = tags[1][1] } },
|
||||
{ rule = { class = "Firefox" },
|
||||
properties = { tag = tags[1][2] } },
|
||||
{ rule = { class = "Thunderbird" },
|
||||
properties = { tag = tags[1][2] } },
|
||||
{ rule = { class = "VirtualBox" },
|
||||
properties = { tag = tags[1][3] } },
|
||||
{ rule = { class = "Remmina" },
|
||||
properties = { tag = tags[1][3] } },
|
||||
{ rule = { class = "Spicy" },
|
||||
properties = { tag = tags[1][3] } },
|
||||
{ rule = { class = "Aqemu" },
|
||||
properties = { tag = tags[1][3] } },
|
||||
{ rule = { class = "Soffice" },
|
||||
properties = { floating = false, tag = tags[1][4] } },
|
||||
{ rule = { class = "libreoffice-writer" },
|
||||
properties = { floating = false, tag = tags[1][4] } },
|
||||
{ rule = { class = "libreoffice-calc" },
|
||||
properties = { floating = false, tag = tags[1][4] } },
|
||||
{ rule = { class = "libreoffice-draw" },
|
||||
properties = { floating = false, tag = tags[1][4] } },
|
||||
{ rule = { class = "libreoffice-base" },
|
||||
properties = { floating = false, tag = tags[1][4] } },
|
||||
{ rule = { class = "libreoffice-math" },
|
||||
properties = { floating = false, tag = tags[1][4] } },
|
||||
{ rule = { class = "libreoffice-impress" },
|
||||
properties = { floating = false, tag = tags[1][4] } },
|
||||
{ rule = { class = "libreoffice-startcenter" },
|
||||
properties = { floating = false, tag = tags[1][4] } },
|
||||
{ rule = { class = "Okular" },
|
||||
properties = { floating = false, tag = tags[1][4] } },
|
||||
{ rule = { class = "Lyx" },
|
||||
properties = { tag = tags[1][4] } },
|
||||
{ rule = { class = "Evince" },
|
||||
properties = { tag = tags[1][4] } },
|
||||
{ rule = { class = "Qt Jambi application" },
|
||||
properties = { tag = tags[1][5] } },
|
||||
{ rule = { class = "Pidgin" },
|
||||
properties = { tag = tags[1][9] } },
|
||||
{ rule = { class = "Stardict" },
|
||||
properties = { tag = tags[1][8] } },
|
||||
{ rule = { class = "MPlayer" },
|
||||
properties = { floating = true } },
|
||||
{ rule = { class = "Texreport-gtk" },
|
||||
properties = { floating = true } },
|
||||
{ rule = { class = "etracer" },
|
||||
properties = { tag = tags[1][6] } },
|
||||
{ rule = { class = "Eboard" },
|
||||
properties = { tag = tags[1][6] } },
|
||||
{ rule = { class = "charleygame-bin" },
|
||||
properties = { tag = tags[1][6] } },
|
||||
{ rule = { class = "lincity-ng" },
|
||||
properties = { tag = tags[1][6] } },
|
||||
-- XTerm на пятом и шестом теге первого экрана
|
||||
-- { rule = { class = "XTerm" }, callback = function(c) c:tags({tags[1][4], tags[1][6]}) end},
|
||||
}
|
||||
-- }}}
|
||||
|
||||
|
|
@ -1,7 +1,18 @@
|
|||
os.execute ("setxkbmap -layout 'us,ru'")
|
||||
os.execute ("setxkbmap -option 'grp:shift_toggle,grp_led:scroll,terminate:ctrl_alt_bksp'")
|
||||
os.execute ("xrandr --setprovideroutputsource modesetting NVIDIA-0 && xrandr --auto")
|
||||
--os.execute ("/usr/bin/nvidia-settings -a ‘[gpu:0]/GPUPowerMizerMode=1’")
|
||||
--os.execute ("nvidia-smi -pm ENABLED")
|
||||
--os.execute (os.getenv("HOME").."/.config/awesome/set_wall.sh "..os.getenv("HOME").."/.config/awesome/wallpaper.slink &")
|
||||
os.execute ("pgrep xscreensaver || xscreensaver -no-splash &")
|
||||
os.execute ("pgrep mail_loop.sh || "..os.getenv("HOME").."/.config/awesome/mail_loop.sh &")
|
||||
os.execute ("pgrep nm-applet || nm-applet &")
|
||||
os.execute ("numlockx on &")
|
||||
os.execute ("xsetroot -cursor_name left_ptr &")
|
||||
os.execute ("xscreensaver -no-splash &")
|
||||
os.execute ("pidgin &")
|
||||
os.execute ("pgrep stardict || stardict &")
|
||||
os.execute ("pgrep urxvt || urxvt &")
|
||||
os.execute ("pgrep firefox || firefox &")
|
||||
--os.execute ("smbnetfs "..os.getenv("HOME").."/smb &")
|
||||
--os.execute ("pgrep lightsOn.sh || "..os.getenv("HOME").."/.config/awesome/lightsOn.sh &")
|
||||
--os.execute ("pgrep urxvt || urxvt &")
|
||||
--os.execute ("pgrep stardict || stardict &")
|
||||
--os.execute ("pgrep pidgin || pidgin &")
|
||||
--os.execute ("pgrep firefox || (firefox || firefox-bin) &")
|
||||
--os.execute ("xrandr --output HDMI-0 --left-of eDP-1-1 --mode 1920x1080 &")
|
||||
--os.execute (os.getenv("HOME").."/.config/awesome/xrandr.sh &")
|
||||
|
|
|
@ -0,0 +1,97 @@
|
|||
-- Grab environment
|
||||
local utils = require("freedesktop.utils")
|
||||
local io = io
|
||||
local string = string
|
||||
local table = table
|
||||
local os = os
|
||||
local ipairs = ipairs
|
||||
local pairs = pairs
|
||||
|
||||
module("freedesktop.menu")
|
||||
|
||||
all_menu_dirs = {
|
||||
'/usr/share/applications/',
|
||||
'/usr/local/share/applications/',
|
||||
'~/.local/share/applications/'
|
||||
}
|
||||
|
||||
show_generic_name = false
|
||||
|
||||
--- Create menus for applications
|
||||
-- @param menu_dirs A list of application directories (optional).
|
||||
-- @return A prepared menu w/ categories
|
||||
function new(arg)
|
||||
-- the categories and their synonyms where shamelessly copied from lxpanel
|
||||
-- source code.
|
||||
local programs = {}
|
||||
local config = arg or {}
|
||||
|
||||
programs['AudioVideo'] = {}
|
||||
programs['Development'] = {}
|
||||
programs['Education'] = {}
|
||||
programs['Game'] = {}
|
||||
programs['Graphics'] = {}
|
||||
programs['Network'] = {}
|
||||
programs['Office'] = {}
|
||||
programs['Settings'] = {}
|
||||
programs['System'] = {}
|
||||
programs['Utility'] = {}
|
||||
programs['Other'] = {}
|
||||
|
||||
for i, dir in ipairs(config.menu_dirs or all_menu_dirs) do
|
||||
local entries = utils.parse_desktop_files({dir = dir})
|
||||
for j, program in ipairs(entries) do
|
||||
-- check whether to include in the menu
|
||||
if program.show and program.Name and program.cmdline then
|
||||
if show_generic_name and program.GenericName then
|
||||
program.Name = program.Name .. ' (' .. program.GenericName .. ')'
|
||||
end
|
||||
local target_category = nil
|
||||
if program.categories then
|
||||
for _, category in ipairs(program.categories) do
|
||||
if programs[category] then
|
||||
target_category = category
|
||||
break
|
||||
end
|
||||
end
|
||||
end
|
||||
if not target_category then
|
||||
target_category = 'Other'
|
||||
end
|
||||
if target_category then
|
||||
table.insert(programs[target_category], { program.Name, program.cmdline, program.icon_path })
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
-- sort each submenu alphabetically case insensitive
|
||||
for k, v in pairs(programs) do
|
||||
table.sort(v, function(a, b) return a[1]:lower() < b[1]:lower() end)
|
||||
end
|
||||
|
||||
local menu = {
|
||||
{ "Accessories", programs["Utility"], utils.lookup_icon({ icon = 'applications-accessories.png' }) },
|
||||
{ "Development", programs["Development"], utils.lookup_icon({ icon = 'applications-development.png' }) },
|
||||
{ "Education", programs["Education"], utils.lookup_icon({ icon = 'applications-science.png' }) },
|
||||
{ "Games", programs["Game"], utils.lookup_icon({ icon = 'applications-games.png' }) },
|
||||
{ "Graphics", programs["Graphics"], utils.lookup_icon({ icon = 'applications-graphics.png' }) },
|
||||
{ "Internet", programs["Network"], utils.lookup_icon({ icon = 'applications-internet.png' }) },
|
||||
{ "Multimedia", programs["AudioVideo"], utils.lookup_icon({ icon = 'applications-multimedia.png' }) },
|
||||
{ "Office", programs["Office"], utils.lookup_icon({ icon = 'applications-office.png' }) },
|
||||
{ "Other", programs["Other"], utils.lookup_icon({ icon = 'applications-other.png' }) },
|
||||
{ "Settings", programs["Settings"], utils.lookup_icon({ icon = 'preferences-desktop.png' }) },
|
||||
{ "System Tools", programs["System"], utils.lookup_icon({ icon = 'applications-system.png' }) },
|
||||
}
|
||||
|
||||
-- Removing empty entries from menu
|
||||
local cleanedMenu = {}
|
||||
for index, item in ipairs(menu) do
|
||||
itemTester = item[2]
|
||||
if itemTester[1] then
|
||||
table.insert(cleanedMenu, item)
|
||||
end
|
||||
end
|
||||
|
||||
return cleanedMenu
|
||||
end
|
|
@ -0,0 +1,258 @@
|
|||
-- Grab environment
|
||||
|
||||
local io = io
|
||||
local os = os
|
||||
local table = table
|
||||
local type = type
|
||||
local ipairs = ipairs
|
||||
local pairs = pairs
|
||||
|
||||
module("freedesktop.utils")
|
||||
|
||||
terminal = 'xterm'
|
||||
|
||||
icon_theme = nil
|
||||
|
||||
all_icon_sizes = {
|
||||
'128x128',
|
||||
'96x96',
|
||||
'72x72',
|
||||
'64x64',
|
||||
'48x48',
|
||||
'36x36',
|
||||
'32x32',
|
||||
'24x24',
|
||||
'22x22',
|
||||
'16x16'
|
||||
}
|
||||
all_icon_types = {
|
||||
'apps',
|
||||
'actions',
|
||||
'devices',
|
||||
'places',
|
||||
'categories',
|
||||
'status',
|
||||
'mimetypes'
|
||||
}
|
||||
all_icon_paths = { os.getenv("HOME") .. '/.icons/', '/usr/share/icons/' }
|
||||
|
||||
icon_sizes = {}
|
||||
|
||||
local mime_types = {}
|
||||
|
||||
function get_lines(...)
|
||||
local f = io.popen(...)
|
||||
return function () -- iterator
|
||||
local data = f:read()
|
||||
if data == nil then f:close() end
|
||||
return data
|
||||
end
|
||||
end
|
||||
|
||||
function file_exists(filename)
|
||||
local file = io.open(filename, 'r')
|
||||
local result = (file ~= nil)
|
||||
if result then
|
||||
file:close()
|
||||
end
|
||||
return result
|
||||
end
|
||||
|
||||
function lookup_icon(arg)
|
||||
if arg.icon:sub(1, 1) == '/' and (arg.icon:find('.+%.png') or arg.icon:find('.+%.xpm')) then
|
||||
-- icons with absolute path and supported (AFAICT) formats
|
||||
return arg.icon
|
||||
else
|
||||
local icon_path = {}
|
||||
local icon_themes = {}
|
||||
local icon_theme_paths = {}
|
||||
if icon_theme and type(icon_theme) == 'table' then
|
||||
icon_themes = icon_theme
|
||||
elseif icon_theme then
|
||||
icon_themes = { icon_theme }
|
||||
end
|
||||
for i, theme in ipairs(icon_themes) do
|
||||
for j, path in ipairs(all_icon_paths) do
|
||||
table.insert(icon_theme_paths, path .. theme .. '/')
|
||||
end
|
||||
-- TODO also look in parent icon themes, as in freedesktop.org specification
|
||||
end
|
||||
table.insert(icon_theme_paths, '/usr/share/icons/hicolor/') -- fallback theme cf spec
|
||||
|
||||
local isizes = icon_sizes
|
||||
for i, sz in ipairs(all_icon_sizes) do
|
||||
table.insert(isizes, sz)
|
||||
end
|
||||
|
||||
for i, icon_theme_directory in ipairs(icon_theme_paths) do
|
||||
for j, size in ipairs(arg.icon_sizes or isizes) do
|
||||
for k, icon_type in ipairs(all_icon_types) do
|
||||
table.insert(icon_path, icon_theme_directory .. size .. '/' .. icon_type .. '/')
|
||||
end
|
||||
end
|
||||
end
|
||||
-- lowest priority fallbacks
|
||||
table.insert(icon_path, '/usr/share/pixmaps/')
|
||||
table.insert(icon_path, '/usr/share/icons/')
|
||||
table.insert(icon_path, '/usr/share/app-install/icons/')
|
||||
|
||||
for i, directory in ipairs(icon_path) do
|
||||
if (arg.icon:find('.+%.png') or arg.icon:find('.+%.xpm')) and file_exists(directory .. arg.icon) then
|
||||
return directory .. arg.icon
|
||||
elseif file_exists(directory .. arg.icon .. '.png') then
|
||||
return directory .. arg.icon .. '.png'
|
||||
elseif file_exists(directory .. arg.icon .. '.xpm') then
|
||||
return directory .. arg.icon .. '.xpm'
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function lookup_file_icon(arg)
|
||||
load_mime_types()
|
||||
|
||||
local extension = arg.filename:match('%a+$')
|
||||
local mime = mime_types[extension] or ''
|
||||
local mime_family = mime:match('^%a+') or ''
|
||||
|
||||
-- possible icons in a typical gnome theme (i.e. Tango icons)
|
||||
local possible_filenames = {
|
||||
mime,
|
||||
'gnome-mime-' .. mime,
|
||||
mime_family,
|
||||
'gnome-mime-' .. mime_family,
|
||||
extension
|
||||
}
|
||||
|
||||
for i, filename in ipairs(possible_filenames) do
|
||||
local icon = lookup_icon({icon = filename, icon_sizes = (arg.icon_sizes or all_icon_sizes)})
|
||||
if icon then
|
||||
return icon
|
||||
end
|
||||
end
|
||||
|
||||
-- If we don't find ad icon, then pretend is a plain text file
|
||||
return lookup_icon({ icon = 'txt', icon_sizes = arg.icon_sizes or all_icon_sizes })
|
||||
end
|
||||
|
||||
--- Load system MIME types
|
||||
-- @return A table with file extension <--> MIME type mapping
|
||||
function load_mime_types()
|
||||
if #mime_types == 0 then
|
||||
for line in io.lines('/etc/mime.types') do
|
||||
if not line:find('^#') then
|
||||
local parsed = {}
|
||||
for w in line:gmatch('[^%s]+') do
|
||||
table.insert(parsed, w)
|
||||
end
|
||||
if #parsed > 1 then
|
||||
for i = 2, #parsed do
|
||||
mime_types[parsed[i]] = parsed[1]:gsub('/', '-')
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
--- Parse a .desktop file
|
||||
-- @param file The .desktop file
|
||||
-- @param requested_icon_sizes A list of icon sizes (optional). If this list is given, it will be used as a priority list for icon sizes when looking up for icons. If you want large icons, for example, you can put '128x128' as the first item in the list.
|
||||
-- @return A table with file entries.
|
||||
function parse_desktop_file(arg)
|
||||
local program = { show = true, file = arg.file }
|
||||
for line in io.lines(arg.file) do
|
||||
for key, value in line:gmatch("(%w+)=(.+)") do
|
||||
program[key] = value
|
||||
end
|
||||
end
|
||||
|
||||
-- Don't show the program if NoDisplay is true
|
||||
-- Only show the program if there is not OnlyShowIn attribute
|
||||
-- or if it's equal to 'awesome'
|
||||
if program.NoDisplay == "true" or program.OnlyShowIn ~= nil and program.OnlyShowIn ~= "awesome" then
|
||||
program.show = false
|
||||
end
|
||||
|
||||
-- Look up for a icon.
|
||||
if program.Icon then
|
||||
program.icon_path = lookup_icon({ icon = program.Icon, icon_sizes = (arg.icon_sizes or all_icon_sizes) })
|
||||
if program.icon_path ~= nil and not file_exists(program.icon_path) then
|
||||
program.icon_path = nil
|
||||
end
|
||||
end
|
||||
|
||||
-- Split categories into a table.
|
||||
if program.Categories then
|
||||
program.categories = {}
|
||||
for category in program.Categories:gmatch('[^;]+') do
|
||||
table.insert(program.categories, category)
|
||||
end
|
||||
end
|
||||
|
||||
if program.Exec then
|
||||
if program.Name == nil then
|
||||
program.Name = ""
|
||||
end
|
||||
local cmdline = program.Exec:gsub('%%c', program.Name)
|
||||
cmdline = cmdline:gsub('%%[fmuFMU]', '')
|
||||
cmdline = cmdline:gsub('%%k', program.file)
|
||||
if program.icon_path then
|
||||
cmdline = cmdline:gsub('%%i', '--icon ' .. program.icon_path)
|
||||
else
|
||||
cmdline = cmdline:gsub('%%i', '')
|
||||
end
|
||||
if program.Terminal == "true" then
|
||||
cmdline = terminal .. ' -e ' .. cmdline
|
||||
end
|
||||
program.cmdline = cmdline
|
||||
end
|
||||
|
||||
return program
|
||||
end
|
||||
|
||||
--- Parse a directory with .desktop files
|
||||
-- @param dir The directory.
|
||||
-- @param icons_size, The icons sizes, optional.
|
||||
-- @return A table with all .desktop entries.
|
||||
function parse_desktop_files(arg)
|
||||
local programs = {}
|
||||
local files = get_lines('find '.. arg.dir ..' -name "*.desktop" 2>/dev/null')
|
||||
for file in files do
|
||||
arg.file = file
|
||||
table.insert(programs, parse_desktop_file(arg))
|
||||
end
|
||||
return programs
|
||||
end
|
||||
|
||||
--- Parse a directory files and subdirs
|
||||
-- @param dir The directory.
|
||||
-- @param icons_size, The icons sizes, optional.
|
||||
-- @return A table with all .desktop entries.
|
||||
function parse_dirs_and_files(arg)
|
||||
local files = {}
|
||||
local paths = get_lines('find '..arg.dir..' -maxdepth 1 -type d')
|
||||
for path in paths do
|
||||
if path:match("[^/]+$") then
|
||||
local file = {}
|
||||
file.filename = path:match("[^/]+$")
|
||||
file.path = path
|
||||
file.show = true
|
||||
file.icon = lookup_icon({ icon = "folder", icon_sizes = (arg.icon_sizes or all_icon_sizes) })
|
||||
table.insert(files, file)
|
||||
end
|
||||
end
|
||||
local paths = get_lines('find '..arg.dir..' -maxdepth 1 -type f')
|
||||
for path in paths do
|
||||
if not path:find("%.desktop$") then
|
||||
local file = {}
|
||||
file.filename = path:match("[^/]+$")
|
||||
file.path = path
|
||||
file.show = true
|
||||
file.icon = lookup_file_icon({ filename = file.filename, icon_sizes = (arg.icon_sizes or all_icon_sizes) })
|
||||
table.insert(files, file)
|
||||
end
|
||||
end
|
||||
return files
|
||||
end
|
||||
|
Before Width: | Height: | Size: 216 B |
|
@ -0,0 +1,217 @@
|
|||
#!/bin/bash
|
||||
# lightsOn.sh
|
||||
|
||||
# Copyright (c) 2011 iye.cba at gmail com
|
||||
# url: https://github.com/iye/lightsOn
|
||||
# This script is licensed under GNU GPL version 2.0 or above
|
||||
|
||||
# Description: Bash script that prevents the screensaver and display power
|
||||
# management (DPMS) to be activated when you are watching Flash Videos
|
||||
# fullscreen on Firefox and Chromium.
|
||||
# Can detect mplayer and VLC when they are fullscreen too but I have disabled
|
||||
# this by default.
|
||||
# lightsOn.sh needs xscreensaver, kscreensaver or gnome-screensaver to work.
|
||||
|
||||
# HOW TO USE: Start the script with the number of seconds you want the checks
|
||||
# for fullscreen to be done. Example:
|
||||
# "./lightsOn.sh 120 &" will Check every 120 seconds if Mplayer,
|
||||
# VLC, Firefox or Chromium are fullscreen and delay screensaver and Power Management if so.
|
||||
# You want the number of seconds to be ~10 seconds less than the time it takes
|
||||
# your screensaver or Power Management to activate.
|
||||
# If you don't pass an argument, the checks are done every 50 seconds.
|
||||
|
||||
|
||||
# Modify these variables if you want this script to detect if Mplayer,
|
||||
# VLC or Firefox Flash Video are Fullscreen and disable
|
||||
# xscreensaver/kscreensaver/gnome-screensaver and PowerManagement.
|
||||
mplayer_detection=0
|
||||
vlc_detection=0
|
||||
firefox_flash_detection=1
|
||||
chromium_flash_detection=1
|
||||
html5_detection=1 #checks if the browser window is fullscreen; will disable the screensaver if the browser window is in fullscreen so it doesn't work correctly if you always use the browser (Firefox or Chromium) in fullscreen
|
||||
|
||||
|
||||
# YOU SHOULD NOT NEED TO MODIFY ANYTHING BELOW THIS LINE
|
||||
|
||||
|
||||
# enumerate all the attached screens
|
||||
displays=""
|
||||
while read id
|
||||
do
|
||||
displays="$displays $id"
|
||||
done< <(xvinfo | sed -n 's/^screen #\([0-9]\+\)$/\1/p')
|
||||
|
||||
# Detect screensaver been used (xscreensaver, kscreensaver, gnome-screensaver or none)
|
||||
if [ `pgrep -l xscreensaver | grep -wc xscreensaver` -ge 1 ];then
|
||||
screensaver=xscreensaver
|
||||
elif [ `pgrep -l gnome-screensav | grep -wc gnome-screensav` -ge 1 ];then
|
||||
screensaver=gnome-screensav
|
||||
elif [ `pgrep -l kscreensaver | grep -wc kscreensaver` -ge 1 ];then
|
||||
screensaver=kscreensaver
|
||||
else
|
||||
screensaver=None
|
||||
echo "No screensaver detected"
|
||||
fi
|
||||
|
||||
|
||||
checkFullscreen()
|
||||
{
|
||||
# loop through every display looking for a fullscreen window
|
||||
for display in $displays
|
||||
do
|
||||
#get id of active window and clean output
|
||||
activ_win_id=`DISPLAY=$DISPLAY.${display} xprop -root _NET_ACTIVE_WINDOW`
|
||||
#activ_win_id=${activ_win_id#*# } #gives error if xprop returns extra ", 0x0" (happens on some distros)
|
||||
activ_win_id=${activ_win_id:40:9}
|
||||
|
||||
# Skip invalid window ids (commented as I could not reproduce a case
|
||||
# where invalid id was returned, plus if id invalid
|
||||
# isActivWinFullscreen will fail anyway.)
|
||||
#if [ "$activ_win_id" = "0x0" ]; then
|
||||
# continue
|
||||
#fi
|
||||
|
||||
# Check if Active Window (the foremost window) is in fullscreen state
|
||||
isActivWinFullscreen=`DISPLAY=$DISPLAY.${display} xprop -id $activ_win_id | grep _NET_WM_STATE_FULLSCREEN`
|
||||
if [[ "$isActivWinFullscreen" = *NET_WM_STATE_FULLSCREEN* ]];then
|
||||
isAppRunning
|
||||
var=$?
|
||||
if [[ $var -eq 1 ]];then
|
||||
delayScreensaver
|
||||
fi
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# check if active windows is mplayer, vlc or firefox
|
||||
#TODO only window name in the variable activ_win_id, not whole line.
|
||||
#Then change IFs to detect more specifically the apps "<vlc>" and if process name exist
|
||||
|
||||
isAppRunning()
|
||||
{
|
||||
#Get title of active window
|
||||
activ_win_title=`xprop -id $activ_win_id | grep "WM_CLASS(STRING)"` # I used WM_NAME(STRING) before, WM_CLASS more accurate.
|
||||
|
||||
|
||||
|
||||
# Check if user want to detect Video fullscreen on Firefox, modify variable firefox_flash_detection if you dont want Firefox detection
|
||||
if [ $firefox_flash_detection == 1 ];then
|
||||
if [[ "$activ_win_title" = *unknown* || "$activ_win_title" = *plugin-container* ]];then
|
||||
# Check if plugin-container process is running
|
||||
flash_process=`pgrep -l plugin-containe | grep -wc plugin-containe`
|
||||
#(why was I using this line avobe? delete if pgrep -lc works ok)
|
||||
#flash_process=`pgrep -lc plugin-containe`
|
||||
if [[ $flash_process -ge 1 ]];then
|
||||
return 1
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
# Check if user want to detect Video fullscreen on Chromium, modify variable chromium_flash_detection if you dont want Chromium detection
|
||||
if [ $chromium_flash_detection == 1 ];then
|
||||
if [[ "$activ_win_title" = *exe* ]];then
|
||||
# Check if Chromium Flash process is running
|
||||
if [[ `pgrep -lfc "chromium-browser --type=plugin --plugin-path=/usr/lib/adobe-flashplugin"` -ge 1 || `pgrep -lfc "chromium-browser --type=plugin --plugin-path=/usr/lib/flashplugin-installer"` -ge 1 ]];then
|
||||
return 1
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
#html5 (Firefox or Chromium full-screen)
|
||||
if [ $html5_detection == 1 ];then
|
||||
if [[ "$activ_win_title" = *chromium-browser* || "$activ_win_title" = *Firefox* ]];then
|
||||
#check if firefox or chromium is running.
|
||||
if [[ `pgrep -l firefox | grep -wc firefox` -ge 1 || `pgrep -l chromium-browse | grep -wc chromium-browse` -ge 1 ]]; then
|
||||
return 1
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
#check if user want to detect mplayer fullscreen, modify variable mplayer_detection
|
||||
if [ $mplayer_detection == 1 ];then
|
||||
if [[ "$activ_win_title" = *mplayer* || "$activ_win_title" = *MPlayer* ]];then
|
||||
#check if mplayer is running.
|
||||
#mplayer_process=`pgrep -l mplayer | grep -wc mplayer`
|
||||
mplayer_process=`pgrep -lc mplayer`
|
||||
if [ $mplayer_process -ge 1 ]; then
|
||||
return 1
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
# Check if user want to detect vlc fullscreen, modify variable vlc_detection
|
||||
if [ $vlc_detection == 1 ];then
|
||||
if [[ "$activ_win_title" = *vlc* ]];then
|
||||
#check if vlc is running.
|
||||
#vlc_process=`pgrep -l vlc | grep -wc vlc`
|
||||
vlc_process=`pgrep -lc vlc`
|
||||
if [ $vlc_process -ge 1 ]; then
|
||||
return 1
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
|
||||
delayScreensaver()
|
||||
{
|
||||
|
||||
# reset inactivity time counter so screensaver is not started
|
||||
if [ "$screensaver" == "xscreensaver" ]; then
|
||||
#This tells xscreensaver to pretend that there has just been user activity. This means that if the screensaver is active (the screen is blanked), then this command will cause the screen to un-blank as if there had been keyboard or mouse activity. If the screen is locked, then the password dialog will pop up first, as usual. If the screen is not blanked, then this simulated user activity will re-start the countdown (so, issuing the -deactivate command periodically is one way to prevent the screen from blanking.)
|
||||
xscreensaver-command -deactivate > /dev/null
|
||||
elif [ "$screensaver" == "gnome-screensav" ]; then
|
||||
dbus-send --session --type=method_call --dest=org.gnome.ScreenSaver --reply-timeout=20000 /org/gnome/ScreenSaver org.gnome.ScreenSaver.SimulateUserActivity > /dev/null
|
||||
elif [ "$screensaver" == "kscreensaver" ]; then
|
||||
qdbus org.freedesktop.ScreenSaver /ScreenSaver SimulateUserActivity > /dev/null
|
||||
fi
|
||||
|
||||
|
||||
#Check if DPMS is on. If it is, deactivate and reactivate again. If it is not, do nothing.
|
||||
dpmsStatus=`xset -q | grep -ce 'DPMS is Enabled'`
|
||||
if [ $dpmsStatus == 1 ];then
|
||||
xset -dpms
|
||||
xset dpms
|
||||
fi
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
delay=$1
|
||||
|
||||
|
||||
# If argument empty, use 50 seconds as default.
|
||||
if [ -z "$1" ];then
|
||||
delay=50
|
||||
fi
|
||||
|
||||
|
||||
# If argument is not integer quit.
|
||||
if [[ $1 = *[^0-9]* ]]; then
|
||||
echo "The Argument \"$1\" is not valid, not an integer"
|
||||
echo "Please use the time in seconds you want the checks to repeat."
|
||||
echo "You want it to be ~10 seconds less than the time it takes your screensaver or DPMS to activate"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
while true
|
||||
do
|
||||
checkFullscreen
|
||||
sleep $delay
|
||||
done
|
||||
|
||||
|
||||
exit 0
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
#!/bin/bash
|
||||
# mymail_gmail_loop.sh
|
||||
|
||||
MAILDIR=/tmp/$USER-mail_loop
|
||||
|
||||
while [ 1 ]; do
|
||||
mkdir --mode=700 $MAILDIR 2>/dev/null
|
||||
val=$(timeout -k 30 25 ~/.config/awesome/mail_loop_mymail.py)
|
||||
if [[ "$val" == "" ]]; then val = "?"; fi
|
||||
echo $val > $MAILDIR/mymail_count
|
||||
sleep 30
|
||||
#val=$(timeout -k 30 25 ~/.config/awesome/mail_loop_gmail.py)
|
||||
#if [[ "$val" == "" ]]; then val = "?"; fi
|
||||
#echo $val > $MAILDIR/gmail_count
|
||||
#sleep 30
|
||||
done
|
|
@ -0,0 +1,19 @@
|
|||
#!/usr/bin/python
|
||||
|
||||
# Create ~/.local/share/keyrings/mail_loop_keys.py:
|
||||
# gmail_login = 'username'
|
||||
# gmail_password = 'password'
|
||||
|
||||
import imaplib,sys,os
|
||||
|
||||
try:
|
||||
sys.path.insert (0, os.getenv("HOME")+"/.local/share/keyrings")
|
||||
from mail_loop_keys import gmail_login,gmail_password
|
||||
M=imaplib.IMAP4_SSL("imap.gmail.com", 993)
|
||||
M.login(gmail_login,gmail_password)
|
||||
status, counts = M.status("Inbox","(MESSAGES UNSEEN)")
|
||||
unread = counts[0].split()[4][:-1]
|
||||
M.logout()
|
||||
print(int(unread))
|
||||
except:
|
||||
print("?")
|
|
@ -0,0 +1,37 @@
|
|||
#!/usr/bin/python
|
||||
|
||||
# Create ~/.local/share/keyrings/mail_loop_keys.py:
|
||||
# mymail_server = 'imap.example.com'
|
||||
# mymail_port = 143
|
||||
# mymail_login = 'username'
|
||||
# mymail_password = 'password'
|
||||
|
||||
import imaplib,ssl,sys,os
|
||||
|
||||
# http://stackoverflow.com/questions/9713055/certificate-authority-for-imaplib-and-poplib-python
|
||||
import imaplib,ssl
|
||||
def IMAP_starttls(self, keyfile=None, certfile=None,cert_reqs=ssl.CERT_NONE,ca_certs=None):
|
||||
if not 'STARTTLS' in self.capabilities:
|
||||
raise self.error("STARTTLS extension not supported by server.")
|
||||
(resp, reply) = self._simple_command("STARTTLS")
|
||||
self.sock = ssl.wrap_socket(self.sock, keyfile, certfile,cert_reqs=cert_reqs,ca_certs=ca_certs)
|
||||
self.file = self.sock.makefile('rb')
|
||||
|
||||
setattr(imaplib, 'starttls', IMAP_starttls)
|
||||
imaplib.Commands['STARTTLS']=('NONAUTH',)
|
||||
|
||||
try:
|
||||
sys.path.insert (0, os.getenv("HOME")+"/.local/share/keyrings")
|
||||
from mail_loop_keys import mymail_server,mymail_port,mymail_login,mymail_password
|
||||
|
||||
M=imaplib.IMAP4(mymail_server, mymail_port)
|
||||
M.starttls()
|
||||
M.login(mymail_login,mymail_password)
|
||||
|
||||
status, counts = M.status("Inbox","(MESSAGES UNSEEN)")
|
||||
|
||||
unread = counts[0].split()[4][:-1]
|
||||
M.logout()
|
||||
print(int(unread))
|
||||
except:
|
||||
print("?")
|
|
@ -0,0 +1,9 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ -d $1 ]; then
|
||||
f="$(find $1 -type f | shuf -n1)"
|
||||
ln -sf "$f" ~/.config/awesome/wallpaper.slink
|
||||
feh --bg-scale "$f"
|
||||
else
|
||||
feh --bg-scale $1
|
||||
fi
|
106
theme.lua
|
@ -1,106 +0,0 @@
|
|||
---------------------------
|
||||
-- Default awesome theme --
|
||||
---------------------------
|
||||
|
||||
theme = {}
|
||||
|
||||
theme.font = "sans 8"
|
||||
|
||||
theme.bg_normal = "#222222"
|
||||
theme.bg_focus = "#535d6c"
|
||||
theme.bg_urgent = "#ff0000"
|
||||
theme.bg_minimize = "#444444"
|
||||
|
||||
theme.fg_normal = "#aaaaaa"
|
||||
theme.fg_focus = "#ffffff"
|
||||
theme.fg_urgent = "#ffffff"
|
||||
theme.fg_minimize = "#ffffff"
|
||||
|
||||
theme.border_width = "1"
|
||||
theme.border_normal = "#000000"
|
||||
theme.border_focus = "#535d6c"
|
||||
theme.border_marked = "#91231c"
|
||||
|
||||
-- There are other variable sets
|
||||
-- overriding the default one when
|
||||
-- defined, the sets are:
|
||||
-- [taglist|tasklist]_[bg|fg]_[focus|urgent]
|
||||
-- titlebar_[bg|fg]_[normal|focus]
|
||||
-- tooltip_[font|opacity|fg_color|bg_color|border_width|border_color]
|
||||
-- mouse_finder_[color|timeout|animate_timeout|radius|factor]
|
||||
-- Example:
|
||||
--theme.taglist_bg_focus = "#ff0000"
|
||||
|
||||
-- Display the taglist squares
|
||||
theme.taglist_squares_sel = "/usr/share/awesome/themes/default/taglist/squarefw.png"
|
||||
theme.taglist_squares_unsel = "/usr/share/awesome/themes/default/taglist/squarew.png"
|
||||
|
||||
theme.tasklist_floating_icon = "/usr/share/awesome/themes/default/tasklist/floatingw.png"
|
||||
|
||||
-- Variables set for theming the menu:
|
||||
-- menu_[bg|fg]_[normal|focus]
|
||||
-- menu_[border_color|border_width]
|
||||
theme.menu_submenu_icon = "/usr/share/awesome/themes/default/submenu.png"
|
||||
theme.menu_height = "15"
|
||||
theme.menu_width = "100"
|
||||
|
||||
-- You can add as many variables as
|
||||
-- you wish and access them by using
|
||||
-- beautiful.variable in your rc.lua
|
||||
--theme.bg_widget = "#cc0000"
|
||||
|
||||
-- Define the image to load
|
||||
theme.titlebar_close_button_normal = "/usr/share/awesome/themes/default/titlebar/close_normal.png"
|
||||
theme.titlebar_close_button_focus = "/usr/share/awesome/themes/default/titlebar/close_focus.png"
|
||||
|
||||
theme.titlebar_ontop_button_normal_inactive = "/usr/share/awesome/themes/default/titlebar/ontop_normal_inactive.png"
|
||||
theme.titlebar_ontop_button_focus_inactive = "/usr/share/awesome/themes/default/titlebar/ontop_focus_inactive.png"
|
||||
theme.titlebar_ontop_button_normal_active = "/usr/share/awesome/themes/default/titlebar/ontop_normal_active.png"
|
||||
theme.titlebar_ontop_button_focus_active = "/usr/share/awesome/themes/default/titlebar/ontop_focus_active.png"
|
||||
|
||||
theme.titlebar_sticky_button_normal_inactive = "/usr/share/awesome/themes/default/titlebar/sticky_normal_inactive.png"
|
||||
theme.titlebar_sticky_button_focus_inactive = "/usr/share/awesome/themes/default/titlebar/sticky_focus_inactive.png"
|
||||
theme.titlebar_sticky_button_normal_active = "/usr/share/awesome/themes/default/titlebar/sticky_normal_active.png"
|
||||
theme.titlebar_sticky_button_focus_active = "/usr/share/awesome/themes/default/titlebar/sticky_focus_active.png"
|
||||
|
||||
theme.titlebar_floating_button_normal_inactive = "/usr/share/awesome/themes/default/titlebar/floating_normal_inactive.png"
|
||||
theme.titlebar_floating_button_focus_inactive = "/usr/share/awesome/themes/default/titlebar/floating_focus_inactive.png"
|
||||
theme.titlebar_floating_button_normal_active = "/usr/share/awesome/themes/default/titlebar/floating_normal_active.png"
|
||||
theme.titlebar_floating_button_focus_active = "/usr/share/awesome/themes/default/titlebar/floating_focus_active.png"
|
||||
|
||||
theme.titlebar_maximized_button_normal_inactive = "/usr/share/awesome/themes/default/titlebar/maximized_normal_inactive.png"
|
||||
theme.titlebar_maximized_button_focus_inactive = "/usr/share/awesome/themes/default/titlebar/maximized_focus_inactive.png"
|
||||
theme.titlebar_maximized_button_normal_active = "/usr/share/awesome/themes/default/titlebar/maximized_normal_active.png"
|
||||
theme.titlebar_maximized_button_focus_active = "/usr/share/awesome/themes/default/titlebar/maximized_focus_active.png"
|
||||
|
||||
-- You can use your own command to set your wallpaper
|
||||
require ("wallpaper")
|
||||
|
||||
-- You can use your own layout icons like this:
|
||||
theme.layout_fairh = "/usr/share/awesome/themes/default/layouts/fairhw.png"
|
||||
theme.layout_fairv = "/usr/share/awesome/themes/default/layouts/fairvw.png"
|
||||
theme.layout_floating = "/usr/share/awesome/themes/default/layouts/floatingw.png"
|
||||
theme.layout_magnifier = "/usr/share/awesome/themes/default/layouts/magnifierw.png"
|
||||
theme.layout_max = "/usr/share/awesome/themes/default/layouts/maxw.png"
|
||||
theme.layout_fullscreen = "/usr/share/awesome/themes/default/layouts/fullscreenw.png"
|
||||
theme.layout_tilebottom = "/usr/share/awesome/themes/default/layouts/tilebottomw.png"
|
||||
theme.layout_tileleft = "/usr/share/awesome/themes/default/layouts/tileleftw.png"
|
||||
theme.layout_tile = "/usr/share/awesome/themes/default/layouts/tilew.png"
|
||||
theme.layout_tiletop = "/usr/share/awesome/themes/default/layouts/tiletopw.png"
|
||||
theme.layout_spiral = "/usr/share/awesome/themes/default/layouts/spiralw.png"
|
||||
theme.layout_dwindle = "/usr/share/awesome/themes/default/layouts/dwindlew.png"
|
||||
|
||||
theme.awesome_icon = "/usr/share/awesome/icons/awesome16.png"
|
||||
|
||||
theme.widget_cpu = "~/.config/awesome/icons/16x16/cpu.png"
|
||||
theme.widget_mem = "~/.config/awesome/icons/16x16/mem.png"
|
||||
theme.widget_bat = "~/.config/awesome/icons/16x16/battery.png"
|
||||
theme.widget_vol = "~/.config/awesome/icons/16x16/vol-hi.png"
|
||||
theme.widget_wifi = "~/.config/awesome/icons/16x16/net-wifi.png"
|
||||
theme.widget_wifi_down_up = "~/.config/awesome/icons/16x16/down_up.png"
|
||||
theme.widget_wired = "~/.config/awesome/icons/16x16/net-wired.png"
|
||||
theme.widget_wired_down_up = "~/.config/awesome/icons/16x16/down_up.png"
|
||||
|
||||
return theme
|
||||
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
Background images:
|
||||
Mikael Eriksson <mikael_eriksson@miffe.org>
|
||||
Licensed under CC-BY-SA-3.0
|
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 967 B |
After Width: | Height: | Size: 997 B |
After Width: | Height: | Size: 194 B |
After Width: | Height: | Size: 194 B |
After Width: | Height: | Size: 201 B |
After Width: | Height: | Size: 201 B |
After Width: | Height: | Size: 395 B |
After Width: | Height: | Size: 388 B |
After Width: | Height: | Size: 202 B |
After Width: | Height: | Size: 202 B |
After Width: | Height: | Size: 209 B |
After Width: | Height: | Size: 209 B |
After Width: | Height: | Size: 321 B |
After Width: | Height: | Size: 321 B |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 174 B |
After Width: | Height: | Size: 195 B |
After Width: | Height: | Size: 216 B |
After Width: | Height: | Size: 172 B |
After Width: | Height: | Size: 170 B |
After Width: | Height: | Size: 195 B |
After Width: | Height: | Size: 215 B |
After Width: | Height: | Size: 168 B |
After Width: | Height: | Size: 440 B |
After Width: | Height: | Size: 198 B |
After Width: | Height: | Size: 187 B |
After Width: | Height: | Size: 278 B |
After Width: | Height: | Size: 193 B |
After Width: | Height: | Size: 345 B |
After Width: | Height: | Size: 334 B |
|
@ -0,0 +1,152 @@
|
|||
---------------------------
|
||||
-- Default SETKEH theme --
|
||||
---------------------------
|
||||
|
||||
local awful = require("awful")
|
||||
|
||||
--Configure home path so you dont have too
|
||||
home_path = os.getenv('HOME') .. '/'
|
||||
|
||||
theme = {}
|
||||
theme.wallpaper = awful.util.getdir("config") .. "/themes/default/bg.png"
|
||||
--theme.font = "sans 8"
|
||||
theme.font = "terminus 8"
|
||||
|
||||
theme.bg_normal = "#222222"
|
||||
theme.bg_focus = "#535d6c"
|
||||
theme.bg_urgent = "#ff0000"
|
||||
theme.bg_minimize = "#444444"
|
||||
theme.bg_tooltip = "#d6d6d6"
|
||||
theme.bg_em = "#5a5a5a"
|
||||
theme.bg_systray = theme.bg_normal
|
||||
|
||||
theme.fg_normal = "#aaaaaa"
|
||||
theme.fg_focus = "#ffffff"
|
||||
theme.fg_urgent = "#ffffff"
|
||||
theme.fg_minimize = "#ffffff"
|
||||
theme.fg_tooltip = "#1a1a1a"
|
||||
theme.fg_em = "#d6d6d6"
|
||||
|
||||
theme.border_width = "1"
|
||||
theme.border_normal = "#000000"
|
||||
theme.border_focus = "#535d6c"
|
||||
theme.border_marked = "#91231c"
|
||||
theme.fg_widget_value = "#aaaaaa"
|
||||
theme.fg_widget_clock = "#aaaaaa"
|
||||
theme.fg_widget_value_important = "#aaaaaa"
|
||||
theme.fg_widget = "#908884"
|
||||
theme.fg_center_widget = "#636363"
|
||||
theme.fg_end_widget = "#1a1a1a"
|
||||
theme.bg_widget = "#2a2a2a"
|
||||
theme.border_widget = "#3F3F3F"
|
||||
|
||||
-- There are other variable sets
|
||||
-- overriding the default one when
|
||||
-- defined, the sets are:
|
||||
-- [taglist|tasklist]_[bg|fg]_[focus|urgent]
|
||||
-- titlebar_[bg|fg]_[normal|focus]
|
||||
-- tooltip_[font|opacity|fg_color|bg_color|border_width|border_color]
|
||||
-- mouse_finder_[color|timeout|animate_timeout|radius|factor]
|
||||
-- Example:
|
||||
--theme.taglist_bg_focus = "#ff0000"
|
||||
|
||||
-- Display the taglist squares
|
||||
theme.taglist_squares_sel = home_path .. '.config/awesome/themes/default/taglist/squarefw.png'
|
||||
theme.taglist_squares_unsel = home_path .. '.config/awesome/themes/default/taglist/squarew.png'
|
||||
|
||||
theme.tasklist_floating_icon = home_path .. '.config/awesome/themes/default/tasklist/floatingw.png'
|
||||
|
||||
-- Variables set for theming the menu:
|
||||
-- menu_[bg|fg]_[normal|focus]
|
||||
-- menu_[border_color|border_width]
|
||||
theme.menu_submenu_icon = home_path .. '.config/awesome/themes/default/submenu.png'
|
||||
theme.menu_height = "15"
|
||||
theme.menu_width = "100"
|
||||
|
||||
-- You can add as many variables as
|
||||
-- you wish and access them by using
|
||||
-- beautiful.variable in your rc.lua
|
||||
--theme.bg_widget = "#cc0000"
|
||||
|
||||
-- Define the image to load
|
||||
theme.titlebar_close_button_normal = home_path .. '.config/awesome/themes/default/titlebar/close_normal.png'
|
||||
theme.titlebar_close_button_focus = home_path .. '.config/awesome/themes/default/titlebar/close_focus.png'
|
||||
|
||||
theme.titlebar_ontop_button_normal_inactive = home_path .. '.config/awesome/themes/default/titlebar/ontop_normal_inactive.png'
|
||||
theme.titlebar_ontop_button_focus_inactive = home_path .. '.config/awesome/themes/default/titlebar/ontop_focus_inactive.png'
|
||||
theme.titlebar_ontop_button_normal_active = home_path .. '/home/setkeh/.config/awesome/themes/default/titlebar/ontop_normal_active.png'
|
||||
theme.titlebar_ontop_button_focus_active = home_path .. '.config/awesome/themes/default/titlebar/ontop_focus_active.png'
|
||||
|
||||
theme.titlebar_sticky_button_normal_inactive = home_path .. '.config/awesome/themes/default/titlebar/sticky_normal_inactive.png'
|
||||
theme.titlebar_sticky_button_focus_inactive = home_path .. '.config/awesome/themes/default/titlebar/sticky_focus_inactive.png'
|
||||
theme.titlebar_sticky_button_normal_active = home_path .. '.config/awesome/themes/default/titlebar/sticky_normal_active.png'
|
||||
theme.titlebar_sticky_button_focus_active = home_path .. '.config/awesome/themes/default/titlebar/sticky_focus_active.png'
|
||||
|
||||
theme.titlebar_floating_button_normal_inactive = home_path .. '.config/awesome/themes/default/titlebar/floating_normal_inactive.png'
|
||||
theme.titlebar_floating_button_focus_inactive = home_path .. '.config/awesome/themes/default/titlebar/floating_focus_inactive.png'
|
||||
theme.titlebar_floating_button_normal_active = home_path .. '.config/awesome/themes/default/titlebar/floating_normal_active.png'
|
||||
theme.titlebar_floating_button_focus_active = home_path .. '.config/awesome/themes/default/titlebar/floating_focus_active.png'
|
||||
|
||||
theme.titlebar_maximized_button_normal_inactive = home_path .. '.config/awesome/themes/default/titlebar/maximized_normal_inactive.png'
|
||||
theme.titlebar_maximized_button_focus_inactive = home_path .. '.config/awesome/themes/default/titlebar/maximized_focus_inactive.png'
|
||||
theme.titlebar_maximized_button_normal_active = home_path .. '.config/awesome/themes/default/titlebar/maximized_normal_active.png'
|
||||
theme.titlebar_maximized_button_focus_active = home_path .. '.config/awesome/themes/default/titlebar/maximized_focus_active.png'
|
||||
|
||||
-- You can use your own layout icons like this:
|
||||
theme.layout_fairh = home_path .. '.config/awesome/themes/default/layouts/fairhw.png'
|
||||
theme.layout_fairv = home_path .. '.config/awesome/themes/default/layouts/fairvw.png'
|
||||
theme.layout_floating = home_path .. '.config/awesome/themes/default/layouts/floatingw.png'
|
||||
theme.layout_magnifier = home_path .. '.config/awesome/themes/default/layouts/magnifierw.png'
|
||||
theme.layout_max = home_path .. '.config/awesome/themes/default/layouts/maxw.png'
|
||||
theme.layout_fullscreen = home_path .. '.config/awesome/themes/default/layouts/fullscreenw.png'
|
||||
theme.layout_tilebottom = home_path .. '.config/awesome/themes/default/layouts/tilebottomw.png'
|
||||
theme.layout_tileleft = home_path .. '.config/awesome/themes/default/layouts/tileleftw.png'
|
||||
theme.layout_tile = home_path .. '.config/awesome/themes/default/layouts/tilew.png'
|
||||
theme.layout_tiletop = home_path .. '.config/awesome/themes/default/layouts/tiletopw.png'
|
||||
theme.layout_spiral = home_path .. '.config/awesome/themes/default/layouts/spiralw.png'
|
||||
theme.layout_dwindle = home_path .. '.config/awesome/themes/default/layouts/dwindlew.png'
|
||||
|
||||
theme.awesome_icon = home_path .. '.config/awesome/themes/default/icon/awesome16.png'
|
||||
theme.arch_icon = home_path .. '.config/awesome/themes/default/icon/Arch.png'
|
||||
|
||||
-- {{{ Widgets
|
||||
theme.widget_disk = awful.util.getdir("config") .. "/Icons/16x16/hdd_clear.png"
|
||||
theme.widget_cpu = awful.util.getdir("config") .. "/themes/default/widgets/cpu.png"
|
||||
theme.widget_ac = awful.util.getdir("config") .. "/themes/default/widgets/ac.png"
|
||||
theme.widget_acblink = awful.util.getdir("config") .. "/themes/default/widgets/acblink.png"
|
||||
theme.widget_blank = awful.util.getdir("config") .. "/themes/default/widgets/blank.png"
|
||||
theme.widget_batfull = awful.util.getdir("config") .. "/themes/default/widgets/batfull.png"
|
||||
theme.widget_batmed = awful.util.getdir("config") .. "/themes/default/widgets/batmed.png"
|
||||
theme.widget_batlow = awful.util.getdir("config") .. "/themes/default/widgets/batlow.png"
|
||||
theme.widget_batempty = awful.util.getdir("config") .. "/themes/default/widgets/batempty.png"
|
||||
theme.widget_vol = awful.util.getdir("config") .. "/themes/default/widgets/vol.png"
|
||||
theme.widget_mute = awful.util.getdir("config") .. "/themes/default/widgets/mute.png"
|
||||
theme.widget_pac = awful.util.getdir("config") .. "/themes/default/widgets/pac.png"
|
||||
theme.widget_pacnew = awful.util.getdir("config") .. "/themes/default/widgets/pacnew.png"
|
||||
theme.widget_mail = awful.util.getdir("config") .. "/themes/default/widgets/mail.png"
|
||||
theme.widget_mailnew = awful.util.getdir("config") .. "/themes/default/widgets/mailnew.png"
|
||||
theme.widget_optimus_off = awful.util.getdir("config") .. "/themes/default/widgets/optimus_off.png"
|
||||
theme.widget_optimus_on = awful.util.getdir("config") .. "/themes/default/widgets/optimus_on.png"
|
||||
theme.widget_optimus_overclocked = awful.util.getdir("config") .. "/themes/default/widgets/optimus_overclocked.png"
|
||||
theme.widget_temp = awful.util.getdir("config") .. "/themes/default/widgets/temp.png"
|
||||
theme.widget_tempwarn = awful.util.getdir("config") .. "/themes/default/widgets/tempwarm.png"
|
||||
theme.widget_temphot = awful.util.getdir("config") .. "/themes/default/widgets/temphot.png"
|
||||
theme.widget_wifi = awful.util.getdir("config") .. "/themes/default/widgets/wifi.png"
|
||||
theme.widget_nowifi = awful.util.getdir("config") .. "/themes/default/widgets/nowifi.png"
|
||||
theme.widget_wired = awful.util.getdir("config") .. "/Icons/16x16/net-wired.png"
|
||||
theme.widget_wired_down_up = awful.util.getdir("config") .. "/Icons/16x16/down_up.png"
|
||||
theme.widget_wifi_down_up = "~/.config/awesome/Icons/16x16/down_up.png"
|
||||
theme.widget_mpd = awful.util.getdir("config") .. "/themes/default/widgets/mpd.png"
|
||||
theme.widget_play = awful.util.getdir("config") .. "/themes/default/widgets/play.png"
|
||||
theme.widget_pause = awful.util.getdir("config") .. "/themes/default/widgets/pause.png"
|
||||
theme.widget_ram = awful.util.getdir("config") .. "/themes/default/widgets/ram.png"
|
||||
theme.widget_mem = awful.util.getdir("config") .. "/themes/default/tp/ram.png"
|
||||
theme.widget_swap = awful.util.getdir("config") .. "/themes/default/tp/swap.png"
|
||||
theme.widget_fs = awful.util.getdir("config") .. "/themes/default/tp/fs_01.png"
|
||||
theme.widget_fs2 = awful.util.getdir("config") .. "/themes/default/tp/fs_02.png"
|
||||
theme.widget_up = awful.util.getdir("config") .. "/themes/default/tp/up.png"
|
||||
theme.widget_down = awful.util.getdir("config") .. "/themes/default/tp/down.png"
|
||||
-- }}}
|
||||
|
||||
return theme
|
||||
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
After Width: | Height: | Size: 666 B |
After Width: | Height: | Size: 905 B |
After Width: | Height: | Size: 598 B |
After Width: | Height: | Size: 623 B |
After Width: | Height: | Size: 876 B |
After Width: | Height: | Size: 614 B |
After Width: | Height: | Size: 1013 B |
After Width: | Height: | Size: 829 B |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 816 B |
After Width: | Height: | Size: 774 B |
After Width: | Height: | Size: 758 B |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 756 B |
After Width: | Height: | Size: 833 B |
After Width: | Height: | Size: 663 B |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 677 B |
After Width: | Height: | Size: 986 B |
After Width: | Height: | Size: 820 B |
After Width: | Height: | Size: 740 B |
After Width: | Height: | Size: 866 B |
After Width: | Height: | Size: 932 B |
After Width: | Height: | Size: 917 B |
After Width: | Height: | Size: 932 B |
After Width: | Height: | Size: 305 B |
After Width: | Height: | Size: 601 B |
After Width: | Height: | Size: 727 B |
After Width: | Height: | Size: 897 B |
After Width: | Height: | Size: 938 B |
After Width: | Height: | Size: 783 B |
After Width: | Height: | Size: 803 B |
After Width: | Height: | Size: 669 B |
After Width: | Height: | Size: 722 B |
After Width: | Height: | Size: 956 B |
After Width: | Height: | Size: 2.4 KiB |
After Width: | Height: | Size: 1013 B |
After Width: | Height: | Size: 731 B |