moving to awesome literate
This commit is contained in:
parent
4fae307cdf
commit
24e347ed36
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
[submodule "nice"]
|
||||||
|
path = awesome/nice
|
||||||
|
url = https://github.com/mut-ex/awesome-wm-nice.git
|
1
awesome/nice
Submodule
1
awesome/nice
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 04bab00b464039702756d5dd812aea754a907a95
|
187
awesome/rc.lua
187
awesome/rc.lua
|
@ -1,5 +1,3 @@
|
||||||
-- If LuaRocks is installed, make sure that packages installed through it are
|
|
||||||
-- found (e.g. lgi). If LuaRocks is not installed, do nothing.
|
|
||||||
pcall(require, "luarocks.loader")
|
pcall(require, "luarocks.loader")
|
||||||
|
|
||||||
-- Standard awesome library
|
-- Standard awesome library
|
||||||
|
@ -13,49 +11,29 @@ local wibox = require("wibox")
|
||||||
-- Theme handling library
|
-- Theme handling library
|
||||||
local beautiful = require("beautiful")
|
local beautiful = require("beautiful")
|
||||||
-- Notification library
|
-- Notification library
|
||||||
local naughty = require("naughty")
|
-- local naughty = require("naughty")
|
||||||
local menubar = require("menubar")
|
local menubar = require("menubar")
|
||||||
local hotkeys_popup = require("awful.hotkeys_popup")
|
local hotkeys_popup = require("awful.hotkeys_popup")
|
||||||
local ruled = require("ruled")
|
local ruled = require("ruled")
|
||||||
|
local nice = require("nice")
|
||||||
-- Enable hotkeys help widget for VIM and other apps
|
-- Enable hotkeys help widget for VIM and other apps
|
||||||
-- when client with a matching name is opened:
|
-- when client with a matching name is opened:
|
||||||
require("awful.hotkeys_popup.keys")
|
require("awful.hotkeys_popup.keys")
|
||||||
|
|
||||||
|
|
||||||
-- require('layout')
|
|
||||||
|
|
||||||
-- Widgets to add
|
|
||||||
-- local batteryarc_widget = require("awesome-wm-widget.batteryarc-widget.batteryarc")
|
|
||||||
|
|
||||||
-- >> Daemons
|
|
||||||
-- Most widgets that display system/external info depend on evil.
|
|
||||||
-- Make sure to initialize it last in order to allow all widgets to connect to
|
|
||||||
-- their needed evil signals.
|
|
||||||
-- require("evil")
|
|
||||||
-- ===================================================================
|
|
||||||
-- ===================================================================
|
|
||||||
|
|
||||||
|
|
||||||
-- ========================================
|
|
||||||
-- Modules
|
|
||||||
-- Load all the modules
|
|
||||||
-- ========================================
|
|
||||||
|
|
||||||
require('module.notifications')
|
require('module.notifications')
|
||||||
-- require('module.auto-start')
|
|
||||||
require('module.decorate-client')
|
require('module.decorate-client')
|
||||||
require('module.backdrop')
|
require('module.backdrop')
|
||||||
|
require('module.volume-osd')
|
||||||
|
require('module.brightness-osd')
|
||||||
|
-- require('module.auto-start')
|
||||||
-- require('module.exit-screen')
|
-- require('module.exit-screen')
|
||||||
-- require('module.quake-terminal')
|
-- require('module.quake-terminal')
|
||||||
-- require('module.titlebar')
|
-- require('module.titlebar')
|
||||||
-- require('module.menu')
|
-- require('module.menu')
|
||||||
require('module.volume-osd')
|
|
||||||
require('module.brightness-osd')
|
|
||||||
-- require('module.dynamic-wallpaper')
|
-- require('module.dynamic-wallpaper')
|
||||||
-- require('module.battery-notifier')
|
-- require('module.battery-notifier')
|
||||||
-- require('module.lockscreen')
|
-- require('module.lockscreen')
|
||||||
|
|
||||||
|
|
||||||
-- -- {{{ Error handling
|
-- -- {{{ Error handling
|
||||||
-- -- Check if awesome encountered an error during startup and fell back to
|
-- -- Check if awesome encountered an error during startup and fell back to
|
||||||
-- -- another config (This code will only ever execute for the fallback config)
|
-- -- another config (This code will only ever execute for the fallback config)
|
||||||
|
@ -87,7 +65,7 @@ beautiful.init("/home/chris/.config/awesome/theme.lua")
|
||||||
|
|
||||||
-- This is used later as the default terminal and editor to run.
|
-- This is used later as the default terminal and editor to run.
|
||||||
terminal = "alacritty"
|
terminal = "alacritty"
|
||||||
editor = os.getenv("EDITOR") or "emacsclient -a emacs"
|
editor = "emacsclient -a emacs"
|
||||||
editor_cmd = terminal .. " -e " .. editor
|
editor_cmd = terminal .. " -e " .. editor
|
||||||
|
|
||||||
-- Default modkey.
|
-- Default modkey.
|
||||||
|
@ -420,9 +398,6 @@ awful.screen.connect_for_each_screen(function(s)
|
||||||
end)
|
end)
|
||||||
-- }}}
|
-- }}}
|
||||||
|
|
||||||
testwibox = wibox {x = 20, y = 10, width = 10, height = 10, ontop = true, bg = "#000000"}
|
|
||||||
|
|
||||||
testwibox:to_widget()
|
|
||||||
-- {{{ Mouse bindings
|
-- {{{ Mouse bindings
|
||||||
root.buttons(gears.table.join(
|
root.buttons(gears.table.join(
|
||||||
awful.button({ }, 3, function () mymainmenu:toggle() end),
|
awful.button({ }, 3, function () mymainmenu:toggle() end),
|
||||||
|
@ -504,7 +479,11 @@ globalkeys = gears.table.join(
|
||||||
{description = "open firefox", group = "apps"}),
|
{description = "open firefox", group = "apps"}),
|
||||||
awful.key({ modkey, }, "e", function () awful.spawn("emacsclient -c") end,
|
awful.key({ modkey, }, "e", function () awful.spawn("emacsclient -c") end,
|
||||||
{description = "open emacs frame connected to server", group = "apps"}),
|
{description = "open emacs frame connected to server", group = "apps"}),
|
||||||
|
-- dolphin
|
||||||
|
awful.key({ modkey, }, "d", function () awful.spawn("dolphin") end,
|
||||||
|
{description = "open dolphin file manager", group = "apps"}),
|
||||||
|
|
||||||
|
-- layout
|
||||||
awful.key({ modkey, }, "l", function () awful.tag.incmwfact( 0.05) end,
|
awful.key({ modkey, }, "l", function () awful.tag.incmwfact( 0.05) end,
|
||||||
{description = "increase master width factor", group = "layout"}),
|
{description = "increase master width factor", group = "layout"}),
|
||||||
awful.key({ modkey, }, "h", function () awful.tag.incmwfact(-0.05) end,
|
awful.key({ modkey, }, "h", function () awful.tag.incmwfact(-0.05) end,
|
||||||
|
@ -601,7 +580,7 @@ clientkeys = gears.table.join(
|
||||||
c:raise()
|
c:raise()
|
||||||
end,
|
end,
|
||||||
{description = "toggle fullscreen", group = "client"}),
|
{description = "toggle fullscreen", group = "client"}),
|
||||||
awful.key({ modkey, }, "q", function (c) c:kill() end,
|
awful.key({ modkey, }, "c", function (c) c:kill() end,
|
||||||
{description = "close", group = "client"}),
|
{description = "close", group = "client"}),
|
||||||
awful.key({ modkey, "Control" }, "space", awful.client.floating.toggle ,
|
awful.key({ modkey, "Control" }, "space", awful.client.floating.toggle ,
|
||||||
{description = "toggle floating", group = "client"}),
|
{description = "toggle floating", group = "client"}),
|
||||||
|
@ -708,10 +687,12 @@ root.keys(globalkeys)
|
||||||
|
|
||||||
-- {{{ Rules
|
-- {{{ Rules
|
||||||
-- Rules to apply to new clients (through the "manage" signal).
|
-- Rules to apply to new clients (through the "manage" signal).
|
||||||
ruled.client.append_rule {
|
client.connect_signal("request::rules", function(c)
|
||||||
|
ruled.client.append_rule {
|
||||||
-- All clients will match this rule.
|
-- All clients will match this rule.
|
||||||
rule = {},
|
rule = {},
|
||||||
properties = { border_width = beautiful.border_width,
|
properties = {
|
||||||
|
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,
|
||||||
|
@ -720,56 +701,69 @@ ruled.client.append_rule {
|
||||||
screen = awful.screen.preferred,
|
screen = awful.screen.preferred,
|
||||||
placement = awful.placement.no_overlap+awful.placement.no_offscreen
|
placement = awful.placement.no_overlap+awful.placement.no_offscreen
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
ruled.client.append_rule {
|
ruled.client.append_rule {
|
||||||
-- Floating clients.
|
-- make mpv float
|
||||||
rule_any = {
|
rule_any = {
|
||||||
class = {
|
class = {
|
||||||
"Arandr",
|
"mpv",
|
||||||
"Blender",
|
"gl",
|
||||||
"dolphin",
|
"vlc"
|
||||||
},
|
|
||||||
name = {
|
|
||||||
"Event Tester", -- xev.
|
|
||||||
"remove images?" -- darktable delete window.
|
|
||||||
},
|
|
||||||
role = {
|
|
||||||
"AlarmWindow", -- Thunderbird's calendar.
|
|
||||||
"ConfigManager", -- Thunderbird's about:config.
|
|
||||||
"pop-up", -- e.g. Google Chrome's (detached) Developer Tools.
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
properties = { floating = true },
|
|
||||||
}
|
|
||||||
|
|
||||||
ruled.client.append_rule {
|
|
||||||
-- Add titlebars to normal clients and dialogs
|
|
||||||
rule_any = { type = { "normal", "dialog" } },
|
|
||||||
properties = { titlebars_enabled = false},
|
|
||||||
}
|
|
||||||
|
|
||||||
ruled.client.append_rule {
|
|
||||||
-- Set Firefox to never have titlebars
|
|
||||||
rule = { class = "Firefox" },
|
|
||||||
properties = { requests_no_titlebar = true, titlebars_enabled = false },
|
|
||||||
}
|
|
||||||
|
|
||||||
ruled.client.append_rule {
|
|
||||||
-- Set Feh center
|
|
||||||
rule = { class = "feh" },
|
|
||||||
properties = {
|
properties = {
|
||||||
placement = awful.placement.centered,
|
placement = awful.placement.centered,
|
||||||
floating = true
|
floating = true,
|
||||||
|
ontop = true
|
||||||
},
|
},
|
||||||
}
|
|
||||||
|
|
||||||
ruled.client.append_rule {
|
}
|
||||||
rule_any = { class = { "FelgoLiveClient", "mpv", "gl" } },
|
|
||||||
properties = {floating = true, ontop = true},
|
|
||||||
}
|
|
||||||
|
|
||||||
|
-- ruled.client.append_rule {
|
||||||
|
-- -- Floating clients.
|
||||||
|
-- rule_any = {
|
||||||
|
-- class = {
|
||||||
|
-- "Arandr",
|
||||||
|
-- "Blender",
|
||||||
|
-- "dolphin",
|
||||||
|
-- },
|
||||||
|
-- name = {
|
||||||
|
-- "Event Tester", -- xev.
|
||||||
|
-- "remove images?" -- darktable delete window.
|
||||||
|
-- },
|
||||||
|
-- role = {
|
||||||
|
-- "AlarmWindow", -- Thunderbird's calendar.
|
||||||
|
-- "ConfigManager", -- Thunderbird's about:config.
|
||||||
|
-- "pop-up", -- e.g. Google Chrome's (detached) Developer Tools.
|
||||||
|
-- }
|
||||||
|
-- },
|
||||||
|
-- properties = { floating = true },
|
||||||
|
-- }
|
||||||
|
|
||||||
|
-- ruled.client.append_rule {
|
||||||
|
-- -- Add titlebars to normal clients and dialogs
|
||||||
|
-- rule_any = { type = { "normal", "dialog" } },
|
||||||
|
-- properties = { titlebars_enabled = false},
|
||||||
|
-- }
|
||||||
|
|
||||||
|
-- ruled.client.append_rule {
|
||||||
|
-- -- Set Firefox to never have titlebars
|
||||||
|
-- rule = { class = "Firefox" },
|
||||||
|
-- properties = { requests_no_titlebar = true, titlebars_enabled = false },
|
||||||
|
-- }
|
||||||
|
|
||||||
|
-- ruled.client.append_rule {
|
||||||
|
-- -- Set Feh center
|
||||||
|
-- rule = { class = "feh" },
|
||||||
|
-- properties = {
|
||||||
|
-- placement = awful.placement.centered,
|
||||||
|
-- floating = true
|
||||||
|
-- },
|
||||||
|
-- }
|
||||||
|
end)
|
||||||
-- }}}
|
-- }}}
|
||||||
|
awful.spawn.with_shell("mpv /home/chris/Videos/transcoded/a love letter.mp4")
|
||||||
|
|
||||||
-- {{{ Signals
|
-- {{{ Signals
|
||||||
-- Signal function to execute when a new client appears.
|
-- Signal function to execute when a new client appears.
|
||||||
|
@ -786,62 +780,25 @@ client.connect_signal("manage", function (c)
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
-- Add a titlebar if titlebars_enabled is set to true in the rules.
|
|
||||||
client.connect_signal("request::titlebars", function(c)
|
|
||||||
-- buttons for the titlebar
|
|
||||||
local buttons = gears.table.join(
|
|
||||||
awful.button({ }, 1, function()
|
|
||||||
c:emit_signal("request::activate", "titlebar", {raise = true})
|
|
||||||
awful.mouse.client.move(c)
|
|
||||||
end),
|
|
||||||
awful.button({ }, 3, function()
|
|
||||||
c:emit_signal("request::activate", "titlebar", {raise = true})
|
|
||||||
awful.mouse.client.resize(c)
|
|
||||||
end)
|
|
||||||
)
|
|
||||||
|
|
||||||
awful.titlebar(c) : setup {
|
|
||||||
{ -- Left
|
|
||||||
awful.titlebar.widget.iconwidget(c),
|
|
||||||
buttons = buttons,
|
|
||||||
layout = wibox.layout.fixed.horizontal
|
|
||||||
},
|
|
||||||
{ -- Middle
|
|
||||||
{ -- Title
|
|
||||||
align = "center",
|
|
||||||
widget = awful.titlebar.widget.titlewidget(c)
|
|
||||||
},
|
|
||||||
buttons = buttons,
|
|
||||||
layout = wibox.layout.flex.horizontal
|
|
||||||
},
|
|
||||||
{ -- Right
|
|
||||||
awful.titlebar.widget.floatingbutton (c),
|
|
||||||
awful.titlebar.widget.maximizedbutton(c),
|
|
||||||
awful.titlebar.widget.stickybutton (c),
|
|
||||||
awful.titlebar.widget.ontopbutton (c),
|
|
||||||
awful.titlebar.widget.closebutton (c),
|
|
||||||
layout = wibox.layout.fixed.horizontal()
|
|
||||||
},
|
|
||||||
layout = wibox.layout.align.horizontal
|
|
||||||
}
|
|
||||||
end)
|
|
||||||
|
|
||||||
-- Enable sloppy focus, so that focus follows mouse.
|
-- Enable sloppy focus, so that focus follows mouse.
|
||||||
-- client.connect_signal("mouse::enter", function(c)
|
-- client.connect_signal("mouse::enter", function(c)
|
||||||
-- c:emit_signal("request::activate", "mouse_enter", {raise = false})
|
-- c:emit_signal("request::activate", "mouse_enter", {raise = false})
|
||||||
-- end)
|
-- end)
|
||||||
|
|
||||||
|
-- Enable nice titlebars
|
||||||
|
nice()
|
||||||
|
|
||||||
|
|
||||||
client.connect_signal("focus", function(c) c.border_color = beautiful.border_focus end)
|
client.connect_signal("focus", function(c) c.border_color = beautiful.border_focus end)
|
||||||
client.connect_signal("unfocus", function(c) c.border_color = beautiful.border_normal end)
|
client.connect_signal("unfocus", function(c) c.border_color = beautiful.border_normal end)
|
||||||
-- }}}
|
-- }}}
|
||||||
|
|
||||||
|
|
||||||
-- Autostart Applications
|
-- Autostart Applications
|
||||||
awful.spawn.with_shell("picom --experimental-backend")
|
awful.spawn.with_shell("picom --experimental-backend")
|
||||||
awful.spawn.with_shell("libinput-gestures-setup start")
|
awful.spawn.with_shell("libinput-gestures-setup start")
|
||||||
awful.spawn.with_shell("flameshot")
|
awful.spawn.with_shell("flameshot")
|
||||||
awful.spawn.with_shell("xset r rate 220 90")
|
awful.spawn.with_shell("xset r rate 220 90")
|
||||||
awful.spawn.with_shell("feh --bg-fill ~/Pictures/wallpapers/RoyalKing.png")
|
-- awful.spawn.with_shell("feh --bg-fill ~/Pictures/wallpapers/RoyalKing.png")
|
||||||
awful.spawn.with_shell("/usr/lib/polkit-kde-authentication-agent-1")
|
awful.spawn.with_shell("/usr/lib/polkit-kde-authentication-agent-1")
|
||||||
awful.spawn.with_shell("emacs -daemon")
|
awful.spawn.with_shell("emacs -daemon")
|
||||||
awful.spawn.with_shell("nextcloud --background")
|
awful.spawn.with_shell("nextcloud --background")
|
||||||
|
|
897
awesome/rc.org
Normal file
897
awesome/rc.org
Normal file
|
@ -0,0 +1,897 @@
|
||||||
|
#+TITLE: Awesome RC Config
|
||||||
|
#+AUTHOR: Chris Cochrun
|
||||||
|
#+DESCRIPTION: This is my awesomewm config
|
||||||
|
#+PROPERTY: header-args :tangle rc.lua
|
||||||
|
|
||||||
|
* AWESOME CONFIG
|
||||||
|
This is my Awesome Window Manager config
|
||||||
|
|
||||||
|
If LuaRocks is installed, make sure that packages installed through it are found (e.g. lgi). If LuaRocks is not installed, do nothing.
|
||||||
|
#+BEGIN_SRC lua :tangle yes
|
||||||
|
pcall(require, "luarocks.loader")
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
|
* Libraries
|
||||||
|
|
||||||
|
#+BEGIN_SRC lua :tangle yes
|
||||||
|
|
||||||
|
-- Standard awesome library
|
||||||
|
local gears = require("gears")
|
||||||
|
local awful = require("awful")
|
||||||
|
local xresources = require("beautiful.xresources")
|
||||||
|
local dpi = xresources.apply_dpi
|
||||||
|
require("awful.autofocus")
|
||||||
|
-- Widget and layout library
|
||||||
|
local wibox = require("wibox")
|
||||||
|
-- Theme handling library
|
||||||
|
local beautiful = require("beautiful")
|
||||||
|
-- Notification library
|
||||||
|
-- local naughty = require("naughty")
|
||||||
|
local menubar = require("menubar")
|
||||||
|
local hotkeys_popup = require("awful.hotkeys_popup")
|
||||||
|
local ruled = require("ruled")
|
||||||
|
local nice = require("nice")
|
||||||
|
-- Enable hotkeys help widget for VIM and other apps
|
||||||
|
-- when client with a matching name is opened:
|
||||||
|
require("awful.hotkeys_popup.keys")
|
||||||
|
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
|
* Modules and Widgets
|
||||||
|
|
||||||
|
#+BEGIN_SRC lua :tangle no
|
||||||
|
|
||||||
|
-- require('layout')
|
||||||
|
|
||||||
|
-- Widgets to add
|
||||||
|
-- local batteryarc_widget = require("awesome-wm-widget.batteryarc-widget.batteryarc")
|
||||||
|
|
||||||
|
-- >> Daemons
|
||||||
|
-- Most widgets that display system/external info depend on evil.
|
||||||
|
-- Make sure to initialize it last in order to allow all widgets to connect to
|
||||||
|
-- their needed evil signals.
|
||||||
|
-- require("evil")
|
||||||
|
-- ===================================================================
|
||||||
|
-- ===================================================================
|
||||||
|
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
|
=======================================
|
||||||
|
Modules
|
||||||
|
Load all the modules
|
||||||
|
=======================================
|
||||||
|
|
||||||
|
#+BEGIN_SRC lua :tangle yes
|
||||||
|
require('module.notifications')
|
||||||
|
require('module.decorate-client')
|
||||||
|
require('module.backdrop')
|
||||||
|
require('module.volume-osd')
|
||||||
|
require('module.brightness-osd')
|
||||||
|
-- require('module.auto-start')
|
||||||
|
-- require('module.exit-screen')
|
||||||
|
-- require('module.quake-terminal')
|
||||||
|
-- require('module.titlebar')
|
||||||
|
-- require('module.menu')
|
||||||
|
-- require('module.dynamic-wallpaper')
|
||||||
|
-- require('module.battery-notifier')
|
||||||
|
-- require('module.lockscreen')
|
||||||
|
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
|
* Theme and Variables
|
||||||
|
|
||||||
|
#+BEGIN_SRC lua :tangle yes
|
||||||
|
|
||||||
|
-- -- {{{ 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)
|
||||||
|
-- if awesome.startup_errors then
|
||||||
|
-- naughty.notify({ preset = naughty.config.presets.critical,
|
||||||
|
-- title = "Oops, there were errors during startup!",
|
||||||
|
-- text = awesome.startup_errors })
|
||||||
|
-- end
|
||||||
|
|
||||||
|
-- -- Handle runtime errors after startup
|
||||||
|
-- do
|
||||||
|
-- local in_error = false
|
||||||
|
-- awesome.connect_signal("debug::error", function (err)
|
||||||
|
-- -- Make sure we don't go into an endless error loop
|
||||||
|
-- if in_error then return end
|
||||||
|
-- in_error = true
|
||||||
|
|
||||||
|
-- naughty.notify({ preset = naughty.config.presets.critical,
|
||||||
|
-- title = "Oops, an error happened!",
|
||||||
|
-- text = tostring(err) })
|
||||||
|
-- in_error = false
|
||||||
|
-- end)
|
||||||
|
-- end
|
||||||
|
-- -- }}}
|
||||||
|
|
||||||
|
-- {{{ Variable definitions
|
||||||
|
-- Themes define colours, icons, font and wallpapers.
|
||||||
|
beautiful.init("/home/chris/.config/awesome/theme.lua")
|
||||||
|
|
||||||
|
-- This is used later as the default terminal and editor to run.
|
||||||
|
terminal = "alacritty"
|
||||||
|
editor = "emacsclient -a emacs"
|
||||||
|
editor_cmd = terminal .. " -e " .. editor
|
||||||
|
|
||||||
|
-- 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,
|
||||||
|
-- I suggest you to remap Mod4 to another key using xmodmap or other tools.
|
||||||
|
-- However, you can use another modifier like Mod1, but it may interact with others.
|
||||||
|
modkey = "Mod4"
|
||||||
|
altkey = "Mod1"
|
||||||
|
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
|
* Layouts
|
||||||
|
|
||||||
|
#+BEGIN_SRC lua :tangle yes
|
||||||
|
-- Table of layouts to cover with awful.layout.inc, order matters.
|
||||||
|
awful.layout.layouts = {
|
||||||
|
awful.layout.suit.tile,
|
||||||
|
awful.layout.suit.magnifier,
|
||||||
|
awful.layout.suit.floating,
|
||||||
|
-- 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.corner.nw,
|
||||||
|
-- awful.layout.suit.corner.ne,
|
||||||
|
-- awful.layout.suit.corner.sw,
|
||||||
|
-- awful.layout.suit.corner.se,
|
||||||
|
}
|
||||||
|
-- }}}
|
||||||
|
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
|
* Menu and Launchers
|
||||||
|
|
||||||
|
#+BEGIN_SRC lua :tangle yes
|
||||||
|
-- {{{ Menu
|
||||||
|
-- Create a launcher widget and a main menu
|
||||||
|
myawesomemenu = {
|
||||||
|
{ "hotkeys", function() hotkeys_popup.show_help(nil, awful.screen.focused()) end },
|
||||||
|
{ "manual", terminal .. " -e man awesome" },
|
||||||
|
{ "edit config", editor_cmd .. " " .. awesome.conffile },
|
||||||
|
{ "restart", awesome.restart },
|
||||||
|
{ "quit", function() awesome.quit() end },
|
||||||
|
}
|
||||||
|
|
||||||
|
mymainmenu = awful.menu({ items = { { "awesome", myawesomemenu, beautiful.awesome_icon },
|
||||||
|
{ "open terminal", terminal }
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
mylauncher = awful.widget.launcher({ image = beautiful.awesome_icon,
|
||||||
|
menu = mymainmenu })
|
||||||
|
|
||||||
|
-- Menubar configuration
|
||||||
|
menubar.utils.terminal = terminal -- Set the terminal for applications that require it
|
||||||
|
-- }}}
|
||||||
|
|
||||||
|
-- Keyboard map indicator and switcher
|
||||||
|
mykeyboardlayout = awful.widget.keyboardlayout()
|
||||||
|
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
|
* Bar
|
||||||
|
|
||||||
|
#+BEGIN_SRC lua :tangle yes
|
||||||
|
-- {{{ Wibar
|
||||||
|
-- Create a textclock widget
|
||||||
|
mytextclock = wibox.widget.textclock(" %a %b %d, %l:%M %p ")
|
||||||
|
|
||||||
|
-- Create a volume widget
|
||||||
|
-- myvolumewidget = wibox.widget.button()
|
||||||
|
|
||||||
|
-- Create a wibox for each screen and add it
|
||||||
|
local taglist_buttons = gears.table.join(
|
||||||
|
awful.button({ }, 1, function(t) t:view_only() end),
|
||||||
|
awful.button({ modkey }, 1, function(t)
|
||||||
|
if client.focus then
|
||||||
|
client.focus:move_to_tag(t)
|
||||||
|
end
|
||||||
|
end),
|
||||||
|
awful.button({ }, 3, awful.tag.viewtoggle),
|
||||||
|
awful.button({ modkey }, 3, function(t)
|
||||||
|
if client.focus then
|
||||||
|
client.focus:toggle_tag(t)
|
||||||
|
end
|
||||||
|
end),
|
||||||
|
awful.button({ }, 4, function(t) awful.tag.viewnext(t.screen) end),
|
||||||
|
awful.button({ }, 5, function(t) awful.tag.viewprev(t.screen) end)
|
||||||
|
)
|
||||||
|
|
||||||
|
local tasklist_buttons = gears.table.join(
|
||||||
|
awful.button({ }, 1, function (c)
|
||||||
|
if c == client.focus then
|
||||||
|
c.minimized = true
|
||||||
|
else
|
||||||
|
c:emit_signal(
|
||||||
|
"request::activate",
|
||||||
|
"tasklist",
|
||||||
|
{raise = true}
|
||||||
|
)
|
||||||
|
end
|
||||||
|
end),
|
||||||
|
awful.button({ }, 3, function()
|
||||||
|
awful.menu.client_list({ theme = { width = 250 } })
|
||||||
|
end),
|
||||||
|
awful.button({ }, 4, function ()
|
||||||
|
awful.client.focus.byidx(1)
|
||||||
|
end),
|
||||||
|
awful.button({ }, 5, function ()
|
||||||
|
awful.client.focus.byidx(-1)
|
||||||
|
end))
|
||||||
|
|
||||||
|
local function set_wallpaper(s)
|
||||||
|
-- Wallpaper
|
||||||
|
if beautiful.wallpaper then
|
||||||
|
local wallpaper = beautiful.wallpaper
|
||||||
|
-- If wallpaper is a function, call it with the screen
|
||||||
|
if type(wallpaper) == "function" then
|
||||||
|
wallpaper = wallpaper(s)
|
||||||
|
end
|
||||||
|
gears.wallpaper.maximized(wallpaper, s, true)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
-- Re-set wallpaper when a screen's geometry changes (e.g. different resolution)
|
||||||
|
screen.connect_signal("property::geometry", set_wallpaper)
|
||||||
|
|
||||||
|
|
||||||
|
-- mynewpanel:setup {
|
||||||
|
-- layout = wibox.layout.align.horizontal,
|
||||||
|
-- expand = "outside",
|
||||||
|
-- { -- Left widgets
|
||||||
|
-- layout = wibox.layout.align.horizontal,
|
||||||
|
-- -- wibox.container.margin (s.mytaglist,25,0,0,0),
|
||||||
|
-- -- wibox.container.margin (s.mytasklist,25,25,0,0), -- Middle widget
|
||||||
|
-- -- s.myemptywidget,
|
||||||
|
-- spacing = 15
|
||||||
|
-- },
|
||||||
|
-- -- mytextclock,
|
||||||
|
-- { -- Right widgets
|
||||||
|
-- layout = wibox.layout.align.horizontal,
|
||||||
|
-- -- s.myemptywidget,
|
||||||
|
-- -- s.myemptywidget,
|
||||||
|
-- -- s.myrightwidgets,
|
||||||
|
-- },
|
||||||
|
-- }
|
||||||
|
|
||||||
|
awful.screen.connect_for_each_screen(function(s)
|
||||||
|
-- Wallpaper
|
||||||
|
set_wallpaper(s)
|
||||||
|
|
||||||
|
-- Each screen has its own tag table.
|
||||||
|
awful.tag({ "◉", "◉", "◉", "◉"}, s, awful.layout.layouts[1])
|
||||||
|
|
||||||
|
|
||||||
|
yoffset = dpi(45)
|
||||||
|
xoffset = dpi(18)
|
||||||
|
|
||||||
|
mypanel = wibox
|
||||||
|
({
|
||||||
|
x = s.geometry.x + xoffset,
|
||||||
|
y = s.geometry.height - yoffset,
|
||||||
|
height = dpi(30),
|
||||||
|
width = s.geometry.width - (xoffset * 2),
|
||||||
|
ontop = false,
|
||||||
|
stretch = false,
|
||||||
|
type = "dock",
|
||||||
|
screen = s,
|
||||||
|
shape = gears.shape.rounded_bar,
|
||||||
|
-- widget = wibox.widget.textbox
|
||||||
|
bg = beautiful.bg_normal,
|
||||||
|
fg = beautiful.fg_normal,
|
||||||
|
opacity = 0.65,
|
||||||
|
})
|
||||||
|
|
||||||
|
mypanel:struts {
|
||||||
|
bottom = dpi(40)
|
||||||
|
}
|
||||||
|
|
||||||
|
-- Create a promptbox for each screen
|
||||||
|
s.mypromptbox = awful.widget.prompt()
|
||||||
|
-- Create an imagebox widget which will contain an icon indicating which layout we're using.
|
||||||
|
-- We need one layoutbox per screen.
|
||||||
|
s.mylayoutbox = awful.widget.layoutbox(s)
|
||||||
|
s.mylayoutbox:buttons(gears.table.join(
|
||||||
|
awful.button({ }, 1, function () awful.layout.inc( 1) end),
|
||||||
|
awful.button({ }, 3, function () awful.layout.inc(-1) end),
|
||||||
|
awful.button({ }, 4, function () awful.layout.inc( 1) end),
|
||||||
|
awful.button({ }, 5, function () awful.layout.inc(-1) end)))
|
||||||
|
-- Create a taglist widget
|
||||||
|
s.mytaglist = awful.widget.taglist {
|
||||||
|
screen = s,
|
||||||
|
filter = awful.widget.taglist.filter.all,
|
||||||
|
buttons = taglist_buttons
|
||||||
|
}
|
||||||
|
|
||||||
|
-- Create a systray widget
|
||||||
|
s.mysystray = {
|
||||||
|
wibox.widget.systray(),
|
||||||
|
-- bg = "#00FF0066",
|
||||||
|
widget = wibox.container.background,
|
||||||
|
}
|
||||||
|
-- Create a tasklist widget
|
||||||
|
-- s.mytasklist = awful.widget.tasklist {
|
||||||
|
-- screen = s,
|
||||||
|
-- filter = awful.widget.tasklist.filter.currenttags,
|
||||||
|
-- buttons = tasklist_buttons
|
||||||
|
-- style =
|
||||||
|
-- }
|
||||||
|
|
||||||
|
s.mytasklist = awful.widget.tasklist {
|
||||||
|
screen = s,
|
||||||
|
filter = awful.widget.tasklist.filter.currenttags,
|
||||||
|
buttons = tasklist_buttons,
|
||||||
|
style = {
|
||||||
|
border_width = 0,
|
||||||
|
border_color = '#777777',
|
||||||
|
shape = gears.shape.rounded_bar,
|
||||||
|
|
||||||
|
},
|
||||||
|
layout = {
|
||||||
|
spacing = 20,
|
||||||
|
spacing_widget = {
|
||||||
|
{
|
||||||
|
forced_width = 5,
|
||||||
|
forced_height = dpi(20),
|
||||||
|
-- shape = gears.shape.circle,
|
||||||
|
widget = wibox.widget.separator
|
||||||
|
},
|
||||||
|
valign = 'center',
|
||||||
|
halign = 'center',
|
||||||
|
widget = wibox.container.place,
|
||||||
|
},
|
||||||
|
layout = wibox.layout.flex.horizontal
|
||||||
|
},
|
||||||
|
-- notice that there is *no* wibox.wibox prefix, it is a template,
|
||||||
|
-- not a widget instance.
|
||||||
|
widget_template = {
|
||||||
|
{
|
||||||
|
{
|
||||||
|
{
|
||||||
|
{
|
||||||
|
id = 'icon_role',
|
||||||
|
widget = wibox.widget.imagebox,
|
||||||
|
},
|
||||||
|
margins = 2,
|
||||||
|
widget = wibox.container.margin,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 'text_role',
|
||||||
|
widget = wibox.widget.textbox,
|
||||||
|
},
|
||||||
|
layout = wibox.layout.align.horizontal,
|
||||||
|
},
|
||||||
|
left = 10,
|
||||||
|
right = 10,
|
||||||
|
widget = wibox.container.margin
|
||||||
|
},
|
||||||
|
id = 'background_role',
|
||||||
|
widget = wibox.container.background,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
-- Create Battery, Network, and Volume widget
|
||||||
|
s.battery = require('widget.battery')()
|
||||||
|
s.network = require('widget.network')()
|
||||||
|
s.volume = require('widget.volume')()
|
||||||
|
s.updater = require('widget.package-updater')()
|
||||||
|
|
||||||
|
-- Create the wibox
|
||||||
|
-- s.mywibox = awful.wibar({
|
||||||
|
-- y = s.geometry.y + dpi(1080) - yoffset,
|
||||||
|
-- position = "bottom",
|
||||||
|
-- screen = s})
|
||||||
|
|
||||||
|
s.myrightwidgets =
|
||||||
|
{
|
||||||
|
{ -- Right widgets
|
||||||
|
layout = wibox.layout.fixed.horizontal,
|
||||||
|
s.volume,
|
||||||
|
s.mysystray,
|
||||||
|
s.updater,
|
||||||
|
s.network,
|
||||||
|
s.battery,
|
||||||
|
wibox.container.margin (s.mylayoutbox,0,dpi(25),0,0),
|
||||||
|
},
|
||||||
|
-- bg = "#00FF0066",
|
||||||
|
widget = wibox.container.background,
|
||||||
|
}
|
||||||
|
-- Empty widget to use for spacing
|
||||||
|
s.myemptywidget = wibox.widget{
|
||||||
|
markup = '',
|
||||||
|
align = '',
|
||||||
|
valign = '',
|
||||||
|
widget = wibox.widget.textbox
|
||||||
|
}
|
||||||
|
-- Add widgets to the wibox
|
||||||
|
-- s.mywibox:setup {
|
||||||
|
-- layout = wibox.layout.align.horizontal,
|
||||||
|
-- expand = "outside",
|
||||||
|
-- { -- Left widgets
|
||||||
|
-- layout = wibox.layout.align.horizontal,
|
||||||
|
-- wibox.container.margin (s.mytaglist,25,0,0,0),
|
||||||
|
-- wibox.container.margin (s.mytasklist,25,25,0,0), -- Middle widget
|
||||||
|
-- s.myemptywidget,
|
||||||
|
-- spacing = 15
|
||||||
|
-- },
|
||||||
|
-- mytextclock,
|
||||||
|
-- { -- Right widgets
|
||||||
|
-- layout = wibox.layout.align.horizontal,
|
||||||
|
-- s.myemptywidget,
|
||||||
|
-- s.myemptywidget,
|
||||||
|
-- s.myrightwidgets,
|
||||||
|
-- },
|
||||||
|
-- }
|
||||||
|
|
||||||
|
-- Add widgets to the wibox
|
||||||
|
mypanel:setup {
|
||||||
|
layout = wibox.layout.align.horizontal,
|
||||||
|
expand = "outside",
|
||||||
|
{ -- Left widgets
|
||||||
|
layout = wibox.layout.align.horizontal,
|
||||||
|
wibox.container.margin (s.mytaglist,dpi(15),0,dpi(-3),0),
|
||||||
|
wibox.container.margin (s.mytasklist,dpi(25),dpi(25),0,0), -- Middle widget
|
||||||
|
s.myemptywidget,
|
||||||
|
spacing = dpi(15)
|
||||||
|
},
|
||||||
|
mytextclock,
|
||||||
|
{ -- Right widgets
|
||||||
|
layout = wibox.layout.align.horizontal,
|
||||||
|
s.myemptywidget,
|
||||||
|
s.myemptywidget,
|
||||||
|
s.myrightwidgets,
|
||||||
|
},
|
||||||
|
visible = true,
|
||||||
|
}
|
||||||
|
|
||||||
|
mypanel.visible = true
|
||||||
|
-- return mypanel
|
||||||
|
end)
|
||||||
|
-- }}}
|
||||||
|
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
|
* Mouse bindings
|
||||||
|
|
||||||
|
#+BEGIN_SRC lua :tangle yes
|
||||||
|
-- {{{ Mouse bindings
|
||||||
|
root.buttons(gears.table.join(
|
||||||
|
awful.button({ }, 3, function () mymainmenu:toggle() end),
|
||||||
|
awful.button({ }, 4, awful.tag.viewnext),
|
||||||
|
awful.button({ }, 5, awful.tag.viewprev)
|
||||||
|
))
|
||||||
|
-- }}}
|
||||||
|
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
|
* Key bindings
|
||||||
|
|
||||||
|
#+BEGIN_SRC lua :tangle yes
|
||||||
|
-- {{{ Key bindings
|
||||||
|
globalkeys = gears.table.join(
|
||||||
|
awful.key({ modkey, }, "s", hotkeys_popup.show_help,
|
||||||
|
{description="show help", group="awesome"}),
|
||||||
|
awful.key({ modkey, }, "Left", awful.tag.viewprev,
|
||||||
|
{description = "view previous", group = "tag"}),
|
||||||
|
awful.key({ modkey, }, "Right", awful.tag.viewnext,
|
||||||
|
{description = "view next", group = "tag"}),
|
||||||
|
awful.key({ modkey, }, "Escape", awful.tag.history.restore,
|
||||||
|
{description = "go back", group = "tag"}),
|
||||||
|
|
||||||
|
awful.key({ modkey, }, "j",
|
||||||
|
function ()
|
||||||
|
awful.client.focus.byidx( 1)
|
||||||
|
end,
|
||||||
|
{description = "focus next by index", group = "client"}
|
||||||
|
),
|
||||||
|
awful.key({ modkey, }, "k",
|
||||||
|
function ()
|
||||||
|
awful.client.focus.byidx(-1)
|
||||||
|
end,
|
||||||
|
{description = "focus previous by index", group = "client"}
|
||||||
|
),
|
||||||
|
awful.key({ modkey, }, "w", function () mymainmenu:show() end,
|
||||||
|
{description = "show main menu", group = "awesome"}),
|
||||||
|
|
||||||
|
-- Layout manipulation
|
||||||
|
awful.key({ modkey, "Shift" }, "j", function () awful.client.swap.byidx( 1) end,
|
||||||
|
{description = "swap with next client by index", group = "client"}),
|
||||||
|
awful.key({ modkey, "Shift" }, "k", function () awful.client.swap.byidx( -1) end,
|
||||||
|
{description = "swap with previous client by index", group = "client"}),
|
||||||
|
awful.key({ modkey, "Control" }, "j", function () awful.screen.focus_relative( 1) end,
|
||||||
|
{description = "focus the next screen", group = "screen"}),
|
||||||
|
awful.key({ modkey, "Control" }, "k", function () awful.screen.focus_relative(-1) end,
|
||||||
|
{description = "focus the previous screen", group = "screen"}),
|
||||||
|
awful.key({ modkey, }, "u", awful.client.urgent.jumpto,
|
||||||
|
{description = "jump to urgent client", group = "client"}),
|
||||||
|
awful.key({ modkey, }, "Tab",
|
||||||
|
function ()
|
||||||
|
awful.client.focus.history.previous()
|
||||||
|
if client.focus then
|
||||||
|
client.focus:raise()
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
{description = "go back", group = "client"}),
|
||||||
|
|
||||||
|
|
||||||
|
-- Screenshots
|
||||||
|
awful.key({}, "Print", function() awful.util.spawn("flameshot gui") end,
|
||||||
|
{description = "take a screenshot", group = "screen"}),
|
||||||
|
|
||||||
|
-- Increase-Decrease Gap
|
||||||
|
|
||||||
|
awful.key({ modkey, altkey }, "k", function () awful.tag.incgap ( 1, null) end,
|
||||||
|
{description = "increase gap", group = "layout"}),
|
||||||
|
|
||||||
|
awful.key({ modkey, altkey }, "j", function () awful.tag.incgap ( -1, null) end,
|
||||||
|
{description = "decrease gap", group = "layout"}),
|
||||||
|
|
||||||
|
|
||||||
|
-- Standard program
|
||||||
|
awful.key({ modkey, }, "Return", function () awful.spawn(terminal) end,
|
||||||
|
{description = "open a terminal", group = "launcher"}),
|
||||||
|
awful.key({ modkey, "Control" }, "r", awesome.restart,
|
||||||
|
{description = "reload awesome", group = "awesome"}),
|
||||||
|
awful.key({ modkey, "Shift" }, "q", awesome.quit,
|
||||||
|
{description = "quit awesome", group = "awesome"}),
|
||||||
|
|
||||||
|
-- Programs
|
||||||
|
awful.key({ modkey, }, "b", function () awful.spawn("firefox") end,
|
||||||
|
{description = "open firefox", group = "apps"}),
|
||||||
|
awful.key({ modkey, }, "e", function () awful.spawn("emacsclient -c") end,
|
||||||
|
{description = "open emacs frame connected to server", group = "apps"}),
|
||||||
|
-- dolphin
|
||||||
|
awful.key({ modkey, }, "d", function () awful.spawn("dolphin") end,
|
||||||
|
{description = "open dolphin file manager", group = "apps"}),
|
||||||
|
|
||||||
|
-- layout
|
||||||
|
awful.key({ modkey, }, "l", function () awful.tag.incmwfact( 0.05) end,
|
||||||
|
{description = "increase master width factor", group = "layout"}),
|
||||||
|
awful.key({ modkey, }, "h", function () awful.tag.incmwfact(-0.05) end,
|
||||||
|
{description = "decrease master width factor", group = "layout"}),
|
||||||
|
awful.key({ modkey, "Shift" }, "h", function () awful.tag.incnmaster( 1, nil, true) end,
|
||||||
|
{description = "increase the number of master clients", group = "layout"}),
|
||||||
|
awful.key({ modkey, "Shift" }, "l", function () awful.tag.incnmaster(-1, nil, true) end,
|
||||||
|
{description = "decrease the number of master clients", group = "layout"}),
|
||||||
|
awful.key({ modkey, "Control" }, "h", function () awful.tag.incncol( 1, nil, true) end,
|
||||||
|
{description = "increase the number of columns", group = "layout"}),
|
||||||
|
awful.key({ modkey, "Control" }, "l", function () awful.tag.incncol(-1, nil, true) end,
|
||||||
|
{description = "decrease the number of columns", group = "layout"}),
|
||||||
|
awful.key({ modkey, }, "space", function () awful.layout.inc( 1) end,
|
||||||
|
{description = "select next", group = "layout"}),
|
||||||
|
awful.key({ modkey, "Shift" }, "space", function () awful.layout.inc(-1) end,
|
||||||
|
{description = "select previous", group = "layout"}),
|
||||||
|
|
||||||
|
awful.key({ modkey, "Control" }, "n",
|
||||||
|
function ()
|
||||||
|
local c = awful.client.restore()
|
||||||
|
-- Focus restored client
|
||||||
|
if c then
|
||||||
|
c:emit_signal(
|
||||||
|
"request::activate", "key.unminimize", {raise = true}
|
||||||
|
)
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
{description = "restore minimized", group = "client"}),
|
||||||
|
|
||||||
|
-- Volume Keys
|
||||||
|
awful.key({}, "XF86AudioLowerVolume", function ()
|
||||||
|
awful.util.spawn("amixer -D pulse sset Master 5%-", false)
|
||||||
|
awful.util.spawn("mpv /home/chris/Music/notifications/Pop-709f8e26-a350-3999-9e86-aa91b8602650.mp3")
|
||||||
|
awesome.emit_signal('widget::volume')
|
||||||
|
awesome.emit_signal('module::volume_osd:show', true)
|
||||||
|
end),
|
||||||
|
awful.key({}, "XF86AudioRaiseVolume", function ()
|
||||||
|
awful.util.spawn("amixer -D pulse sset Master 5%+", false)
|
||||||
|
awful.util.spawn("mpv /home/chris/Music/notifications/Pop-16da230f-5ffc-4a42-93df-a169e9253ddc.mp3")
|
||||||
|
awesome.emit_signal('widget::volume')
|
||||||
|
awesome.emit_signal('module::volume_osd:show', true)
|
||||||
|
end),
|
||||||
|
awful.key({}, "XF86AudioMute", function ()
|
||||||
|
awful.util.spawn("amixer set Master 1+ toggle", false)
|
||||||
|
end),
|
||||||
|
-- Media Keys
|
||||||
|
awful.key({}, "XF86AudioPlay", function()
|
||||||
|
awful.util.spawn("playerctl play-pause", false)
|
||||||
|
end),
|
||||||
|
awful.key({}, "XF86AudioNext", function()
|
||||||
|
awful.util.spawn("playerctl next", false)
|
||||||
|
end),
|
||||||
|
awful.key({}, "XF86AudioPrev", function()
|
||||||
|
awful.util.spawn("playerctl previous", false)
|
||||||
|
end),
|
||||||
|
|
||||||
|
-- Brightness Keys
|
||||||
|
awful.key({}, "XF86MonBrightnessUp", function()
|
||||||
|
awful.util.spawn("brightnessctl set +10%", false)
|
||||||
|
awesome.emit_signal('widget::brightness')
|
||||||
|
awesome.emit_signal('module::brightness_osd:show', true)
|
||||||
|
end),
|
||||||
|
|
||||||
|
awful.key({}, "XF86MonBrightnessDown", function()
|
||||||
|
awful.util.spawn("brightnessctl set 10%-", false)
|
||||||
|
awesome.emit_signal('widget::brightness')
|
||||||
|
awesome.emit_signal('module::brightness_osd:show', true)
|
||||||
|
end),
|
||||||
|
|
||||||
|
-- Prompt
|
||||||
|
awful.key({ }, "Menu", function ()
|
||||||
|
awful.util.spawn("/home/chris/.dotfiles/rofi/launchers-git/launcher.sh") end,
|
||||||
|
{description = "launch rofi", group = "launcher"}),
|
||||||
|
|
||||||
|
awful.key({ modkey }, "x",
|
||||||
|
function ()
|
||||||
|
awful.prompt.run {
|
||||||
|
prompt = "Run Lua code: ",
|
||||||
|
textbox = awful.screen.focused().mypromptbox.widget,
|
||||||
|
exe_callback = awful.util.eval,
|
||||||
|
history_path = awful.util.get_cache_dir() .. "/history_eval"
|
||||||
|
}
|
||||||
|
end,
|
||||||
|
{description = "lua execute prompt", group = "awesome"}),
|
||||||
|
-- Menubar
|
||||||
|
awful.key({ modkey }, "p", function() menubar.show() end,
|
||||||
|
{description = "show the menubar", group = "launcher"})
|
||||||
|
)
|
||||||
|
|
||||||
|
clientkeys = gears.table.join(
|
||||||
|
awful.key({ modkey, }, "f",
|
||||||
|
function (c)
|
||||||
|
c.fullscreen = not c.fullscreen
|
||||||
|
c:raise()
|
||||||
|
end,
|
||||||
|
{description = "toggle fullscreen", group = "client"}),
|
||||||
|
awful.key({ modkey, }, "c", function (c) c:kill() end,
|
||||||
|
{description = "close", group = "client"}),
|
||||||
|
awful.key({ modkey, "Control" }, "space", awful.client.floating.toggle ,
|
||||||
|
{description = "toggle floating", group = "client"}),
|
||||||
|
awful.key({ modkey, "Control" }, "Return", function (c) c:swap(awful.client.getmaster()) end,
|
||||||
|
{description = "move to master", group = "client"}),
|
||||||
|
awful.key({ modkey, }, "o", function (c) c:move_to_screen() end,
|
||||||
|
{description = "move to screen", group = "client"}),
|
||||||
|
awful.key({ modkey, }, "t", function (c) c.ontop = not c.ontop end,
|
||||||
|
{description = "toggle keep on top", group = "client"}),
|
||||||
|
awful.key({ modkey, }, "n",
|
||||||
|
function (c)
|
||||||
|
-- The client currently has the input focus, so it cannot be
|
||||||
|
-- minimized, since minimized clients can't have the focus.
|
||||||
|
c.minimized = true
|
||||||
|
end ,
|
||||||
|
{description = "minimize", group = "client"}),
|
||||||
|
awful.key({ modkey, }, "m",
|
||||||
|
function (c)
|
||||||
|
c.maximized = not c.maximized
|
||||||
|
c:raise()
|
||||||
|
end ,
|
||||||
|
{description = "(un)maximize", group = "client"}),
|
||||||
|
awful.key({ modkey, "Control" }, "m",
|
||||||
|
function (c)
|
||||||
|
c.maximized_vertical = not c.maximized_vertical
|
||||||
|
c:raise()
|
||||||
|
end ,
|
||||||
|
{description = "(un)maximize vertically", group = "client"}),
|
||||||
|
awful.key({ modkey, "Shift" }, "m",
|
||||||
|
function (c)
|
||||||
|
c.maximized_horizontal = not c.maximized_horizontal
|
||||||
|
c:raise()
|
||||||
|
end ,
|
||||||
|
{description = "(un)maximize horizontally", group = "client"})
|
||||||
|
)
|
||||||
|
|
||||||
|
-- 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
|
||||||
|
globalkeys = gears.table.join(globalkeys,
|
||||||
|
-- View tag only.
|
||||||
|
awful.key({ modkey }, "#" .. i + 9,
|
||||||
|
function ()
|
||||||
|
local screen = awful.screen.focused()
|
||||||
|
local tag = screen.tags[i]
|
||||||
|
if tag then
|
||||||
|
tag:view_only()
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
{description = "view tag #"..i, group = "tag"}),
|
||||||
|
-- Toggle tag display.
|
||||||
|
awful.key({ modkey, "Control" }, "#" .. i + 9,
|
||||||
|
function ()
|
||||||
|
local screen = awful.screen.focused()
|
||||||
|
local tag = screen.tags[i]
|
||||||
|
if tag then
|
||||||
|
awful.tag.viewtoggle(tag)
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
{description = "toggle tag #" .. i, group = "tag"}),
|
||||||
|
-- Move client to tag.
|
||||||
|
awful.key({ modkey, "Shift" }, "#" .. i + 9,
|
||||||
|
function ()
|
||||||
|
if client.focus then
|
||||||
|
local tag = client.focus.screen.tags[i]
|
||||||
|
if tag then
|
||||||
|
client.focus:move_to_tag(tag)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
{description = "move focused client to tag #"..i, group = "tag"}),
|
||||||
|
-- Toggle tag on focused client.
|
||||||
|
awful.key({ modkey, "Control", "Shift" }, "#" .. i + 9,
|
||||||
|
function ()
|
||||||
|
if client.focus then
|
||||||
|
local tag = client.focus.screen.tags[i]
|
||||||
|
if tag then
|
||||||
|
client.focus:toggle_tag(tag)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
{description = "toggle focused client on tag #" .. i, group = "tag"})
|
||||||
|
)
|
||||||
|
end
|
||||||
|
|
||||||
|
clientbuttons = gears.table.join(
|
||||||
|
awful.button({ }, 1, function (c)
|
||||||
|
c:emit_signal("request::activate", "mouse_click", {raise = true})
|
||||||
|
end),
|
||||||
|
awful.button({ modkey }, 1, function (c)
|
||||||
|
c:emit_signal("request::activate", "mouse_click", {raise = true})
|
||||||
|
awful.mouse.client.move(c)
|
||||||
|
end),
|
||||||
|
awful.button({ modkey }, 3, function (c)
|
||||||
|
c:emit_signal("request::activate", "mouse_click", {raise = true})
|
||||||
|
awful.mouse.client.resize(c)
|
||||||
|
end)
|
||||||
|
)
|
||||||
|
|
||||||
|
-- Set keys
|
||||||
|
root.keys(globalkeys)
|
||||||
|
-- }}}
|
||||||
|
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
|
* Rules
|
||||||
|
|
||||||
|
#+BEGIN_SRC lua :tangle yes
|
||||||
|
-- {{{ Rules
|
||||||
|
-- Rules to apply to new clients (through the "manage" signal).
|
||||||
|
client.connect_signal("request::rules", function(c)
|
||||||
|
ruled.client.append_rule {
|
||||||
|
-- All clients will match this rule.
|
||||||
|
rule = {},
|
||||||
|
properties = {
|
||||||
|
border_width = beautiful.border_width,
|
||||||
|
border_color = beautiful.border_normal,
|
||||||
|
focus = awful.client.focus.filter,
|
||||||
|
raise = true,
|
||||||
|
keys = clientkeys,
|
||||||
|
buttons = clientbuttons,
|
||||||
|
screen = awful.screen.preferred,
|
||||||
|
placement = awful.placement.no_overlap+awful.placement.no_offscreen
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
ruled.client.append_rule {
|
||||||
|
-- make mpv float
|
||||||
|
rule_any = {
|
||||||
|
class = {
|
||||||
|
"mpv",
|
||||||
|
"gl",
|
||||||
|
"vlc"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
properties = {
|
||||||
|
placement = awful.placement.centered,
|
||||||
|
floating = true,
|
||||||
|
ontop = true
|
||||||
|
},
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
-- ruled.client.append_rule {
|
||||||
|
-- -- Floating clients.
|
||||||
|
-- rule_any = {
|
||||||
|
-- class = {
|
||||||
|
-- "Arandr",
|
||||||
|
-- "Blender",
|
||||||
|
-- "dolphin",
|
||||||
|
-- },
|
||||||
|
-- name = {
|
||||||
|
-- "Event Tester", -- xev.
|
||||||
|
-- "remove images?" -- darktable delete window.
|
||||||
|
-- },
|
||||||
|
-- role = {
|
||||||
|
-- "AlarmWindow", -- Thunderbird's calendar.
|
||||||
|
-- "ConfigManager", -- Thunderbird's about:config.
|
||||||
|
-- "pop-up", -- e.g. Google Chrome's (detached) Developer Tools.
|
||||||
|
-- }
|
||||||
|
-- },
|
||||||
|
-- properties = { floating = true },
|
||||||
|
-- }
|
||||||
|
|
||||||
|
-- ruled.client.append_rule {
|
||||||
|
-- -- Add titlebars to normal clients and dialogs
|
||||||
|
-- rule_any = { type = { "normal", "dialog" } },
|
||||||
|
-- properties = { titlebars_enabled = false},
|
||||||
|
-- }
|
||||||
|
|
||||||
|
-- ruled.client.append_rule {
|
||||||
|
-- -- Set Firefox to never have titlebars
|
||||||
|
-- rule = { class = "Firefox" },
|
||||||
|
-- properties = { requests_no_titlebar = true, titlebars_enabled = false },
|
||||||
|
-- }
|
||||||
|
|
||||||
|
-- ruled.client.append_rule {
|
||||||
|
-- -- Set Feh center
|
||||||
|
-- rule = { class = "feh" },
|
||||||
|
-- properties = {
|
||||||
|
-- placement = awful.placement.centered,
|
||||||
|
-- floating = true
|
||||||
|
-- },
|
||||||
|
-- }
|
||||||
|
end)
|
||||||
|
-- }}}
|
||||||
|
awful.spawn.with_shell("mpv /home/chris/Videos/transcoded/a love letter.mp4")
|
||||||
|
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
|
* Signals
|
||||||
|
|
||||||
|
#+BEGIN_SRC lua :tangle yes
|
||||||
|
-- {{{ Signals
|
||||||
|
-- Signal function to execute when a new client appears.
|
||||||
|
client.connect_signal("manage", function (c)
|
||||||
|
-- Set the windows at the slave,
|
||||||
|
-- i.e. put it at the end of others instead of setting it master.
|
||||||
|
-- if not awesome.startup then awful.client.setslave(c) end
|
||||||
|
|
||||||
|
if awesome.startup
|
||||||
|
and not c.size_hints.user_position
|
||||||
|
and not c.size_hints.program_position then
|
||||||
|
-- Prevent clients from being unreachable after screen count changes.
|
||||||
|
awful.placement.no_offscreen(c)
|
||||||
|
end
|
||||||
|
end)
|
||||||
|
|
||||||
|
-- Enable sloppy focus, so that focus follows mouse.
|
||||||
|
-- client.connect_signal("mouse::enter", function(c)
|
||||||
|
-- c:emit_signal("request::activate", "mouse_enter", {raise = false})
|
||||||
|
-- end)
|
||||||
|
|
||||||
|
-- Enable nice titlebars
|
||||||
|
nice()
|
||||||
|
|
||||||
|
|
||||||
|
client.connect_signal("focus", function(c) c.border_color = beautiful.border_focus end)
|
||||||
|
client.connect_signal("unfocus", function(c) c.border_color = beautiful.border_normal end)
|
||||||
|
-- }}}
|
||||||
|
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
|
* Autostart Apps
|
||||||
|
|
||||||
|
#+BEGIN_SRC lua :tangle yes
|
||||||
|
|
||||||
|
-- Autostart Applications
|
||||||
|
awful.spawn.with_shell("picom --experimental-backend")
|
||||||
|
awful.spawn.with_shell("libinput-gestures-setup start")
|
||||||
|
awful.spawn.with_shell("flameshot")
|
||||||
|
awful.spawn.with_shell("xset r rate 220 90")
|
||||||
|
-- awful.spawn.with_shell("feh --bg-fill ~/Pictures/wallpapers/RoyalKing.png")
|
||||||
|
awful.spawn.with_shell("/usr/lib/polkit-kde-authentication-agent-1")
|
||||||
|
awful.spawn.with_shell("emacs -daemon")
|
||||||
|
awful.spawn.with_shell("nextcloud --background")
|
||||||
|
awful.spawn.with_shell("caffeine")
|
||||||
|
|
||||||
|
|
||||||
|
#+END_SRC
|
|
@ -103,33 +103,33 @@ theme.wibar_width = dpi(1850)
|
||||||
-- theme.wibar_bgimage = nil
|
-- theme.wibar_bgimage = nil
|
||||||
|
|
||||||
-- Define the image to load
|
-- Define the image to load
|
||||||
theme.titlebar_bg_normal = "#282A36FF"
|
-- theme.titlebar_bg_normal = "#282A36FF"
|
||||||
theme.titlebar_bg_focus = "#282A3699"
|
-- theme.titlebar_bg_focus = "#282A3699"
|
||||||
theme.titlebar_close_button_normal = themes_path.."default/titlebar/close_normal.png"
|
-- 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_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_normal = themes_path.."default/titlebar/minimize_normal.png"
|
||||||
theme.titlebar_minimize_button_focus = themes_path.."default/titlebar/minimize_focus.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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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.titlebar_maximized_button_focus_active = themes_path.."default/titlebar/maximized_focus_active.png"
|
||||||
|
|
||||||
theme.wallpaper = wallpaperdir.."RoyalKing.png"
|
theme.wallpaper = wallpaperdir.."RoyalKing.png"
|
||||||
|
|
||||||
|
|
|
@ -49,7 +49,7 @@
|
||||||
|
|
||||||
.tabbrowser-tab[selected]{
|
.tabbrowser-tab[selected]{
|
||||||
min-width: 200px !important;
|
min-width: 200px !important;
|
||||||
max-width: 1600px !important;
|
max-width: 2600px !important;
|
||||||
max-height: 20px !important;
|
max-height: 20px !important;
|
||||||
height: 20px !important;
|
height: 20px !important;
|
||||||
min-height: 20px !important;
|
min-height: 20px !important;
|
||||||
|
@ -62,15 +62,29 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.tabbrowser-tab{
|
.tabbrowser-tab{
|
||||||
max-width: 70px !important;
|
max-width: 80px !important;
|
||||||
min-width: 0px !important;
|
min-width: 10px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tab-throbber, .tab-throbber-tabslist, .tab-icon-pending, .tab-icon-image, .tab-sharing-icon-overlay .tab-icon-sound{
|
.tab-background {
|
||||||
max-height: 10px !important;
|
border-top: 0px !important;
|
||||||
height: 10px !important;
|
}
|
||||||
min-height: 10px !important;
|
|
||||||
max-width: 10px !important;
|
.tab-icon-pending, .tab-icon-image, .tab-sharing-icon-overlay .tab-icon-sound{
|
||||||
|
max-height: 13px !important;
|
||||||
|
height: 13px !important;
|
||||||
|
min-height: 13px !important;
|
||||||
|
min-width: 13px !important;
|
||||||
|
max-width: 13px !important;
|
||||||
|
align-self: center !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tab-throbber, .tab-throbber-tabslist {
|
||||||
|
max-height: 18px !important;
|
||||||
|
height: 18px !important;
|
||||||
|
min-height: 18px !important;
|
||||||
|
min-width: 16px !important;
|
||||||
|
max-width: 16px !important;
|
||||||
align-self: center !important;
|
align-self: center !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
20
fish/conf.d/omf.fish
Normal file
20
fish/conf.d/omf.fish
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
# Path to Oh My Fish install.
|
||||||
|
set -q XDG_DATA_HOME
|
||||||
|
and set -gx OMF_PATH "$XDG_DATA_HOME/omf"
|
||||||
|
or set -gx OMF_PATH "$HOME/.local/share/omf"
|
||||||
|
|
||||||
|
# Load Oh My Fish configuration.
|
||||||
|
source $OMF_PATH/init.fish
|
||||||
|
|
||||||
|
# variables
|
||||||
|
# set -x GOPATH=$HOME/dev/go
|
||||||
|
# set -x PATH=$PATH:/usr/local/dev/go/bin
|
||||||
|
# set -x PATH=$PATH:/home/chris/.config/polybar
|
||||||
|
set -x PATH {/bin,/usr/bin,/home/chris/.dotfiles,/home/chris/.emacs.d/bin}
|
||||||
|
set -x QT_QPA_PLATFORMTHEME "qt5ct"
|
||||||
|
set -x EDITOR "emacsclient -a emacs"
|
||||||
|
set -x TERM alacritty
|
||||||
|
|
||||||
|
# aliases
|
||||||
|
alias ls="lsd -a"
|
||||||
|
alias rfi="/home/chris/.dotfiles/rofi/launchers-git/launcher.sh"
|
33
fish/fish_variables
Normal file
33
fish/fish_variables
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
# This file contains fish universal variable definitions.
|
||||||
|
# VERSION: 3.0
|
||||||
|
SETUVAR THEME_EDEN_PROMPT_CHAR:\u00bb
|
||||||
|
SETUVAR __fish_initialized:3100
|
||||||
|
SETUVAR fish_color_autosuggestion:555\x1ebrblack
|
||||||
|
SETUVAR fish_color_cancel:\x2dr
|
||||||
|
SETUVAR fish_color_command:005fd7
|
||||||
|
SETUVAR fish_color_comment:990000
|
||||||
|
SETUVAR fish_color_cwd:green
|
||||||
|
SETUVAR fish_color_cwd_root:red
|
||||||
|
SETUVAR fish_color_end:009900
|
||||||
|
SETUVAR fish_color_error:ff0000
|
||||||
|
SETUVAR fish_color_escape:00a6b2
|
||||||
|
SETUVAR fish_color_history_current:\x2d\x2dbold
|
||||||
|
SETUVAR fish_color_host:normal
|
||||||
|
SETUVAR fish_color_host_remote:yellow
|
||||||
|
SETUVAR fish_color_match:\x2d\x2dbackground\x3dbrblue
|
||||||
|
SETUVAR fish_color_normal:normal
|
||||||
|
SETUVAR fish_color_operator:00a6b2
|
||||||
|
SETUVAR fish_color_param:00afff
|
||||||
|
SETUVAR fish_color_quote:999900
|
||||||
|
SETUVAR fish_color_redirection:00afff
|
||||||
|
SETUVAR fish_color_search_match:bryellow\x1e\x2d\x2dbackground\x3dbrblack
|
||||||
|
SETUVAR fish_color_selection:white\x1e\x2d\x2dbold\x1e\x2d\x2dbackground\x3dbrblack
|
||||||
|
SETUVAR fish_color_status:red
|
||||||
|
SETUVAR fish_color_user:brgreen
|
||||||
|
SETUVAR fish_color_valid_path:\x2d\x2dunderline
|
||||||
|
SETUVAR fish_greeting:\x1d
|
||||||
|
SETUVAR fish_key_bindings:fish_default_key_bindings
|
||||||
|
SETUVAR fish_pager_color_completion:\x1d
|
||||||
|
SETUVAR fish_pager_color_description:B3A06D\x1eyellow
|
||||||
|
SETUVAR fish_pager_color_prefix:white\x1e\x2d\x2dbold\x1e\x2d\x2dunderline
|
||||||
|
SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan
|
1
fish/functions/fish_prompt.fish
Symbolic link
1
fish/functions/fish_prompt.fish
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
/home/chris/.local/share/omf/themes/scorphish/fish_prompt.fish
|
|
@ -2,7 +2,7 @@
|
||||||
# Corners #
|
# Corners #
|
||||||
#################################
|
#################################
|
||||||
# requires: https://github.com/sdhand/compton
|
# requires: https://github.com/sdhand/compton
|
||||||
corner-radius = 15.0;
|
corner-radius = 11.0;
|
||||||
rounded-corners-exclude = [
|
rounded-corners-exclude = [
|
||||||
#"window_type = 'normal'",
|
#"window_type = 'normal'",
|
||||||
"class_g = 'awesome'",
|
"class_g = 'awesome'",
|
||||||
|
@ -40,11 +40,11 @@ shadow-opacity = .85
|
||||||
|
|
||||||
# The left offset for shadows, in pixels. (defaults to -15)
|
# The left offset for shadows, in pixels. (defaults to -15)
|
||||||
# shadow-offset-x = -15
|
# shadow-offset-x = -15
|
||||||
shadow-offset-x = 3;
|
shadow-offset-x = 0;
|
||||||
|
|
||||||
# The top offset for shadows, in pixels. (defaults to -15)
|
# The top offset for shadows, in pixels. (defaults to -15)
|
||||||
# shadow-offset-y = -15
|
# shadow-offset-y = -15
|
||||||
shadow-offset-y = 3;
|
shadow-offset-y = 0;
|
||||||
|
|
||||||
# Avoid drawing shadows on dock/panel windows. This option is deprecated,
|
# Avoid drawing shadows on dock/panel windows. This option is deprecated,
|
||||||
# you should use the *wintypes* option in your config file instead.
|
# you should use the *wintypes* option in your config file instead.
|
||||||
|
@ -239,7 +239,7 @@ blur: {
|
||||||
# requires: https://github.com/ibhagwan/picom
|
# requires: https://github.com/ibhagwan/picom
|
||||||
method = "dual_kawase";
|
method = "dual_kawase";
|
||||||
#method = "kernel";
|
#method = "kernel";
|
||||||
strength = 11;
|
strength = 10;
|
||||||
# deviation = 1.0;
|
# deviation = 1.0;
|
||||||
# kernel = "11x11gaussian";
|
# kernel = "11x11gaussian";
|
||||||
background = false;
|
background = false;
|
||||||
|
|
|
@ -5,13 +5,18 @@ set update.nag true
|
||||||
set update.nagwait 7
|
set update.nagwait 7
|
||||||
set update.lastnaggedversion 1.14.0
|
set update.lastnaggedversion 1.14.0
|
||||||
set update.checkintervalsecs 86400
|
set update.checkintervalsecs 86400
|
||||||
set theme base16-google-dark
|
set theme snazzy
|
||||||
set searchurls.gh https://github.com/search?utf8=✓&q=
|
set searchurls.gh https://github.com/search?utf8=✓&q=
|
||||||
set searchurls.y https://www.yewtu.be/search?q=
|
set searchurls.y https://www.yewtu.be/search?q=
|
||||||
|
set searchurls.aw https://wiki.archlinux.org/index.php?search=
|
||||||
|
set searchurls.qt https://doc.qt.io/qt-5/search-results.html?q=
|
||||||
|
set searchurls.mel https://melpa.org/#/?q=
|
||||||
|
set searchurls.fel https://felgo.com/search-results?q=
|
||||||
|
set searchurls.o https://www.office.com/search?auth=2&q=
|
||||||
set searchurls.wiki https://en.wikipedia.org/wiki/Special:Search/
|
set searchurls.wiki https://en.wikipedia.org/wiki/Special:Search/
|
||||||
set searchurls.g https://www.google.com/search?q=
|
set searchurls.g https://www.google.com/search?q=
|
||||||
set searchurls.d https://duckduckgo.com/?q=
|
set searchurls.d https://duckduckgo.com/?q=
|
||||||
set searchurls.ama https://www.amazon.com/s/ref=nb_sb_noss?url=search-alias%3Daps&field-keywords=
|
set searchurls.ama https://smile.amazon.com/s/ref=nb_sb_noss?url=search-alias%3Daps&field-keywords=
|
||||||
set searchurls.google https://www.google.com/search?q=
|
set searchurls.google https://www.google.com/search?q=
|
||||||
set searchurls.googlelucky https://www.google.com/search?btnI=I'm+Feeling+Lucky&q=
|
set searchurls.googlelucky https://www.google.com/search?btnI=I'm+Feeling+Lucky&q=
|
||||||
set searchurls.scholar https://scholar.google.com/scholar?q=
|
set searchurls.scholar https://scholar.google.com/scholar?q=
|
||||||
|
@ -21,7 +26,6 @@ set searchurls.duckduckgo https://duckduckgo.com/?q=
|
||||||
set searchurls.yahoo https://search.yahoo.com/search?p=
|
set searchurls.yahoo https://search.yahoo.com/search?p=
|
||||||
set searchurls.twitter https://twitter.com/search?q=
|
set searchurls.twitter https://twitter.com/search?q=
|
||||||
set searchurls.wikipedia https://en.wikipedia.org/wiki/Special:Search/
|
set searchurls.wikipedia https://en.wikipedia.org/wiki/Special:Search/
|
||||||
set searchurls.youtube https://www.youtube.com/results?search_query=
|
|
||||||
set searchurls.amazon https://www.amazon.com/s/ref=nb_sb_noss?url=search-alias%3Daps&field-keywords=
|
set searchurls.amazon https://www.amazon.com/s/ref=nb_sb_noss?url=search-alias%3Daps&field-keywords=
|
||||||
set searchurls.amazonuk https://www.amazon.co.uk/s/ref=nb_sb_noss?url=search-alias%3Daps&field-keywords=
|
set searchurls.amazonuk https://www.amazon.co.uk/s/ref=nb_sb_noss?url=search-alias%3Daps&field-keywords=
|
||||||
set searchurls.startpage https://startpage.com/do/search?language=english&cat=web&query=
|
set searchurls.startpage https://startpage.com/do/search?language=english&cat=web&query=
|
||||||
|
@ -35,3 +39,7 @@ set searchurls.qwant https://www.qwant.com/?q=
|
||||||
|
|
||||||
" For syntax highlighting see https://github.com/tridactyl/vim-tridactyl
|
" For syntax highlighting see https://github.com/tridactyl/vim-tridactyl
|
||||||
" vim: set filetype=tridactyl
|
" vim: set filetype=tridactyl
|
||||||
|
|
||||||
|
|
||||||
|
bind v hint -W mpvsafe
|
||||||
|
" command oc js -p tri.excmds.shellescape(JS_ARG).then(url => tri.excmds.exclaim_quiet('org-capture ' + url))
|
||||||
|
|
Loading…
Reference in a new issue