add hx,alac update omz

This commit is contained in:
Quentin Godefroid 2022-08-25 17:11:32 +02:00 committed by Hactarus
parent ebcb3fd700
commit ee15772ea2
8 changed files with 3314 additions and 20 deletions

View file

@ -11,7 +11,7 @@ local naughty = require("naughty")
local menubar = require("menubar")
local hotkeys_popup = require("awful.hotkeys_popup").widget
local battery_widget = require("awesome.battery-widget/battery-widget")
-- local battery_widget = require("awesome.battery-widget/battery-widget")
-- Enable hotkeys help widget for VIM and other apps
-- when client with a matching name is opened:
require("awful.hotkeys_popup.keys")
@ -19,7 +19,8 @@ require("awful.hotkeys_popup.keys")
-- Load Debian menu entries
local debian = require("debian.menu")
local has_fdo, freedesktop = pcall(require, "freedesktop")
local battery_widget = require("battery-widget")
-- local battery_widget = require("battery-widget")
-- {{{ Error handling
-- Check if awesome encountered an error during startup and fell back to
-- another config (This code will only ever execute for the fallback config)
@ -51,7 +52,7 @@ beautiful.init(gears.filesystem.get_themes_dir() .. "default/theme.lua")
-- This is used later as the default terminal and editor to run.
-- terminal = "x-terminal-emulator"
terminal = "~/bins/alacritty/usr/bin/alacritty"
terminal = "/home/qgodefro/.cargo/bin/alacritty"
editor = os.getenv("EDITOR") or "editor"
editor_cmd = terminal .. " -e " .. editor
@ -62,11 +63,11 @@ editor_cmd = terminal .. " -e " .. editor
-- However, you can use another modifier like Mod1, but it may interact with others.
modkey = "Mod4"
lain.layout.termfair.center.nmaster = 4
lain.layout.termfair.center.ncol = 2
-- lain.layout.termfair.center.nmaster = 4
-- lain.layout.termfair.center.ncol = 2
-- Table of layouts to cover with awful.layout.inc, order matters.
awful.layout.set(lain.layout.termfair, tag)
-- awful.layout.set(lain.layout.termfair, tag)
awful.layout.layouts = {
awful.layout.suit.floating,
awful.layout.suit.tile,
@ -81,7 +82,7 @@ awful.layout.layouts = {
awful.layout.suit.max.fullscreen,
awful.layout.suit.magnifier,
awful.layout.suit.corner.nw,
lain.layout.termfair,
-- lain.layout.termfair,
-- awful.layout.suit.corner.ne,
-- awful.layout.suit.corner.sw,
-- awful.layout.suit.corner.se,
@ -144,8 +145,6 @@ mykeyboardlayout = awful.widget.keyboardlayout()
-- {{{ Wibar
-- Create a textclock widget
mytextclock = wibox.widget.textclock()
-- Create a wibox for each screen and add it
local taglist_buttons = gears.table.join(
awful.button({ }, 1, function(t) t:view_only() end),
@ -204,6 +203,10 @@ end
-- Re-set wallpaper when a screen's geometry changes (e.g. different resolution)
screen.connect_signal("property::geometry", set_wallpaper)
mytextclock = wibox.widget.textclock()
myutcclock = wibox.widget.textclock({format="%H:%m", timezone="UTC"})
mymtlclock = wibox.widget.textclock({format="%H:%M", timezone="Canada/Montreal"})
awful.screen.connect_for_each_screen(function(s)
-- Wallpaper
set_wallpaper(s)
@ -244,6 +247,8 @@ awful.screen.connect_for_each_screen(function(s)
layout = wibox.layout.fixed.horizontal,
mykeyboardlayout,
wibox.widget.systray(),
mymtlclock,
myutcclock,
mytextclock,
s.mylayoutbox,
},
@ -360,12 +365,13 @@ globalkeys = gears.table.join(
{description = "show the menubar", group = "launcher"})
)
clientkeys = gears.table.join(
awful.key({ modkey, }, "f",
function (c)
c.fullscreen = not c.fullscreen
c:raise()
end,
end ,
{description = "toggle fullscreen", group = "client"}),
awful.key({ modkey, "Shift" }, "c", function (c) c:kill() end,
{description = "close", group = "client"}),
@ -401,11 +407,12 @@ clientkeys = gears.table.join(
c.maximized_horizontal = not c.maximized_horizontal
c:raise()
end ,
{description = "(un)maximize horizontally", group = "client"})
{description = "(un)maximize horizontally", group = "client"}),
awful.key({ modkey, "Control" }, "l", function (c)
c.util.spawn{"/home/qgodefro/.local/bin/lock", false}
end)
)
awful.key({ modkey, "Control" }, "l", function () awful.util.spawn("/home/qgodefro/.local/bin/lock", false) end)
)
)
-- 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.