Compare commits

...

75 Commits

Author SHA1 Message Date
tforgione b22e381660 jdb.localhost 2025-03-24 14:10:06 +01:00
tforgione 232e6a03c5 No need for yuzzit.local 2025-03-17 09:45:07 +01:00
tforgione 8936d060d3 Better links 2025-03-02 11:18:36 +01:00
tforgione add9175859 Remove gmail 2025-02-10 09:33:30 +01:00
tforgione 6a6a579912 Open issues 2025-02-05 13:57:25 +01:00
tforgione c2a1117e55 New email 2025-01-23 16:02:36 +01:00
tforgione 25603469ae Perso / pro order 2025-01-06 17:07:14 +01:00
tforgione db1807b6e2 yuzzit.local 2025-01-06 10:29:04 +01:00
tforgione 7b6bb320ac Mail 2025-01-05 16:33:09 +01:00
tforgione 154156f965 jira 2024-12-20 11:33:53 +01:00
tforgione 8e1c81c55c No more mails 2024-11-22 10:21:13 +01:00
tforgione 3bf01d1b04 Better xdotool 2024-10-11 20:47:50 +02:00
tforgione d986312dd4 Fix bug 2024-10-02 00:14:33 +02:00
tforgione 5aac8f0d8a Add shortcut 2024-09-30 09:28:14 +02:00
tforgione 507029e62a Mail 2024-09-24 10:38:27 +02:00
tforgione 34c82f1820 Clean 2024-09-12 15:12:07 +02:00
tforgione 35123a80dc Better shortcuts 2024-09-10 09:39:06 +02:00
tforgione eac7a059f8 yuzzit 2024-09-04 21:53:41 +02:00
tforgione f1bb185f8a Cobra kai 2024-07-31 16:54:06 +02:00
tforgione facf306eb2 Adds wallpapers 2024-07-31 16:51:25 +02:00
tforgione c90ba3fce4 Rofi theme 2024-07-12 16:07:47 +02:00
tforgione 17a8e60261 Merge branch 'master' of gitea.tforgione.fr:tforgione/awesome 2024-06-24 17:57:25 +02:00
tforgione 5cef0e4160 Push 2024-06-24 17:57:21 +02:00
tforgione b34ae531ea Fixed width wibar 2024-06-24 14:11:49 +02:00
tforgione dcaf91e0a8 Rmeove auto hide 2024-06-22 20:11:22 +02:00
tforgione 2293f28643 Small wibar on second screen 2024-06-22 18:18:46 +02:00
tforgione e77eb7ac26 Spawn rofi with mod r 2024-06-22 17:53:34 +02:00
tforgione f07b18bdef Wallpaper 2024-06-22 17:43:54 +02:00
tforgione cded3e7d63 Works with multiple screen 2024-06-22 13:14:38 +02:00
tforgione 2607923971 Update 2024-06-22 12:20:07 +02:00
tforgione 3a1e45da46 No border when single window 2024-06-22 10:01:20 +02:00
tforgione 9addb10e26 cleaner 2024-06-22 00:27:26 +02:00
tforgione 82898eacff Customize wibar 2024-06-21 23:44:08 +02:00
tforgione b73008c860 Better 2024-06-21 18:06:40 +02:00
tforgione b1f95df1d0 Fix 2024-06-19 12:18:03 +02:00
tforgione 97641b0080 New wallpaper 2024-06-19 12:17:36 +02:00
tforgione e374ba9757 Clean shutdown 2024-06-13 09:38:14 +02:00
tforgione 77a935b261 Auto log to gitea 2024-05-30 09:52:37 +02:00
tforgione 46a77b03f7 Better toilet 2024-05-25 19:01:32 +02:00
tforgione bf5a9ed0bc Adds wallpaper 2024-05-03 20:24:47 +02:00
tforgione 18a277e8b1 Media keys with mpris 2024-04-09 10:10:03 +02:00
tforgione 53a8ba106a Add 2024-04-07 14:49:37 +02:00
tforgione a6fc89a3bc Wallpaper 2024-04-07 13:44:39 +02:00
tforgione a66af122d1 Cleaner shortcuts 2024-03-31 16:27:30 +02:00
tforgione 2bfd1d8ec0 Remove tvrs 2024-03-31 14:17:08 +02:00
tforgione 9a194a8880 Wallpaper 2024-03-29 14:12:17 +01:00
tforgione 013b415d7b Remove zulip 2024-03-15 12:04:52 +01:00
tforgione 968e0b08c1 Update nextcloud 2024-03-14 19:03:16 +01:00
tforgione 91524c4699 Upgrade mailspring 2024-01-11 11:47:23 +01:00
tforgione 9f42abfe4d Whatsapp 2023-12-28 13:49:09 +01:00
tforgione 0186246b1b numbat 2023-11-30 10:27:47 +01:00
tforgione 178d65bd38 Works with nushell 2023-11-08 15:51:11 +01:00
tforgione a8d855d2f7 Adds calculator shortcut 2023-09-23 11:37:49 +02:00
tforgione 7951f7f2fe Adds todo 2023-08-08 11:16:32 +02:00
tforgione b9b4c59e5a Ku'ala 2023-07-17 09:19:30 +02:00
tforgione 4b64cb7b8e Random wallpaper 2023-07-15 22:02:25 +02:00
tforgione b5ed69f295 Toilet-3 2023-07-15 21:40:31 +02:00
tforgione d733d45896 Update toilet 2023-07-15 21:26:56 +02:00
tforgione 76467758bf Adds second toilet wallpaper 2023-07-15 21:25:46 +02:00
tforgione a17d458611 Update wallpaper 2023-07-13 17:12:09 +02:00
tforgione ecf940fb84 Reset telegram 2023-05-06 12:17:09 +02:00
tforgione baaab499da Telegram Z 2023-05-01 11:32:18 +02:00
tforgione c13d61ef48 Right order for windows 2023-02-27 14:32:31 +01:00
tforgione d98ec296c9 Fair first 2023-02-24 12:09:00 +01:00
tforgione eb8790e3b9 Blueberry 2023-02-11 12:05:07 +01:00
tforgione fb8bfa45fb More shortcuts 2023-01-16 09:44:55 +01:00
tforgione 5cef8f61ea Remove slack 2022-11-13 19:04:01 +01:00
tforgione fe463ffccf Migrate amixer to pactl 2022-11-08 13:30:59 +01:00
tforgione 683d7d4a9a Adds chat in shortcuts 2022-08-29 17:24:45 +02:00
tforgione e977d16e75 Rever 2022-06-14 12:19:55 +02:00
tforgione e74b9f3249 gnome-calendar sucks 2022-06-14 10:36:36 +02:00
tforgione 3654bf6685 Dont start already started 2022-06-14 09:23:23 +02:00
tforgione 1b6d306e94 Autostart apps 2022-06-14 09:22:03 +02:00
tforgione 481ad32658 Avoid : in file names 2022-06-13 12:56:12 +02:00
tforgione ca2a78c8e6 Remove discord 2022-05-16 13:56:23 +02:00
17 changed files with 247 additions and 137 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 341 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 MiB

Executable
+6
View File
@@ -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
+3 -2
View File
@@ -1,5 +1,6 @@
return {
browser="firefox",
terminal="alacritty",
email="thomas@forgione.fr",
terminal="new-terminal",
email="thomas@tforgione.fr",
email2="thomas@polymny.studio",
}
+213 -130
View File
@@ -1,5 +1,6 @@
local os = require('os')
local math = require('math')
math.randomseed(os.time())
-- Standard awesome library
local gears = require("gears")
@@ -9,6 +10,7 @@ require("awful.autofocus")
local wibox = require("wibox")
-- Theme handling library
local beautiful = require("beautiful")
beautiful.gap_single_client = false
-- Notification library
local naughty = require("naughty")
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
end
if file_exists(home..'/.config/awesome/autostart.sh') then
os.execute(home .. '/.config/awesome/autostart.sh &')
end
if file_exists(home..'/.xsession') then
os.execute(home .. '/.xsession &')
end
@@ -106,12 +112,12 @@ modkey = "Mod4"
-- Table of layouts to cover with awful.layout.inc, order matters.
awful.layout.layouts = {
awful.layout.suit.fair,
awful.layout.suit.fair.horizontal,
awful.layout.suit.tile.left,
awful.layout.suit.tile,
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,
@@ -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])
-- 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.
-- We need one layoutbox per screen.
s.mylayoutbox = awful.widget.layoutbox(s)
@@ -253,44 +259,113 @@ awful.screen.connect_for_each_screen(function(s)
s.mytasklist = awful.widget.tasklist(s, awful.widget.tasklist.filter.currenttags, tasklist_buttons)
-- 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 ")
calendar({}):attach(s.textclock)
s.textclock = awful.widget.textclock(" %a %d %b %H:%M ")
calendar({position = "bottom_right"}):attach(s.textclock)
-- Add widgets to the wibox
s.mywibox:setup {
layout = wibox.layout.align.horizontal,
{ -- Left widgets
layout = wibox.layout.fixed.horizontal,
mylauncher,
s.mytaglist,
s.mypromptbox,
},
s.mytasklist, -- Middle widget
{ -- Right widgets
layout = wibox.layout.fixed.horizontal,
-- delimiter,
-- email_widget.icon,
-- delimiter2,
-- email_widget.widget,
delimiter,
ram_widget,
delimiter2,
cpu_widget,
delimiter,
volume_widget,
delimiter2,
volume_bar_widget,
delimiter,
battery_widget,
delimiter,
mykeyboardlayout,
wibox.widget.systray(),
s.textclock,
s.mylayoutbox,
},
}
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,
-- delimiter,
-- email_widget.icon,
-- delimiter2,
-- email_widget.widget,
-- delimiter,
ram_widget,
-- delimiter2,
cpu_widget,
-- delimiter,
volume_widget,
-- delimiter2,
-- volume_bar_widget,
-- delimiter,
battery_widget,
-- delimiter,
-- mykeyboardlayout,
wibox.widget.systray(),
s.textclock,
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)
@@ -353,7 +428,7 @@ globalkeys = awful.util.table.join(
{description = "go back", group = "client"}),
-- Standard program
awful.key({ modkey, }, "Return", function ()
awful.spawn(terminal)
awful.util.spawn_with_shell(terminal)
naughty.notify({title = "Starting " .. options.terminal})
end,
{description = "open a terminal", group = "launcher"}),
@@ -391,42 +466,41 @@ globalkeys = awful.util.table.join(
{description = "restore minimized", group = "client"}),
-- Prompt
awful.key({ modkey }, "r", function () awful.screen.focused().mypromptbox:run() end,
{description = "run prompt", group = "launcher"}),
-- awful.key({ modkey }, "r", function () awful.screen.focused().mypromptbox:run() end,
-- {description = "run prompt", 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"}),
awful.key({ modkey }, "r", function () awful.spawn('rofi -show drun -theme ~/.config/rofi/theme.rasi') end,
{description = "run prompt", 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"}),
-- Custom shortcuts
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"}),
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"}),
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"}),
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"}),
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"}),
awful.key({ }, "XF86MonBrightnessDown", function ()
@@ -437,6 +511,18 @@ globalkeys = awful.util.table.join(
awful.util.spawn("xbacklight -inc 2")
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.util.spawn("xbacklight -dec 2")
end, {description = "decrease brightness", group="Brightness controls"}),
@@ -446,7 +532,7 @@ globalkeys = awful.util.table.join(
end, {description = "increase brightness", group="Brightness controls"}),
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"}),
awful.key({ }, "XF86AudioPlay", function()
@@ -466,15 +552,11 @@ globalkeys = awful.util.table.join(
end, {description = "skip to the previous music", group="Fn Keys"}),
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"}),
awful.key({"Shift"}, "Print", function ()
awful.spawn.easy_async_with_shell('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)
awful.spawn.easy_async('flameshot gui -d 1000', function() end)
end, {description = "capture the screen", group="Fn Keys"}),
awful.key({modkey}, "a", function ()
@@ -483,77 +565,33 @@ globalkeys = awful.util.table.join(
end, {description="start the web browser", group="shortcuts"}),
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"})
end, {description="Open social media", group="shortcuts"}),
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"}),
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"}),
awful.key({modkey, "Shift"}, "Tab", function()
awful.spawn.easy_async('xdotool key Caps_Lock', function() end)
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.spawn.easy_async("tvrs enable below", function() end)
end, {description="Sets the second screen below the main screen", group="screen control"}),
awful.spawn.easy_async("x b", function() end)
end, {description="Sets the two screens view", group="screen control"}),
awful.key({modkey, "Ctrl"}, "Down", function()
awful.spawn.easy_async("tvrs enable below", function() end)
end, {description="Sets the second screen below the main screen", group="screen control"}),
awful.key({modkey}, "#87", function()
awful.spawn.easy_async("x d", function() end)
end, {description="Default view", group="screen control"}),
awful.key({modkey}, "#90", function()
awful.spawn.easy_async("tvrs disable", function() end)
end, {description="Disable the second screen", 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, "Shift"}, "#87", function()
awful.spawn.easy_async("x s", function() end)
end, {description="Inverse of the default view", group="screen control"}),
awful.key({modkey}, "d", function()
if naughty_suspended then
@@ -567,20 +605,39 @@ globalkeys = awful.util.table.join(
awful.key({modkey, "Shift"}, "m", function()
awful.spawn.easy_async('sleep 0.5', function()
for i = 1, #options.email do
os.execute('xdotool type --clearmodifiers ' .. options.email:sub(i,i))
end
os.execute('xdotool type --clearmodifiers ' .. options.email)
end)
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.spawn.easy_async("mailspring", function() end)
awful.spawn.easy_async("mailspring --password-store=gnome-libsecret", function() end)
end, {description="Opens mailspring", group="shortcuts"}),
awful.key({modkey}, "e", function()
awful.spawn.easy_async("emojinput", function() end)
end, {description="Starts emojinput", group="shortcuts"})
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 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(
@@ -733,7 +790,7 @@ awful.rules.rules = {
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 not awesome.startup then awful.client.setslave(c) end
if awesome.startup and
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("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
+25 -5
View File
@@ -6,10 +6,10 @@ local theme = {}
theme.font = "sans 8"
theme.bg_normal = "#22222200"
theme.bg_focus = "#535d6c00"
theme.bg_urgent = "#ff000000"
theme.bg_minimize = "#44444400"
theme.bg_normal = "#22222299"
theme.bg_focus = "#535d6c99"
theme.bg_urgent = "#ff000099"
theme.bg_minimize = "#44444499"
theme.bg_systray = theme.bg_normal
theme.fg_normal = "#cccccc"
@@ -28,6 +28,7 @@ theme.border_marked = "#91231c"
-- defined, the sets are:
-- taglist_[bg|fg]_[focus|urgent|occupied|empty]
-- tasklist_[bg|fg]_[focus|urgent]
theme.tasklist_disable_task_name = true
-- titlebar_[bg|fg]_[normal|focus]
-- tooltip_[font|opacity|fg_color|bg_color|border_width|border_color]
-- 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_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:
theme.layout_fairh = "/usr/share/awesome/themes/default/layouts/fairhw.png"