Compare commits
75 Commits
b6aa9b865d
..
master
| Author | SHA1 | Date | |
|---|---|---|---|
| b22e381660 | |||
| 232e6a03c5 | |||
| 8936d060d3 | |||
| add9175859 | |||
| 6a6a579912 | |||
| c2a1117e55 | |||
| 25603469ae | |||
| db1807b6e2 | |||
| 7b6bb320ac | |||
| 154156f965 | |||
| 8e1c81c55c | |||
| 3bf01d1b04 | |||
| d986312dd4 | |||
| 5aac8f0d8a | |||
| 507029e62a | |||
| 34c82f1820 | |||
| 35123a80dc | |||
| eac7a059f8 | |||
| f1bb185f8a | |||
| facf306eb2 | |||
| c90ba3fce4 | |||
| 17a8e60261 | |||
| 5cef0e4160 | |||
| b34ae531ea | |||
| dcaf91e0a8 | |||
| 2293f28643 | |||
| e77eb7ac26 | |||
| f07b18bdef | |||
| cded3e7d63 | |||
| 2607923971 | |||
| 3a1e45da46 | |||
| 9addb10e26 | |||
| 82898eacff | |||
| b73008c860 | |||
| b1f95df1d0 | |||
| 97641b0080 | |||
| e374ba9757 | |||
| 77a935b261 | |||
| 46a77b03f7 | |||
| bf5a9ed0bc | |||
| 18a277e8b1 | |||
| 53a8ba106a | |||
| a6fc89a3bc | |||
| a66af122d1 | |||
| 2bfd1d8ec0 | |||
| 9a194a8880 | |||
| 013b415d7b | |||
| 968e0b08c1 | |||
| 91524c4699 | |||
| 9f42abfe4d | |||
| 0186246b1b | |||
| 178d65bd38 | |||
| a8d855d2f7 | |||
| 7951f7f2fe | |||
| b9b4c59e5a | |||
| 4b64cb7b8e | |||
| b5ed69f295 | |||
| d733d45896 | |||
| 76467758bf | |||
| a17d458611 | |||
| ecf940fb84 | |||
| baaab499da | |||
| c13d61ef48 | |||
| d98ec296c9 | |||
| eb8790e3b9 | |||
| fb8bfa45fb | |||
| 5cef8f61ea | |||
| fe463ffccf | |||
| 683d7d4a9a | |||
| e977d16e75 | |||
| e74b9f3249 | |||
| 3654bf6685 | |||
| 1b6d306e94 | |||
| 481ad32658 | |||
| ca2a78c8e6 |
|
After Width: | Height: | Size: 3.7 MiB |
|
After Width: | Height: | Size: 4.2 MiB |
|
After Width: | Height: | Size: 2.4 MiB |
|
After Width: | Height: | Size: 3.9 MiB |
|
After Width: | Height: | Size: 3.0 MiB |
|
After Width: | Height: | Size: 3.0 MiB |
|
After Width: | Height: | Size: 3.4 MiB |
|
Before Width: | Height: | Size: 341 KiB |
|
Before Width: | Height: | Size: 3.0 MiB |
|
After Width: | Height: | Size: 4.0 MiB |
|
After Width: | Height: | Size: 3.7 MiB |
|
After Width: | Height: | Size: 3.1 MiB |
|
After Width: | Height: | Size: 3.5 MiB |
@@ -0,0 +1,6 @@
|
|||||||
|
if [ -d "$HOME/.config/autostart" ]; then
|
||||||
|
for file in $HOME/.config/autostart/*; do
|
||||||
|
command=$(cat $file | grep '^Exec=' | head -n 1 | cut -d '=' -f 2-)
|
||||||
|
$command&
|
||||||
|
done
|
||||||
|
fi
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
return {
|
return {
|
||||||
browser="firefox",
|
browser="firefox",
|
||||||
terminal="alacritty",
|
terminal="new-terminal",
|
||||||
email="thomas@forgione.fr",
|
email="thomas@tforgione.fr",
|
||||||
|
email2="thomas@polymny.studio",
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
local os = require('os')
|
local os = require('os')
|
||||||
local math = require('math')
|
local math = require('math')
|
||||||
|
math.randomseed(os.time())
|
||||||
|
|
||||||
-- Standard awesome library
|
-- Standard awesome library
|
||||||
local gears = require("gears")
|
local gears = require("gears")
|
||||||
@@ -9,6 +10,7 @@ require("awful.autofocus")
|
|||||||
local wibox = require("wibox")
|
local wibox = require("wibox")
|
||||||
-- Theme handling library
|
-- Theme handling library
|
||||||
local beautiful = require("beautiful")
|
local beautiful = require("beautiful")
|
||||||
|
beautiful.gap_single_client = false
|
||||||
-- Notification library
|
-- Notification library
|
||||||
local naughty = require("naughty")
|
local naughty = require("naughty")
|
||||||
local menubar = require("menubar")
|
local menubar = require("menubar")
|
||||||
@@ -36,6 +38,10 @@ function file_exists(name)
|
|||||||
if f~=nil then io.close(f) return true else return false end
|
if f~=nil then io.close(f) return true else return false end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if file_exists(home..'/.config/awesome/autostart.sh') then
|
||||||
|
os.execute(home .. '/.config/awesome/autostart.sh &')
|
||||||
|
end
|
||||||
|
|
||||||
if file_exists(home..'/.xsession') then
|
if file_exists(home..'/.xsession') then
|
||||||
os.execute(home .. '/.xsession &')
|
os.execute(home .. '/.xsession &')
|
||||||
end
|
end
|
||||||
@@ -106,12 +112,12 @@ modkey = "Mod4"
|
|||||||
|
|
||||||
-- Table of layouts to cover with awful.layout.inc, order matters.
|
-- Table of layouts to cover with awful.layout.inc, order matters.
|
||||||
awful.layout.layouts = {
|
awful.layout.layouts = {
|
||||||
|
awful.layout.suit.fair,
|
||||||
|
awful.layout.suit.fair.horizontal,
|
||||||
awful.layout.suit.tile.left,
|
awful.layout.suit.tile.left,
|
||||||
awful.layout.suit.tile,
|
awful.layout.suit.tile,
|
||||||
awful.layout.suit.tile.bottom,
|
awful.layout.suit.tile.bottom,
|
||||||
awful.layout.suit.tile.top,
|
awful.layout.suit.tile.top,
|
||||||
awful.layout.suit.fair,
|
|
||||||
awful.layout.suit.fair.horizontal,
|
|
||||||
awful.layout.suit.spiral,
|
awful.layout.suit.spiral,
|
||||||
awful.layout.suit.spiral.dwindle,
|
awful.layout.suit.spiral.dwindle,
|
||||||
awful.layout.suit.max,
|
awful.layout.suit.max,
|
||||||
@@ -237,7 +243,7 @@ awful.screen.connect_for_each_screen(function(s)
|
|||||||
awful.tag({ "1", "2", "3", "4", "5", "6", "7", "8", "9", "0" }, s, awful.layout.layouts[1])
|
awful.tag({ "1", "2", "3", "4", "5", "6", "7", "8", "9", "0" }, s, awful.layout.layouts[1])
|
||||||
|
|
||||||
-- Create a promptbox for each screen
|
-- Create a promptbox for each screen
|
||||||
s.mypromptbox = awful.widget.prompt()
|
-- s.mypromptbox = awful.widget.prompt()
|
||||||
-- Create an imagebox widget which will contains an icon indicating which layout we're using.
|
-- Create an imagebox widget which will contains an icon indicating which layout we're using.
|
||||||
-- We need one layoutbox per screen.
|
-- We need one layoutbox per screen.
|
||||||
s.mylayoutbox = awful.widget.layoutbox(s)
|
s.mylayoutbox = awful.widget.layoutbox(s)
|
||||||
@@ -253,19 +259,30 @@ awful.screen.connect_for_each_screen(function(s)
|
|||||||
s.mytasklist = awful.widget.tasklist(s, awful.widget.tasklist.filter.currenttags, tasklist_buttons)
|
s.mytasklist = awful.widget.tasklist(s, awful.widget.tasklist.filter.currenttags, tasklist_buttons)
|
||||||
|
|
||||||
-- Create the wibox
|
-- Create the wibox
|
||||||
s.mywibox = awful.wibar({ position = "top", screen = s, height = 20 })
|
local wibar_height = 15
|
||||||
|
if s == screen.primary then
|
||||||
|
local wibar_width = 512
|
||||||
|
local wibar_height = 15
|
||||||
|
s.mywibox = wibox({
|
||||||
|
x = s.geometry.x + s.geometry.width - wibar_width,
|
||||||
|
y = s.geometry.y + s.geometry.height - wibar_height,
|
||||||
|
width = wibar_width,
|
||||||
|
height = wibar_height,
|
||||||
|
expand = true,
|
||||||
|
visible = true,
|
||||||
|
ontop = true,
|
||||||
|
screen = s
|
||||||
|
})
|
||||||
|
|
||||||
s.textclock = awful.widget.textclock(" %a %d %b %H:%M ")
|
s.textclock = awful.widget.textclock(" %a %d %b %H:%M ")
|
||||||
calendar({}):attach(s.textclock)
|
calendar({position = "bottom_right"}):attach(s.textclock)
|
||||||
|
|
||||||
-- Add widgets to the wibox
|
|
||||||
s.mywibox:setup {
|
s.mywibox:setup {
|
||||||
layout = wibox.layout.align.horizontal,
|
layout = wibox.layout.align.horizontal,
|
||||||
{ -- Left widgets
|
{ -- Left widgets
|
||||||
layout = wibox.layout.fixed.horizontal,
|
layout = wibox.layout.fixed.horizontal,
|
||||||
mylauncher,
|
-- mylauncher,
|
||||||
s.mytaglist,
|
s.mytaglist,
|
||||||
s.mypromptbox,
|
|
||||||
},
|
},
|
||||||
s.mytasklist, -- Middle widget
|
s.mytasklist, -- Middle widget
|
||||||
{ -- Right widgets
|
{ -- Right widgets
|
||||||
@@ -274,23 +291,81 @@ awful.screen.connect_for_each_screen(function(s)
|
|||||||
-- email_widget.icon,
|
-- email_widget.icon,
|
||||||
-- delimiter2,
|
-- delimiter2,
|
||||||
-- email_widget.widget,
|
-- email_widget.widget,
|
||||||
delimiter,
|
-- delimiter,
|
||||||
ram_widget,
|
ram_widget,
|
||||||
delimiter2,
|
-- delimiter2,
|
||||||
cpu_widget,
|
cpu_widget,
|
||||||
delimiter,
|
-- delimiter,
|
||||||
volume_widget,
|
volume_widget,
|
||||||
delimiter2,
|
-- delimiter2,
|
||||||
volume_bar_widget,
|
-- volume_bar_widget,
|
||||||
delimiter,
|
-- delimiter,
|
||||||
battery_widget,
|
battery_widget,
|
||||||
delimiter,
|
-- delimiter,
|
||||||
mykeyboardlayout,
|
-- mykeyboardlayout,
|
||||||
wibox.widget.systray(),
|
wibox.widget.systray(),
|
||||||
s.textclock,
|
s.textclock,
|
||||||
s.mylayoutbox,
|
s.mylayoutbox,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
-- Light wibox for secondary screen
|
||||||
|
local wibar_width = 200
|
||||||
|
s.mywibox = wibox({
|
||||||
|
x = s.geometry.x + s.geometry.width - wibar_width,
|
||||||
|
y = s.geometry.y + s.geometry.height - wibar_height,
|
||||||
|
width = wibar_width,
|
||||||
|
height = wibar_height,
|
||||||
|
expand = true,
|
||||||
|
visible = true,
|
||||||
|
ontop = true,
|
||||||
|
screen = s
|
||||||
|
})
|
||||||
|
s.mywibox:setup {
|
||||||
|
layout = wibox.layout.align.horizontal,
|
||||||
|
{ -- Left widgets
|
||||||
|
layout = wibox.layout.fixed.horizontal,
|
||||||
|
-- mylauncher,
|
||||||
|
s.mytaglist,
|
||||||
|
},
|
||||||
|
s.mytasklist, -- Middle widget
|
||||||
|
{ -- Right widgets
|
||||||
|
layout = wibox.layout.fixed.horizontal,
|
||||||
|
s.mylayoutbox,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
end
|
||||||
|
|
||||||
|
-- Auto hide wibar
|
||||||
|
-- s.detect = gears.timer {
|
||||||
|
-- timeout = 0.35,
|
||||||
|
-- callback = function ()
|
||||||
|
-- if (mouse.screen ~= s) or
|
||||||
|
-- (mouse.coords().y < s.geometry.y + s.geometry.height - wibar_height)
|
||||||
|
-- then
|
||||||
|
-- s.mywibox.visible = false
|
||||||
|
-- s.detect:stop()
|
||||||
|
-- end
|
||||||
|
-- end
|
||||||
|
-- }
|
||||||
|
--
|
||||||
|
-- s.enable_wibar = function ()
|
||||||
|
-- s.mywibox.visible = true
|
||||||
|
-- if not s.detect.started then
|
||||||
|
-- s.detect:start()
|
||||||
|
-- end
|
||||||
|
-- end
|
||||||
|
--
|
||||||
|
-- s.activation_zone = wibox ({
|
||||||
|
-- x = s.geometry.x, y = s.geometry.y + s.geometry.height - 1,
|
||||||
|
-- opacity = 0.0, width = s.geometry.width, height = 1,
|
||||||
|
-- screen = s, input_passthrough = false, visible = true,
|
||||||
|
-- ontop = true, type = "dock",
|
||||||
|
-- })
|
||||||
|
--
|
||||||
|
-- s.activation_zone:connect_signal("mouse::enter", function ()
|
||||||
|
-- s.enable_wibar()
|
||||||
|
-- end)
|
||||||
|
|
||||||
-- update_background_widget(s)
|
-- update_background_widget(s)
|
||||||
|
|
||||||
@@ -353,7 +428,7 @@ globalkeys = awful.util.table.join(
|
|||||||
{description = "go back", group = "client"}),
|
{description = "go back", group = "client"}),
|
||||||
-- Standard program
|
-- Standard program
|
||||||
awful.key({ modkey, }, "Return", function ()
|
awful.key({ modkey, }, "Return", function ()
|
||||||
awful.spawn(terminal)
|
awful.util.spawn_with_shell(terminal)
|
||||||
naughty.notify({title = "Starting " .. options.terminal})
|
naughty.notify({title = "Starting " .. options.terminal})
|
||||||
end,
|
end,
|
||||||
{description = "open a terminal", group = "launcher"}),
|
{description = "open a terminal", group = "launcher"}),
|
||||||
@@ -391,42 +466,41 @@ globalkeys = awful.util.table.join(
|
|||||||
{description = "restore minimized", group = "client"}),
|
{description = "restore minimized", group = "client"}),
|
||||||
|
|
||||||
-- Prompt
|
-- Prompt
|
||||||
awful.key({ modkey }, "r", function () awful.screen.focused().mypromptbox:run() end,
|
-- awful.key({ modkey }, "r", function () awful.screen.focused().mypromptbox:run() end,
|
||||||
{description = "run prompt", group = "launcher"}),
|
-- {description = "run prompt", group = "launcher"}),
|
||||||
|
|
||||||
awful.key({ modkey }, "x",
|
awful.key({ modkey }, "r", function () awful.spawn('rofi -show drun -theme ~/.config/rofi/theme.rasi') end,
|
||||||
function ()
|
{description = "run prompt", group = "launcher"}),
|
||||||
awful.prompt.run {
|
-- awful.key({ modkey }, "x",
|
||||||
prompt = "Run Lua code: ",
|
-- function ()
|
||||||
textbox = awful.screen.focused().mypromptbox.widget,
|
-- awful.prompt.run {
|
||||||
exe_callback = awful.util.eval,
|
-- prompt = "Run Lua code: ",
|
||||||
history_path = awful.util.get_cache_dir() .. "/history_eval"
|
-- textbox = awful.screen.focused().mypromptbox.widget,
|
||||||
}
|
-- exe_callback = awful.util.eval,
|
||||||
end,
|
-- history_path = awful.util.get_cache_dir() .. "/history_eval"
|
||||||
{description = "lua execute prompt", group = "awesome"}),
|
-- }
|
||||||
-- Menubar
|
-- end,
|
||||||
awful.key({ modkey }, "p", function() menubar.show() end,
|
-- {description = "lua execute prompt", group = "awesome"}),
|
||||||
{description = "show the menubar", group = "launcher"}),
|
|
||||||
|
|
||||||
-- Custom shortcuts
|
-- Custom shortcuts
|
||||||
awful.key({ }, "XF86AudioRaiseVolume", function()
|
awful.key({ }, "XF86AudioRaiseVolume", function()
|
||||||
awful.util.spawn("amixer set Master 3%+", false)
|
awful.util.spawn("pactl set-sink-volume 0 +3%", false)
|
||||||
end, {description = "increase the volume by 3%", group="Fn Keys"}),
|
end, {description = "increase the volume by 3%", group="Fn Keys"}),
|
||||||
|
|
||||||
awful.key({ }, "XF86AudioLowerVolume", function()
|
awful.key({ }, "XF86AudioLowerVolume", function()
|
||||||
awful.util.spawn("amixer set Master 3%-", false)
|
awful.util.spawn("pactl set-sink-volume 0 -3%", false)
|
||||||
end, {description = "decrease the volume by 3%", group="Fn Keys"}),
|
end, {description = "decrease the volume by 3%", group="Fn Keys"}),
|
||||||
|
|
||||||
awful.key({modkey}, "Up", function()
|
awful.key({modkey}, "Up", function()
|
||||||
awful.util.spawn("amixer sset Master 3%+", false)
|
awful.util.spawn("pactl set-sink-volume 0 +3%", false)
|
||||||
end, {description = "increase the volume by 3%", group="Sound controls"}),
|
end, {description = "increase the volume by 3%", group="Sound controls"}),
|
||||||
|
|
||||||
awful.key({modkey}, "Down", function()
|
awful.key({modkey}, "Down", function()
|
||||||
awful.util.spawn("amixer sset Master 3%-", false)
|
awful.util.spawn("pactl set-sink-volume 0 -3%", false)
|
||||||
end, {description = "decrease the volume by 3%", group="Sound controls"}),
|
end, {description = "decrease the volume by 3%", group="Sound controls"}),
|
||||||
|
|
||||||
awful.key({ }, "XF86AudioMute", function()
|
awful.key({ }, "XF86AudioMute", function()
|
||||||
awful.util.spawn("amixer set Master toggle", false)
|
awful.util.spawn("pactl set-sink-mute 0 toggle", false)
|
||||||
end, {description = "mute sound", group="Fn Keys"}),
|
end, {description = "mute sound", group="Fn Keys"}),
|
||||||
|
|
||||||
awful.key({ }, "XF86MonBrightnessDown", function ()
|
awful.key({ }, "XF86MonBrightnessDown", function ()
|
||||||
@@ -437,6 +511,18 @@ globalkeys = awful.util.table.join(
|
|||||||
awful.util.spawn("xbacklight -inc 2")
|
awful.util.spawn("xbacklight -inc 2")
|
||||||
end, {description = "increase brightness", group="Fn Keys"}),
|
end, {description = "increase brightness", group="Fn Keys"}),
|
||||||
|
|
||||||
|
awful.key({ }, "XF86AudioPlay", function ()
|
||||||
|
awful.util.spawn("playerctl -a play-pause")
|
||||||
|
end, {description = "pause or resume music", group="Media Keys"}),
|
||||||
|
|
||||||
|
awful.key({ }, "XF86AudioStop", function ()
|
||||||
|
awful.util.spawn("playerctl -a stop")
|
||||||
|
end, {description = "stop music", group="Media Keys"}),
|
||||||
|
|
||||||
|
awful.key({ }, "XF86AudioNext", function ()
|
||||||
|
awful.util.spawn("playerctl -a next")
|
||||||
|
end, {description = "next music", group="Media Keys"}),
|
||||||
|
|
||||||
awful.key({modkey}, "#82", function ()
|
awful.key({modkey}, "#82", function ()
|
||||||
awful.util.spawn("xbacklight -dec 2")
|
awful.util.spawn("xbacklight -dec 2")
|
||||||
end, {description = "decrease brightness", group="Brightness controls"}),
|
end, {description = "decrease brightness", group="Brightness controls"}),
|
||||||
@@ -446,7 +532,7 @@ globalkeys = awful.util.table.join(
|
|||||||
end, {description = "increase brightness", group="Brightness controls"}),
|
end, {description = "increase brightness", group="Brightness controls"}),
|
||||||
|
|
||||||
awful.key({ }, "XF86PowerOff", function ()
|
awful.key({ }, "XF86PowerOff", function ()
|
||||||
awful.util.spawn("gksudo shutdown now")
|
awful.util.spawn(home .. "/.config/dotfiles/bin-extra/shutdown now")
|
||||||
end, {description = "Shutdown", group="Fn Keys"}),
|
end, {description = "Shutdown", group="Fn Keys"}),
|
||||||
|
|
||||||
awful.key({ }, "XF86AudioPlay", function()
|
awful.key({ }, "XF86AudioPlay", function()
|
||||||
@@ -466,15 +552,11 @@ globalkeys = awful.util.table.join(
|
|||||||
end, {description = "skip to the previous music", group="Fn Keys"}),
|
end, {description = "skip to the previous music", group="Fn Keys"}),
|
||||||
|
|
||||||
awful.key({ }, "Print", function ()
|
awful.key({ }, "Print", function ()
|
||||||
awful.spawn.easy_async_with_shell('flameshot gui', function() end)
|
awful.spawn.easy_async('flameshot gui', function() end)
|
||||||
end, {description = "capture the screen", group="Fn Keys"}),
|
end, {description = "capture the screen", group="Fn Keys"}),
|
||||||
|
|
||||||
awful.key({"Shift"}, "Print", function ()
|
awful.key({"Shift"}, "Print", function ()
|
||||||
awful.spawn.easy_async_with_shell('flameshot gui -d 1000', function() end)
|
awful.spawn.easy_async('flameshot gui -d 1000', function() end)
|
||||||
end, {description = "capture the screen", group="Fn Keys"}),
|
|
||||||
|
|
||||||
awful.key({"Ctrl"}, "Print", function ()
|
|
||||||
awful.spawn.easy_async_with_shell('gnome-screenshot -f "`echo -n ' .. home .. '"/Images/Captures/Capture du " && date "+%Y-%m-%d %H:%M:%S"`.png"', function() end)
|
|
||||||
end, {description = "capture the screen", group="Fn Keys"}),
|
end, {description = "capture the screen", group="Fn Keys"}),
|
||||||
|
|
||||||
awful.key({modkey}, "a", function ()
|
awful.key({modkey}, "a", function ()
|
||||||
@@ -483,77 +565,33 @@ globalkeys = awful.util.table.join(
|
|||||||
end, {description="start the web browser", group="shortcuts"}),
|
end, {description="start the web browser", group="shortcuts"}),
|
||||||
|
|
||||||
awful.key({modkey}, "z", function()
|
awful.key({modkey}, "z", function()
|
||||||
awful.spawn.easy_async(options.browser .. " https://web.telegram.org https://discordapp.com/channels/@me https://polymnygroupe.slack.com https://nuage.polymny.studio/nextcloud/index.php/apps/calendar/", function() end)
|
awful.spawn.easy_async(options.browser .. " http://jdb.localhost/todo.html https://web.telegram.org https://web.whatsapp.com/ https://discord.com/app https://nuage.polymny.studio/index.php/apps/calendar/ https://mail.infomaniak.com/2 https://mail.infomaniak.com/0", function() end)
|
||||||
naughty.notify({title = "Starting social media"})
|
naughty.notify({title = "Starting social media"})
|
||||||
end, {description="Open social media", group="shortcuts"}),
|
end, {description="Open social media", group="shortcuts"}),
|
||||||
|
|
||||||
awful.key({modkey}, "l", function()
|
awful.key({modkey}, "l", function()
|
||||||
awful.spawn.easy_async_with_shell('sleep 1 && xset dpms force off && slock', function() end)
|
awful.spawn.easy_async_with_shell('sleep 1; xset dpms force off; slock', function() end)
|
||||||
end, { description="Locks the screen", group="screen control"}),
|
end, { description="Locks the screen", group="screen control"}),
|
||||||
|
|
||||||
awful.key({modkey, "Shift"}, "l", function()
|
awful.key({modkey, "Shift"}, "l", function()
|
||||||
awful.spawn.easy_async_with_shell('sleep 1 && xset dpms force off', function() end)
|
awful.spawn.easy_async_with_shell('sleep 1; xset dpms force off', function() end)
|
||||||
end, { description="Turns off the screen", group="screen control"}),
|
end, { description="Turns off the screen", group="screen control"}),
|
||||||
|
|
||||||
awful.key({modkey, "Shift"}, "Tab", function()
|
awful.key({modkey, "Shift"}, "Tab", function()
|
||||||
awful.spawn.easy_async('xdotool key Caps_Lock', function() end)
|
awful.spawn.easy_async('xdotool key Caps_Lock', function() end)
|
||||||
end, {description="switch the caps lock", group="screen control"}),
|
end, {description="switch the caps lock", group="screen control"}),
|
||||||
|
|
||||||
awful.key({modkey}, "#83", function()
|
|
||||||
awful.spawn.easy_async("tvrs enable left", function() end)
|
|
||||||
end, {description="Sets the second screen to the left of the main screen", group="screen control"}),
|
|
||||||
|
|
||||||
awful.key({modkey, "Ctrl"}, "Left", function()
|
|
||||||
awful.spawn.easy_async("tvrs enable left", function() end)
|
|
||||||
end, {description="Sets the second screen to the left of the main screen", group="screen control"}),
|
|
||||||
|
|
||||||
awful.key({modkey}, "#84", function()
|
|
||||||
awful.spawn.easy_async("tvrs duplicate", function() end)
|
|
||||||
end, {description="Sets the second screen to copy the main screen", group="screen control"}),
|
|
||||||
|
|
||||||
awful.key({modkey, "Ctrl"}, "Return", function()
|
|
||||||
awful.spawn.easy_async("tvrs duplicate", function() end)
|
|
||||||
end, {description="Sets the second screen to copy the main screen", group="screen control"}),
|
|
||||||
|
|
||||||
awful.key({modkey}, "#85", function()
|
|
||||||
awful.spawn.easy_async("tvrs enable right", function() end)
|
|
||||||
end, {description="Sets the second screen to the right of the main screen", group="screen control"}),
|
|
||||||
|
|
||||||
awful.key({modkey, "Ctrl"}, "Right", function()
|
|
||||||
awful.spawn.easy_async("tvrs enable right", function() end)
|
|
||||||
end, {description="Sets the second screen to the right of the main screen", group="screen control"}),
|
|
||||||
|
|
||||||
awful.key({modkey}, "#80", function()
|
|
||||||
awful.spawn.easy_async("tvrs enable above", function() end)
|
|
||||||
end, {description="Sets the second screen above the main screen", group="screen control"}),
|
|
||||||
|
|
||||||
awful.key({modkey, "Ctrl"}, "Up", function()
|
|
||||||
awful.spawn.easy_async("tvrs enable above", function() end)
|
|
||||||
end, {description="Sets the second screen above the main screen", group="screen control"}),
|
|
||||||
|
|
||||||
awful.key({modkey}, "#88", function()
|
awful.key({modkey}, "#88", function()
|
||||||
awful.spawn.easy_async("tvrs enable below", function() end)
|
awful.spawn.easy_async("x b", function() end)
|
||||||
end, {description="Sets the second screen below the main screen", group="screen control"}),
|
end, {description="Sets the two screens view", group="screen control"}),
|
||||||
|
|
||||||
awful.key({modkey, "Ctrl"}, "Down", function()
|
awful.key({modkey}, "#87", function()
|
||||||
awful.spawn.easy_async("tvrs enable below", function() end)
|
awful.spawn.easy_async("x d", function() end)
|
||||||
end, {description="Sets the second screen below the main screen", group="screen control"}),
|
end, {description="Default view", group="screen control"}),
|
||||||
|
|
||||||
awful.key({modkey}, "#90", function()
|
awful.key({modkey, "Shift"}, "#87", function()
|
||||||
awful.spawn.easy_async("tvrs disable", function() end)
|
awful.spawn.easy_async("x s", function() end)
|
||||||
end, {description="Disable the second screen", group="screen control"}),
|
end, {description="Inverse of the default view", group="screen control"}),
|
||||||
|
|
||||||
awful.key({modkey, "Ctrl"}, "#22", function()
|
|
||||||
awful.spawn.easy_async("tvrs disable", function() end)
|
|
||||||
end, {description="Disable the second screen", group="screen control"}),
|
|
||||||
|
|
||||||
awful.key({modkey, "Shift"}, "#90", function()
|
|
||||||
awful.spawn.easy_async("tvrs only-secondary", function() end)
|
|
||||||
end, {description="Disable the primary screen, using only the second", group="screen control"}),
|
|
||||||
|
|
||||||
awful.key({modkey, "Ctrl", "Shift"}, "#22", function()
|
|
||||||
awful.spawn.easy_async("tvrs only-secondary", function() end)
|
|
||||||
end, {description="Disable the primary screen, using only the second", group="screen control"}),
|
|
||||||
|
|
||||||
awful.key({modkey}, "d", function()
|
awful.key({modkey}, "d", function()
|
||||||
if naughty_suspended then
|
if naughty_suspended then
|
||||||
@@ -567,20 +605,39 @@ globalkeys = awful.util.table.join(
|
|||||||
|
|
||||||
awful.key({modkey, "Shift"}, "m", function()
|
awful.key({modkey, "Shift"}, "m", function()
|
||||||
awful.spawn.easy_async('sleep 0.5', function()
|
awful.spawn.easy_async('sleep 0.5', function()
|
||||||
for i = 1, #options.email do
|
os.execute('xdotool type --clearmodifiers ' .. options.email)
|
||||||
os.execute('xdotool type --clearmodifiers ' .. options.email:sub(i,i))
|
|
||||||
end
|
|
||||||
end)
|
end)
|
||||||
end, {description="Automatically enters the key to type your email", group="shortcuts"}),
|
end, {description="Automatically enters the key to type your email", group="shortcuts"}),
|
||||||
|
|
||||||
|
awful.key({modkey, "Shift"}, "ù", function()
|
||||||
|
awful.spawn.easy_async('sleep 0.5', function()
|
||||||
|
os.execute('xdotool type --clearmodifiers ' .. options.email2)
|
||||||
|
end)
|
||||||
|
end, {description="Automatically enters the key to type your secondary email", group="shortcuts"}),
|
||||||
|
|
||||||
awful.key({modkey}, "q", function()
|
awful.key({modkey}, "q", function()
|
||||||
awful.spawn.easy_async("mailspring", function() end)
|
awful.spawn.easy_async("mailspring --password-store=gnome-libsecret", function() end)
|
||||||
end, {description="Opens mailspring", group="shortcuts"}),
|
end, {description="Opens mailspring", group="shortcuts"}),
|
||||||
|
|
||||||
awful.key({modkey}, "e", function()
|
awful.key({modkey}, "e", function()
|
||||||
awful.spawn.easy_async("emojinput", function() end)
|
awful.spawn.easy_async("firefox ext+container:name=Yuzzit&url=https://yip.atlassian.net/ ext+container:name=Yuzzit&url=https://app.slack.com/client/T03UFFGJK/D07KS0S1LDT ext+container:name=Yuzzit&url=https://app.gather.town/app/bZRkf3gh7MIximOa/ytopenspace", function() end)
|
||||||
end, {description="Starts emojinput", group="shortcuts"})
|
end, {description="Starts yuzzit", group="shortcuts"}),
|
||||||
|
|
||||||
|
awful.key({modkey}, ",", function()
|
||||||
|
awful.spawn.easy_async("firefox ext+container:name=Yuzzit&url=https://duckduckgo.com", function() end)
|
||||||
|
end, {description="Starts yuzzit empty window", group="shortcuts"}),
|
||||||
|
|
||||||
|
awful.key({ modkey }, "p", function()
|
||||||
|
awful.spawn.easy_async("pavucontrol", function(e) end)
|
||||||
|
end, {description = "starts pavucontrol", group = "shortcuts"}),
|
||||||
|
|
||||||
|
awful.key({ modkey }, "b", function()
|
||||||
|
awful.spawn.easy_async("blueberry", function(e) end)
|
||||||
|
end, {description = "starts blueberry", group = "shortcuts"}),
|
||||||
|
|
||||||
|
awful.key({ modkey }, "c", function()
|
||||||
|
awful.spawn.easy_async("alacritty -e numbat", function(e) end)
|
||||||
|
end, {description = "starts numbat", group = "shortcuts"})
|
||||||
)
|
)
|
||||||
|
|
||||||
clientkeys = awful.util.table.join(
|
clientkeys = awful.util.table.join(
|
||||||
@@ -733,7 +790,7 @@ awful.rules.rules = {
|
|||||||
client.connect_signal("manage", function (c)
|
client.connect_signal("manage", function (c)
|
||||||
-- Set the windows at the slave,
|
-- Set the windows at the slave,
|
||||||
-- i.e. put it at the end of others instead of setting it master.
|
-- 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 not awesome.startup then awful.client.setslave(c) end
|
||||||
|
|
||||||
if awesome.startup and
|
if awesome.startup and
|
||||||
not c.size_hints.user_position
|
not c.size_hints.user_position
|
||||||
@@ -796,7 +853,33 @@ end)
|
|||||||
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)
|
||||||
|
|
||||||
awful.screen.set_auto_dpi_enabled(true)
|
-- No borders when rearranging only 1 non-floating or maximized client
|
||||||
|
screen.connect_signal("arrange", function (s)
|
||||||
|
local only_one = #s.tiled_clients == 1
|
||||||
|
for _, c in pairs(s.clients) do
|
||||||
|
if only_one and not c.floating or c.maximized then
|
||||||
|
c.border_width = 0
|
||||||
|
else
|
||||||
|
c.border_width = beautiful.border_width -- your border width
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end)
|
||||||
|
|
||||||
|
-- Make wibar not on top when fullscreen clients
|
||||||
|
function toggle_wibar_ontop(c)
|
||||||
|
if c.fullscreen then
|
||||||
|
c.screen.mywibox.ontop = false
|
||||||
|
else
|
||||||
|
c.screen.mywibox.ontop = true
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
client.connect_signal("manage", toggle_wibar_ontop)
|
||||||
|
client.connect_signal("focus", toggle_wibar_ontop)
|
||||||
|
client.connect_signal("property::floating", toggle_wibar_ontop)
|
||||||
|
client.connect_signal("property::fullscreen", toggle_wibar_ontop)
|
||||||
|
|
||||||
|
-- awful.screen.set_auto_dpi_enabled(true)
|
||||||
|
|
||||||
-- load the widget code
|
-- load the widget code
|
||||||
|
|
||||||
|
|||||||
@@ -6,10 +6,10 @@ local theme = {}
|
|||||||
|
|
||||||
theme.font = "sans 8"
|
theme.font = "sans 8"
|
||||||
|
|
||||||
theme.bg_normal = "#22222200"
|
theme.bg_normal = "#22222299"
|
||||||
theme.bg_focus = "#535d6c00"
|
theme.bg_focus = "#535d6c99"
|
||||||
theme.bg_urgent = "#ff000000"
|
theme.bg_urgent = "#ff000099"
|
||||||
theme.bg_minimize = "#44444400"
|
theme.bg_minimize = "#44444499"
|
||||||
theme.bg_systray = theme.bg_normal
|
theme.bg_systray = theme.bg_normal
|
||||||
|
|
||||||
theme.fg_normal = "#cccccc"
|
theme.fg_normal = "#cccccc"
|
||||||
@@ -28,6 +28,7 @@ theme.border_marked = "#91231c"
|
|||||||
-- defined, the sets are:
|
-- defined, the sets are:
|
||||||
-- taglist_[bg|fg]_[focus|urgent|occupied|empty]
|
-- taglist_[bg|fg]_[focus|urgent|occupied|empty]
|
||||||
-- tasklist_[bg|fg]_[focus|urgent]
|
-- tasklist_[bg|fg]_[focus|urgent]
|
||||||
|
theme.tasklist_disable_task_name = true
|
||||||
-- titlebar_[bg|fg]_[normal|focus]
|
-- titlebar_[bg|fg]_[normal|focus]
|
||||||
-- tooltip_[font|opacity|fg_color|bg_color|border_width|border_color]
|
-- tooltip_[font|opacity|fg_color|bg_color|border_width|border_color]
|
||||||
-- mouse_finder_[color|timeout|animate_timeout|radius|factor]
|
-- mouse_finder_[color|timeout|animate_timeout|radius|factor]
|
||||||
@@ -76,7 +77,26 @@ theme.titlebar_maximized_button_focus_inactive = "/usr/share/awesome/themes/def
|
|||||||
theme.titlebar_maximized_button_normal_active = "/usr/share/awesome/themes/default/titlebar/maximized_normal_active.png"
|
theme.titlebar_maximized_button_normal_active = "/usr/share/awesome/themes/default/titlebar/maximized_normal_active.png"
|
||||||
theme.titlebar_maximized_button_focus_active = "/usr/share/awesome/themes/default/titlebar/maximized_focus_active.png"
|
theme.titlebar_maximized_button_focus_active = "/usr/share/awesome/themes/default/titlebar/maximized_focus_active.png"
|
||||||
|
|
||||||
theme.wallpaper = os.getenv('HOME') .. "/.config/awesome/Wallpapers/terminal.png"
|
-- function getallwallpapers()
|
||||||
|
-- local wallpaperdir = os.getenv('HOME') .. '/.config/awesome/Wallpapers/'
|
||||||
|
-- local t, popen = 0, {}, io.popen
|
||||||
|
-- local pfile = popen('ls -a "'.. wallpaperdir .. '"')
|
||||||
|
-- theme.wallpaperlen = 0
|
||||||
|
-- for filename in pfile:lines() do
|
||||||
|
-- theme.wallpaperlen = theme.wallpaperlen + 1
|
||||||
|
-- theme.wallpapers[theme.wallpaperlen] = wallpaperdir .. filename
|
||||||
|
-- end
|
||||||
|
-- pfile:close()
|
||||||
|
-- end
|
||||||
|
--
|
||||||
|
-- getallwallpapers()
|
||||||
|
--
|
||||||
|
-- function getrandomwallpaper()
|
||||||
|
-- return wallpaperdir .. theme.wallpapers[math.random(1, theme.wallpaperlen)]
|
||||||
|
-- end
|
||||||
|
--
|
||||||
|
-- theme.wallpaper = getrandomwallpaper()
|
||||||
|
theme.wallpaper = os.getenv('HOME') .. "/.config/awesome/Wallpapers/cobra-kai-1.png"
|
||||||
|
|
||||||
-- You can use your own layout icons like this:
|
-- You can use your own layout icons like this:
|
||||||
theme.layout_fairh = "/usr/share/awesome/themes/default/layouts/fairhw.png"
|
theme.layout_fairh = "/usr/share/awesome/themes/default/layouts/fairhw.png"
|
||||||
|
|||||||