Making some minor improvements to awesome
This commit is contained in:
parent
a8b74e1f7b
commit
01953ff9ae
|
@ -68,10 +68,10 @@
|
||||||
(local alt "Mod1")
|
(local alt "Mod1")
|
||||||
|
|
||||||
;; Set hostname so that we can utilize specific features on different machines
|
;; Set hostname so that we can utilize specific features on different machines
|
||||||
(local hostname-handle (io.popen "hostname"))
|
(global hostname-handle (io.popen "hostname"))
|
||||||
(local hostname (hostname-handle:read "a"))
|
(global hostname (hostname-handle:read "a"))
|
||||||
(hostname-handle:close)
|
(hostname-handle:close)
|
||||||
(local laptop (= hostname "chris-linuxlaptop\n"))
|
(global laptop (= hostname "chris-linuxlaptop\n"))
|
||||||
|
|
||||||
;; Table of layouts to cover with awful.layout.inc, order matters.
|
;; Table of layouts to cover with awful.layout.inc, order matters.
|
||||||
(set awful.layout.layouts [
|
(set awful.layout.layouts [
|
||||||
|
@ -472,6 +472,8 @@
|
||||||
(client.connect_signal "focus" (fn [c] (set c.border_color beautiful.border_focus)))
|
(client.connect_signal "focus" (fn [c] (set c.border_color beautiful.border_focus)))
|
||||||
(client.connect_signal "unfocus" (fn [c] (set c.border_color beautiful.border_normal)))
|
(client.connect_signal "unfocus" (fn [c] (set c.border_color beautiful.border_normal)))
|
||||||
|
|
||||||
|
(awful.screen.focus 1)
|
||||||
|
|
||||||
(awful.spawn "picom --experimental-backend")
|
(awful.spawn "picom --experimental-backend")
|
||||||
(awful.spawn "xset r rate 220 90")
|
(awful.spawn "xset r rate 220 90")
|
||||||
(awful.spawn "/usr/lib/polkit-kde-authentication-agent-1")
|
(awful.spawn "/usr/lib/polkit-kde-authentication-agent-1")
|
||||||
|
|
|
@ -4,19 +4,4 @@ local gears = require("gears")
|
||||||
fennel.path = fennel.path .. ";.config/awesome/?.fnl"
|
fennel.path = fennel.path .. ";.config/awesome/?.fnl"
|
||||||
table.insert(package.loaders or package.searchers, fennel.searcher)
|
table.insert(package.loaders or package.searchers, fennel.searcher)
|
||||||
|
|
||||||
-- pcall(require, "luarocks.loader")
|
|
||||||
-- -- local fennel = require("./fennel")
|
|
||||||
-- fennel = require("./fennel")
|
|
||||||
-- local gears = require("gears")
|
|
||||||
-- fennel.path = fennel.path .. ";.config/awesome/?.fnl"
|
|
||||||
-- table.insert(package.loaders or package.searchers, fennel.make_searcher({correlate=true}))
|
|
||||||
|
|
||||||
-- local fennel = require("./fennel")
|
|
||||||
-- fennel.path = fennel.path .. ";.config/awesome/?.fnl"
|
|
||||||
-- fennel.makeSearcher({
|
|
||||||
-- correlate = true,
|
|
||||||
-- useMetadata = true
|
|
||||||
-- })
|
|
||||||
-- table.insert(package.loaders or package.searchers, fennel.searcher)
|
|
||||||
|
|
||||||
require("init") -- load ~/.config/awesome/init.fnl
|
require("init") -- load ~/.config/awesome/init.fnl
|
||||||
|
|
|
@ -10,13 +10,14 @@
|
||||||
{
|
{
|
||||||
:rule { }
|
:rule { }
|
||||||
:propertites {
|
:propertites {
|
||||||
:border-width beautiful.border_width
|
:border_width beautiful.border_width
|
||||||
:border_color beautiful.border_normal
|
:border_color beautiful.border_normal
|
||||||
:focus awful.client.focus.filter
|
:focus awful.client.focus.filter
|
||||||
:raise true
|
:raise true
|
||||||
;; :keys keys
|
;; :keys keys
|
||||||
;; :buttons clientbuttons
|
;; :buttons clientbuttons
|
||||||
:screen awful.screen.preferred
|
;; :screen awful.screen.preferred
|
||||||
|
:size_hints_honor false
|
||||||
:placement (+ awful.placement.no_overlap awful.placement.no_offscreen)
|
:placement (+ awful.placement.no_overlap awful.placement.no_offscreen)
|
||||||
;; :shape gears.shape.rounded_rect
|
;; :shape gears.shape.rounded_rect
|
||||||
}
|
}
|
||||||
|
|
|
@ -107,14 +107,22 @@ theme.menu_width = dpi(100)
|
||||||
|
|
||||||
-- mstab
|
-- mstab
|
||||||
theme.mstab_bar_ontop = true -- whether you want to allow the bar to be ontop of clients
|
theme.mstab_bar_ontop = true -- whether you want to allow the bar to be ontop of clients
|
||||||
theme.mstab_dont_resize_slaves = false -- whether the tabbed stack windows should be smaller than the
|
theme.mstab_dont_resize_slaves = true -- whether the tabbed stack windows should be smaller than the
|
||||||
-- currently focused stack window (set it to true if you use
|
-- currently focused stack window (set it to true if you use
|
||||||
-- transparent terminals. False if you use shadows on solid ones
|
-- transparent terminals. False if you use shadows on solid ones
|
||||||
theme.mstab_bar_padding = "default" -- how much padding there should be between clients and your tabbar
|
theme.mstab_bar_padding = "default" -- how much padding there should be between clients and your tabbar
|
||||||
-- by default it will adjust based on your useless gaps.
|
-- by default it will adjust based on your useless gaps.
|
||||||
-- If you want a custom value. Set it to the number of pixels (int)
|
-- If you want a custom value. Set it to the number of pixels (int)
|
||||||
theme.mstab_border_radius = 10 -- border radius of the tabbar
|
|
||||||
theme.mstab_bar_height = 50 -- height of the tabbar
|
if(laptop)
|
||||||
|
then
|
||||||
|
theme.mstab_bar_height = 100 -- height of the tabbar
|
||||||
|
theme.mstab_border_radius = 20 -- border radius of the tabbar
|
||||||
|
else
|
||||||
|
theme.mstab_bar_height = 50
|
||||||
|
theme.mstab_border_radius = 10 -- border radius of the tabbar
|
||||||
|
end
|
||||||
|
|
||||||
theme.mstab_tabbar_position = "top" -- position of the tabbar (mstab currently does not support left,right)
|
theme.mstab_tabbar_position = "top" -- position of the tabbar (mstab currently does not support left,right)
|
||||||
theme.mstab_tabbar_style = "default" -- style of the tabbar ("default", "boxes" or "modern")
|
theme.mstab_tabbar_style = "default" -- style of the tabbar ("default", "boxes" or "modern")
|
||||||
-- defaults to the tabbar_style so only change if you want a
|
-- defaults to the tabbar_style so only change if you want a
|
||||||
|
|
|
@ -94,6 +94,7 @@ shadow-exclude = [
|
||||||
# "class_g = 'Alacritty'",
|
# "class_g = 'Alacritty'",
|
||||||
"class_g ?= 'Notify-osd'",
|
"class_g ?= 'Notify-osd'",
|
||||||
"class_g = 'Cairo-clock'",
|
"class_g = 'Cairo-clock'",
|
||||||
|
# "class_g = 'awesome'",
|
||||||
# "class_g = 'qutebrowser'",
|
# "class_g = 'qutebrowser'",
|
||||||
"class_g = 'slop'",
|
"class_g = 'slop'",
|
||||||
# "class_g = 'qutebrowser'",
|
# "class_g = 'qutebrowser'",
|
||||||
|
@ -279,6 +280,7 @@ blur-background-exclude = [
|
||||||
# prevents picom from blurring the background
|
# prevents picom from blurring the background
|
||||||
# when taking selection screenshot with `main`
|
# when taking selection screenshot with `main`
|
||||||
# https://github.com/naelstrof/maim/issues/130
|
# https://github.com/naelstrof/maim/issues/130
|
||||||
|
# "class_g = 'awesome'",
|
||||||
"class_g = 'slop'",
|
"class_g = 'slop'",
|
||||||
"_GTK_FRAME_EXTENTS@:c",
|
"_GTK_FRAME_EXTENTS@:c",
|
||||||
"class_g = 'soffice'",
|
"class_g = 'soffice'",
|
||||||
|
|
|
@ -814,7 +814,7 @@ c.colors.webpage.darkmode.policy.page = "smart"
|
||||||
|
|
||||||
## Force `prefers-color-scheme: dark` colors for websites.
|
## Force `prefers-color-scheme: dark` colors for websites.
|
||||||
## Type: Bool
|
## Type: Bool
|
||||||
c.colors.webpage.prefers_color_scheme_dark = True
|
c.colors.webpage.prefered_color_scheme = dark
|
||||||
|
|
||||||
## Number of commands to save in the command history. 0: no history / -1:
|
## Number of commands to save in the command history. 0: no history / -1:
|
||||||
## unlimited
|
## unlimited
|
||||||
|
|
|
@ -17,6 +17,7 @@ configuration {
|
||||||
fullscreen: false;
|
fullscreen: false;
|
||||||
hide-scrollbar: true;
|
hide-scrollbar: true;
|
||||||
sidebar-mode: true;
|
sidebar-mode: true;
|
||||||
|
columns: 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
* {
|
* {
|
||||||
|
@ -110,7 +111,7 @@ sidebar {
|
||||||
|
|
||||||
listview {
|
listview {
|
||||||
background-color: @transparent;
|
background-color: @transparent;
|
||||||
columns: 1;
|
columns: 2;
|
||||||
spacing: 4px;
|
spacing: 4px;
|
||||||
cycle: false;
|
cycle: false;
|
||||||
dynamic: true;
|
dynamic: true;
|
||||||
|
|
|
@ -8,4 +8,4 @@ else
|
||||||
#echo "this is not hidpi"
|
#echo "this is not hidpi"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rofi -no-lazy-grab -show window -modi window -theme launchers-git/"$style".rasi
|
rofi -no-lazy-grab -show window -modi window -window-command "wmctrl -i -a {window}" -theme launchers-git/"$style".rasi
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
# not work in dash and others), so we cannot store the result of listfiles to a
|
# not work in dash and others), so we cannot store the result of listfiles to a
|
||||||
# variable.
|
# variable.
|
||||||
|
|
||||||
if [ $(hostname) = 'chris-linuxlaptop' ]; then
|
if [ $(hostname) = 'syl' ]; then
|
||||||
echo laptop
|
echo laptop
|
||||||
size=2300x1500
|
size=2300x1500
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue