diff --git a/CMakeLists.txt b/CMakeLists.txt index 9ea3295..e699850 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,12 +7,12 @@ set(POSITION_INDEPENDENT_CODE YES) set(C_STANDARD 11) add_compile_options(-Wall -Wextra) -pkg_check_modules(CONSTRAIN REQUIRED luajit x11 xi xfixes xrandr) +pkg_check_modules(CONSTRAIN REQUIRED lua54 x11 xi xfixes xrandr) add_library(constrain SHARED lib/constrain.c) target_link_libraries(constrain ${CONSTRAIN_LIBRARIES}) target_include_directories(constrain PUBLIC ${CONSTRAIN_INCLUDE_DIRS}) -pkg_check_modules(PWCALL REQUIRED luajit gobject-2.0) +pkg_check_modules(PWCALL REQUIRED lua54 gobject-2.0) add_library(pwcall SHARED lib/pwcall.cxx) target_link_libraries(pwcall ${PWCALL_LIBRARIES}) target_include_directories(pwcall PUBLIC ${PWCALL_INCLUDE_DIRS}) diff --git a/lib/lain/widget/fs.lua b/lib/lain/widget/fs.lua index 39c2294..cfbe993 100644 --- a/lib/lain/widget/fs.lua +++ b/lib/lain/widget/fs.lua @@ -9,6 +9,7 @@ local helpers = require('lain.helpers') local Gio = require('lgi').Gio +local GioUnix = require('lgi').GioUnix local focused = require('awful.screen').focused local wibox = require('wibox') local naughty = require('naughty') @@ -83,11 +84,11 @@ local function factory(args) fs_now = {} local notifypaths = {} - for _, mount in ipairs(Gio.unix_mounts_get()) do + for _, mount in ipairs(GioUnix.mounts_get()) do local info, path - local fs_ty = Gio.unix_mount_get_fs_type(mount) + local fs_ty = GioUnix.mount_get_fs_type(mount) if fs_ty ~= 'autofs' and fs_ty ~= 'efivarfs' and fs_ty ~= 'tmpfs' then - path = Gio.unix_mount_get_mount_path(mount) + path = GioUnix.mount_get_mount_path(mount) local root = Gio.File.new_for_path(path) info = root:query_filesystem_info(query) end diff --git a/lib/sol.hpp b/lib/sol.hpp index dd8ee0e..9d93ff9 100644 --- a/lib/sol.hpp +++ b/lib/sol.hpp @@ -6752,7 +6752,7 @@ namespace sol { static_assert(std::is_constructible::value, "T must be constructible with Args"); *this = nullopt; - this->construct(std::forward(args)...); + new (static_cast(this)) optional(std::in_place, std::forward(args)...); } /// Swaps this optional with the other. diff --git a/src/client/rules.lua b/src/client/rules.lua index bfcc17c..3837777 100644 --- a/src/client/rules.lua +++ b/src/client/rules.lua @@ -34,7 +34,7 @@ rules.append_rules({ }, properties = { floating = true } }, { - rule_any = { class = { 'firefox', 'factorio', 'Blender', 'Godot' } }, + rule_any = { class = { 'firefox', 'factorio', 'Blender', 'Godot', 'kdiff3' } }, properties = { opacity = 1, maximized = false, floating = false }, }, { rule_any = { class = { 'mpv', 'jellyfinmediaplayer' } }, @@ -45,7 +45,7 @@ rules.append_rules({ floating = true, border_width = 0, x = 0, - y = 1080, + y = 1120, no_border = true, } }, diff --git a/src/global_keys.lua b/src/global_keys.lua index 417bfe8..3bdd7ea 100644 --- a/src/global_keys.lua +++ b/src/global_keys.lua @@ -104,7 +104,7 @@ local globalkeys = gears.table.join( 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 }, '.', function () machi.default_editor.start_interactive() end, { description = 'start machi editor', group = 'layout' }), - awful.key({ modkey }, '+', function () machi.default_editor.start_interactive() end, { description = 'switch between windows for a machi', group = 'layout' }), + awful.key({ modkey }, '+', function () machi.switcher.start(client.focus).ui() end, { description = 'switch between windows for a machi', group = 'layout' }), ---- AUDIO KEYS ---- awful.key({}, "XF86AudioMute", volume.toggle_mute), diff --git a/src/theme/init.lua b/src/theme/init.lua index 654210e..da24c86 100644 --- a/src/theme/init.lua +++ b/src/theme/init.lua @@ -31,8 +31,8 @@ return { confdir = confdir, wallpaper = confdir .. '/wallpapers/' .. (settings.wallpaper or 'wall.png'), vallpaper = confdir .. '/wallpapers/' .. (settings.vallpaper or 'vall0.png'), - font = 'Terminus 8', - font_mono = 'Mononoki Nerd Font Mono 10', + font = 'IosevkaM Extended Medium 8', + font_mono = 'IosevkaM Extended Light 10', bg_normal = '#000000', bg_focus = '#000000', bg_urgent = '#000000', diff --git a/src/widgets/init.lua b/src/widgets/init.lua index e70fce9..aea59a8 100644 --- a/src/widgets/init.lua +++ b/src/widgets/init.lua @@ -1,6 +1,10 @@ local gears = require('gears') local theme = require('src.theme') +-- idk what the fuck +require('src.widgets.8_mpris') +-- required, because otherwise the require call on line 16 gets turned to a string + return gears.table.join( require('src.widgets.1_clock'), require('src.widgets.2_fs'), diff --git a/wallpapers/a.jpg b/wallpapers/a.jpg new file mode 100644 index 0000000..a91f659 Binary files /dev/null and b/wallpapers/a.jpg differ