Update awesome config
|
@ -25,7 +25,6 @@ local has_fdo, freedesktop = pcall(require, "freedesktop")
|
|||
-- awesome-wm-widgets
|
||||
local battery_widget = require("awesome-wm-widgets.battery-widget.battery")
|
||||
local brightness_widget = require("awesome-wm-widgets.brightness-widget.brightness")
|
||||
local volume_widget = require('awesome-wm-widgets.volume-widget.volume')
|
||||
|
||||
-- {{{ Error handling
|
||||
-- Check if awesome encountered an error during startup and fell back to
|
||||
|
@ -54,13 +53,24 @@ end
|
|||
|
||||
-- {{{ Variable definitions
|
||||
-- Themes define colours, icons, font and wallpapers.
|
||||
beautiful.init(gears.filesystem.get_themes_dir() .. "default/theme.lua")
|
||||
theme = gears.filesystem.get_configuration_dir() .. "themes/default/theme.lua"
|
||||
|
||||
if not beautiful.init(theme) then
|
||||
naughty.notify({ preset = naughty.config.presets.critical,
|
||||
title = string.format("Couldn't load custom theme at %s! Falling back to the default one.", theme),
|
||||
text = awesome.startup_errors })
|
||||
|
||||
beautiful.init(gears.filesystem.get_themes_dir() .. "default/theme.lua") -- Fallback to default themes
|
||||
end
|
||||
|
||||
-- This is used later as the default terminal and editor to run.
|
||||
terminal = "alacritty"
|
||||
editor = os.getenv("EDITOR") or "nvim"
|
||||
editor_cmd = terminal .. " -e " .. editor
|
||||
|
||||
-- Screen locker command
|
||||
scrlocker = "cinnamon-screensaver-command -l"
|
||||
|
||||
-- Default modkey.
|
||||
-- Usually, Mod4 is the key with a logo between Control and Alt.
|
||||
-- If you do not like this or do not have such a key,
|
||||
|
@ -172,6 +182,12 @@ local tasklist_buttons = gears.table.join(
|
|||
awful.client.focus.byidx(-1)
|
||||
end))
|
||||
|
||||
local function run_once(cmd_arr)
|
||||
for _, cmd in ipairs(cmd_arr) do
|
||||
awful.spawn.with_shell(string.format("pgrep -u $USER -fx '%s' > /dev/null || (%s)", cmd, cmd))
|
||||
end
|
||||
end
|
||||
|
||||
local function set_wallpaper(s)
|
||||
awful.spawn.with_shell("nitrogen --restore")
|
||||
end
|
||||
|
@ -184,7 +200,7 @@ awful.screen.connect_for_each_screen(function(s)
|
|||
set_wallpaper(s)
|
||||
|
||||
-- Each screen has its own tag table.
|
||||
awful.tag({ "1", "2", "3", "4", "5", "6", "7", "8", "9" }, s, awful.layout.layouts[2])
|
||||
awful.tag({ "1", "2", "3", "4", "5", "6", "7", "8", "9", "0" }, s, awful.layout.layouts[2])
|
||||
|
||||
-- Create a promptbox for each screen
|
||||
s.mypromptbox = awful.widget.prompt()
|
||||
|
@ -225,7 +241,7 @@ awful.screen.connect_for_each_screen(function(s)
|
|||
s.mytasklist, -- Middle widget
|
||||
{ -- Right widgets
|
||||
layout = wibox.layout.fixed.horizontal,
|
||||
spacing = 5,
|
||||
spacing = 10,
|
||||
--mykeyboardlayout,
|
||||
wibox.widget.systray(),
|
||||
battery_widget(),
|
||||
|
@ -233,7 +249,6 @@ awful.screen.connect_for_each_screen(function(s)
|
|||
type = 'icon_and_text',
|
||||
program = 'brightnessctl',
|
||||
},
|
||||
volume_widget(),
|
||||
mytextclock,
|
||||
s.mylayoutbox,
|
||||
},
|
||||
|
@ -255,13 +270,13 @@ globalkeys = gears.table.join(
|
|||
awful.key({ }, "Print", function () awful.util.spawn("flameshot gui -p ~/shots", false) end),
|
||||
|
||||
-- Volume widget
|
||||
awful.key({ modkey, }, "F3", function() volume_widget:inc(5) end, {description = "increase volume", group = "custom"}),
|
||||
awful.key({ modkey, }, "F2", function() volume_widget:dec(5) end, {description = "decrease volume", group = "custom"}),
|
||||
awful.key({ modkey, }, "F1", function() volume_widget:toggle() end, {description = "toggle mute", group = "custom"}),
|
||||
awful.key({ }, "XF86AudioRaiseVolume", function() volume_widget:inc(5) end, {description = "increase volume", group = "custom"}),
|
||||
awful.key({ }, "XF86AudioLowerVolume", function() volume_widget:dec(5) end, {description = "decrease volume", group = "custom"}),
|
||||
awful.key({ }, "XF86AudioMute", function() volume_widget:toggle() end, {description = "toggle mute", group = "custom"}),
|
||||
|
||||
-- Brightness widget
|
||||
awful.key({ modkey, }, "F6", function () brightness_widget:inc() end, {description = "increase brightness", group = "custom"}),
|
||||
awful.key({ modkey, }, "F5", function () brightness_widget:dec() end, {description = "decrease brightness", group = "custom"}),
|
||||
awful.key({ }, "XF86MonBrightnessUp", function () brightness_widget:inc() end, {description = "increase brightness", group = "custom"}),
|
||||
awful.key({ }, "XF86MonBrightnessDown", function () brightness_widget:dec() end, {description = "decrease brightness", group = "custom"}),
|
||||
|
||||
-- cmus toggle paused
|
||||
awful.key({ modkey, "Shift" }, "p", function () awful.spawn("cmus-remote -u") end, {description = "play/pause cmus", group = "custom"}),
|
||||
|
@ -363,7 +378,11 @@ globalkeys = gears.table.join(
|
|||
{description = "lua execute prompt", group = "awesome"}),
|
||||
-- Menubar
|
||||
awful.key({ modkey }, "p", function() menubar.show() end,
|
||||
{description = "show the menubar", group = "launcher"})
|
||||
{description = "show the menubar", group = "launcher"}),
|
||||
|
||||
-- Lock Screen
|
||||
awful.key({ modkey, "Shift" }, "l", function() awful.spawn(scrlocker) end,
|
||||
{description = "lock the screen", group = "custom"})
|
||||
)
|
||||
|
||||
clientkeys = gears.table.join(
|
||||
|
@ -413,7 +432,7 @@ clientkeys = gears.table.join(
|
|||
-- Bind all key numbers to tags.
|
||||
-- Be careful: we use keycodes to make it work on any keyboard layout.
|
||||
-- This should map on the top row of your keyboard, usually 1 to 9.
|
||||
for i = 1, 9 do
|
||||
for i = 1, 10 do
|
||||
globalkeys = gears.table.join(globalkeys,
|
||||
-- View tag only.
|
||||
awful.key({ modkey }, "#" .. i + 9,
|
||||
|
@ -628,9 +647,17 @@ battimer = timer({timeout = 120})
|
|||
battimer:connect_signal("timeout", bat_notification)
|
||||
battimer:start()
|
||||
|
||||
-- Debian packages for these apps:
|
||||
-- - flameshot
|
||||
-- - compton
|
||||
-- - volumeicon-alsa
|
||||
-- - unclutter
|
||||
|
||||
-- Autostart applications
|
||||
awful.spawn.with_shell("compton")
|
||||
awful.spawn.with_shell("flameshot")
|
||||
awful.spawn.with_shell("nm-applet")
|
||||
awful.spawn.with_shell("blueman-applet")
|
||||
run_once({"compton",
|
||||
"flameshot",
|
||||
"nm-applet",
|
||||
"volumeicon",
|
||||
"unclutter"})
|
||||
|
||||
awful.spawn("customkeys")
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
Background images:
|
||||
Mikael Eriksson <mikael_eriksson@miffe.org>
|
||||
Licensed under CC-BY-SA-3.0
|
After Width: | Height: | Size: 218 KiB |
After Width: | Height: | Size: 262 KiB |
After Width: | Height: | Size: 217 B |
After Width: | Height: | Size: 216 B |
After Width: | Height: | Size: 212 B |
After Width: | Height: | Size: 212 B |
After Width: | Height: | Size: 213 B |
After Width: | Height: | Size: 213 B |
After Width: | Height: | Size: 212 B |
After Width: | Height: | Size: 212 B |
After Width: | Height: | Size: 260 B |
After Width: | Height: | Size: 260 B |
After Width: | Height: | Size: 186 B |
After Width: | Height: | Size: 186 B |
After Width: | Height: | Size: 186 B |
After Width: | Height: | Size: 186 B |
After Width: | Height: | Size: 218 B |
After Width: | Height: | Size: 218 B |
After Width: | Height: | Size: 754 B |
After Width: | Height: | Size: 751 B |
After Width: | Height: | Size: 280 B |
After Width: | Height: | Size: 280 B |
After Width: | Height: | Size: 485 B |
After Width: | Height: | Size: 482 B |
After Width: | Height: | Size: 262 B |
After Width: | Height: | Size: 262 B |
After Width: | Height: | Size: 203 B |
After Width: | Height: | Size: 202 B |
After Width: | Height: | Size: 202 B |
After Width: | Height: | Size: 204 B |
After Width: | Height: | Size: 204 B |
After Width: | Height: | Size: 200 B |
After Width: | Height: | Size: 200 B |
After Width: | Height: | Size: 203 B |
After Width: | Height: | Size: 367 B |
After Width: | Height: | Size: 78 B |
After Width: | Height: | Size: 84 B |
|
@ -0,0 +1,133 @@
|
|||
---------------------------
|
||||
-- Default awesome theme --
|
||||
---------------------------
|
||||
|
||||
local theme_assets = require("beautiful.theme_assets")
|
||||
local xresources = require("beautiful.xresources")
|
||||
local dpi = xresources.apply_dpi
|
||||
|
||||
local gfs = require("gears.filesystem")
|
||||
local themes_path = gfs.get_themes_dir()
|
||||
|
||||
local theme = {}
|
||||
|
||||
theme.font = "sans 8"
|
||||
|
||||
theme.bg_normal = "#000000"
|
||||
theme.bg_focus = "#333333"
|
||||
theme.bg_urgent = "#ff0000"
|
||||
theme.bg_minimize = "#111111"
|
||||
theme.bg_systray = theme.bg_normal
|
||||
|
||||
theme.fg_normal = "#aaaaaa"
|
||||
theme.fg_focus = "#ffffff"
|
||||
theme.fg_urgent = "#ffffff"
|
||||
theme.fg_minimize = "#ffffff"
|
||||
|
||||
theme.useless_gap = dpi(2)
|
||||
theme.border_width = dpi(0.5)
|
||||
theme.border_normal = "#000000"
|
||||
theme.border_focus = "#ffffff"
|
||||
theme.border_marked = "#91231c"
|
||||
|
||||
theme.systray_icon_spacing = 10
|
||||
|
||||
-- There are other variable sets
|
||||
-- overriding the default one when
|
||||
-- defined, the sets are:
|
||||
-- taglist_[bg|fg]_[focus|urgent|occupied|empty|volatile]
|
||||
-- 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]
|
||||
-- prompt_[fg|bg|fg_cursor|bg_cursor|font]
|
||||
-- hotkeys_[bg|fg|border_width|border_color|shape|opacity|modifiers_fg|label_bg|label_fg|group_margin|font|description_font]
|
||||
-- Example:
|
||||
--theme.taglist_bg_focus = "#ff0000"
|
||||
|
||||
-- Generate taglist squares:
|
||||
local taglist_square_size = dpi(4)
|
||||
theme.taglist_squares_sel = theme_assets.taglist_squares_sel(
|
||||
taglist_square_size, theme.fg_normal
|
||||
)
|
||||
theme.taglist_squares_unsel = theme_assets.taglist_squares_unsel(
|
||||
taglist_square_size, theme.fg_normal
|
||||
)
|
||||
|
||||
-- Variables set for theming notifications:
|
||||
-- notification_font
|
||||
-- notification_[bg|fg]
|
||||
-- notification_[width|height|margin]
|
||||
-- notification_[border_color|border_width|shape|opacity]
|
||||
|
||||
-- Variables set for theming the menu:
|
||||
-- menu_[bg|fg]_[normal|focus]
|
||||
-- menu_[border_color|border_width]
|
||||
theme.menu_submenu_icon = themes_path.."default/submenu.png"
|
||||
theme.menu_height = dpi(15)
|
||||
theme.menu_width = dpi(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 = themes_path.."default/titlebar/close_normal.png"
|
||||
theme.titlebar_close_button_focus = themes_path.."default/titlebar/close_focus.png"
|
||||
|
||||
theme.titlebar_minimize_button_normal = themes_path.."default/titlebar/minimize_normal.png"
|
||||
theme.titlebar_minimize_button_focus = themes_path.."default/titlebar/minimize_focus.png"
|
||||
|
||||
theme.titlebar_ontop_button_normal_inactive = themes_path.."default/titlebar/ontop_normal_inactive.png"
|
||||
theme.titlebar_ontop_button_focus_inactive = themes_path.."default/titlebar/ontop_focus_inactive.png"
|
||||
theme.titlebar_ontop_button_normal_active = themes_path.."default/titlebar/ontop_normal_active.png"
|
||||
theme.titlebar_ontop_button_focus_active = themes_path.."default/titlebar/ontop_focus_active.png"
|
||||
|
||||
theme.titlebar_sticky_button_normal_inactive = themes_path.."default/titlebar/sticky_normal_inactive.png"
|
||||
theme.titlebar_sticky_button_focus_inactive = themes_path.."default/titlebar/sticky_focus_inactive.png"
|
||||
theme.titlebar_sticky_button_normal_active = themes_path.."default/titlebar/sticky_normal_active.png"
|
||||
theme.titlebar_sticky_button_focus_active = themes_path.."default/titlebar/sticky_focus_active.png"
|
||||
|
||||
theme.titlebar_floating_button_normal_inactive = themes_path.."default/titlebar/floating_normal_inactive.png"
|
||||
theme.titlebar_floating_button_focus_inactive = themes_path.."default/titlebar/floating_focus_inactive.png"
|
||||
theme.titlebar_floating_button_normal_active = themes_path.."default/titlebar/floating_normal_active.png"
|
||||
theme.titlebar_floating_button_focus_active = themes_path.."default/titlebar/floating_focus_active.png"
|
||||
|
||||
theme.titlebar_maximized_button_normal_inactive = themes_path.."default/titlebar/maximized_normal_inactive.png"
|
||||
theme.titlebar_maximized_button_focus_inactive = themes_path.."default/titlebar/maximized_focus_inactive.png"
|
||||
theme.titlebar_maximized_button_normal_active = themes_path.."default/titlebar/maximized_normal_active.png"
|
||||
theme.titlebar_maximized_button_focus_active = themes_path.."default/titlebar/maximized_focus_active.png"
|
||||
|
||||
theme.wallpaper = themes_path.."default/background.png"
|
||||
|
||||
-- You can use your own layout icons like this:
|
||||
theme.layout_fairh = themes_path.."default/layouts/fairhw.png"
|
||||
theme.layout_fairv = themes_path.."default/layouts/fairvw.png"
|
||||
theme.layout_floating = themes_path.."default/layouts/floatingw.png"
|
||||
theme.layout_magnifier = themes_path.."default/layouts/magnifierw.png"
|
||||
theme.layout_max = themes_path.."default/layouts/maxw.png"
|
||||
theme.layout_fullscreen = themes_path.."default/layouts/fullscreenw.png"
|
||||
theme.layout_tilebottom = themes_path.."default/layouts/tilebottomw.png"
|
||||
theme.layout_tileleft = themes_path.."default/layouts/tileleftw.png"
|
||||
theme.layout_tile = themes_path.."default/layouts/tilew.png"
|
||||
theme.layout_tiletop = themes_path.."default/layouts/tiletopw.png"
|
||||
theme.layout_spiral = themes_path.."default/layouts/spiralw.png"
|
||||
theme.layout_dwindle = themes_path.."default/layouts/dwindlew.png"
|
||||
theme.layout_cornernw = themes_path.."default/layouts/cornernww.png"
|
||||
theme.layout_cornerne = themes_path.."default/layouts/cornernew.png"
|
||||
theme.layout_cornersw = themes_path.."default/layouts/cornersww.png"
|
||||
theme.layout_cornerse = themes_path.."default/layouts/cornersew.png"
|
||||
|
||||
-- Generate Awesome icon:
|
||||
theme.awesome_icon = theme_assets.awesome_icon(
|
||||
theme.menu_height, theme.bg_focus, theme.fg_focus
|
||||
)
|
||||
|
||||
-- Define the icon theme for application icons. If not set then the icons
|
||||
-- from /usr/share/icons and /usr/share/icons/hicolor will be used.
|
||||
theme.icon_theme = nil
|
||||
|
||||
return theme
|
||||
|
||||
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
After Width: | Height: | Size: 849 B |
After Width: | Height: | Size: 849 B |
After Width: | Height: | Size: 306 B |
After Width: | Height: | Size: 176 B |
After Width: | Height: | Size: 306 B |
After Width: | Height: | Size: 176 B |
After Width: | Height: | Size: 378 B |
After Width: | Height: | Size: 341 B |
After Width: | Height: | Size: 378 B |
After Width: | Height: | Size: 341 B |
After Width: | Height: | Size: 182 B |
After Width: | Height: | Size: 173 B |
After Width: | Height: | Size: 382 B |
After Width: | Height: | Size: 511 B |
After Width: | Height: | Size: 382 B |
After Width: | Height: | Size: 511 B |
After Width: | Height: | Size: 555 B |
After Width: | Height: | Size: 662 B |
After Width: | Height: | Size: 555 B |
After Width: | Height: | Size: 662 B |
|
@ -1 +1 @@
|
|||
Xft.dpi: 192
|
||||
Xft.dpi: 156
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
gtk-icon-theme-name = "Material-Black-Cherry"
|
||||
gtk-theme-name = "Material-Black-Cherry"
|
||||
gtk-icon-theme-name = "Material-Black-Lime-Numix"
|
||||
gtk-theme-name = "Material-Black-Lime"
|
||||
gtk-application-prefer-dark-theme = "true"
|
||||
|
|