GVKun编程网logo

Linux Awesomewm 配置从菜单栏中排除选项(linux菜单栏在哪)

3

针对LinuxAwesomewm配置从菜单栏中排除选项和linux菜单栏在哪这两个问题,本篇文章进行了详细的解答,同时本文还将给你拓展awesomewm中的静默通知、AwesomeWM删除wibar的

针对Linux Awesomewm 配置从菜单栏中排除选项linux菜单栏在哪这两个问题,本篇文章进行了详细的解答,同时本文还将给你拓展awesomewm 中的静默通知、AwesomeWM 删除 wibar 的空间、AwesomeWM,在浮动模式下捕捉、AwesomeWM:初始化主题时出错等相关知识,希望可以帮助到你。

本文目录一览:

Linux Awesomewm 配置从菜单栏中排除选项(linux菜单栏在哪)

Linux Awesomewm 配置从菜单栏中排除选项(linux菜单栏在哪)

如何解决Linux Awesomewm 配置从菜单栏中排除选项

所以我使用

使我的窗口具有圆形边框
c.shape = gears.shape.rounded_rect

但这也会影响我的菜单栏(我正在使用 polybar)有没有办法说

if not menubar

当我尝试这个时,它使所有东西都有尖角。但我只希望菜单栏有尖角。

解决方法

您可以使用各种属性来匹配某些客户端,例如 c.classc.name(有关 client 对象的完整属性列表,请参阅 here)。

要找出要匹配的值,请在终端中运行 xprop 并单击您的 polybar。 然后它会列出各种属性,其中 WM_NAME 映射到 c.nameWM_CLASS 将按顺序列出 c.instancec.class,用逗号分隔。

对于您的用例,推荐的方法是匹配 c.class,因为这意味着“匹配应用程序 polybar 的任何实例”。然后它看起来应该类似于:

if c.class ~= "polybar" then
    c.shape = gears.shape.rounded_rect
end

polybar 替换为从 xprop 获得的值。

awesomewm 中的静默通知

awesomewm 中的静默通知

如何解决awesomewm 中的静默通知

我正在尝试根据本文档中的参考忽略所有通知

https://awesomewm.org/apidoc/libraries/naughty.html#suspend

这里我介绍了但它似乎不起作用 - 我应该怎么做?

awful.key({ modkey,"Shift"   },"m",function() naughty.suspended = not naughty.suspended end,{description = "Silence notification",group = "awesome"})

注意:我已经检查过,除此之外没有在其他任何地方使用快捷键。

AwesomeWM 删除 wibar 的空间

AwesomeWM 删除 wibar 的空间

如何解决AwesomeWM 删除 wibar 的空间

我有 3 个用于顶栏的 wibar,看起来不错:

但是当我打开任何应用程序时,如果 3 wibar 在列中,它会有一个边距,对于通知和弹出窗口也是如此。

然后我想删除那个空间,我怎么做,这是我的rc.lua:

...

awful.screen.connect_for_each_screen(function(s)
    awful.tag(
        -- { " files "," code "," web "," shell "," media " },{ "  ",""," " },s,{
        awful.layout.layouts[1],awful.layout.layouts[1],awful.layout.layouts[4],awful.layout.layouts[3]
    })

    -- Create a promptBox for each screen
    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)
    s.mylayoutBox:buttons(gears.table.join(
        awful.button({ },1,function () awful.layout.inc( 1) end),awful.button({ },2,3,function () awful.layout.inc(-1) end),4,5,6,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 tasklist widget
    s.mytasklist  = awful.widget.tasklist {
        screen  = s,filter  = awful.widget.tasklist.filter.currenttags,buttons = tasklist_buttons
    }

    -- Create a systray widget
    s.systray = wiBox.widget.systray()
    s.systray.visible = false

    -- Create the wiBox
    function custom_shape(cr,width,height)
        gears.shape.rounded_rect(cr,height,5)
    end
    
    -- Create the top wiBoxs
    s.mywiBox = awful.wibar({
        position = "top",screen = s,-- shape = custom_shape,input_passthrough = true,width = 100,height = 28,bg = "#000000AA",border_color = "00000000",})
    s.mywiBoxmiddle = awful.wibar({
        position = "top",width = 1000,border_color = "00000000"
    })
    s.mywiBoxright = awful.wibar({
        position = "top",width = 240,border_color = "#00000000"
    })

    -- Create the bottom wiBox
    s.mywiBoxbottom = awful.wibar({ 
        position = "bottom",width = 1358,border_color = "00000000"
    })


    s.mywiBox.x = 4
    s.mywiBox.y = 4
    
    s.mywiBoxmiddle.x = 112
    s.mywiBoxmiddle.y = 4

    s.mywiBoxright.x = 1120
    s.mywiBoxright.y = 4

    s.mywiBoxbottom.x = 4
    s.mywiBoxbottom.y = 768 - s.mywiBoxbottom.height - 4

    local function ellipsize(text,length)
        return (text:len() > length and length > 0)
            and text:sub(0,length - 3) .. ''...''
            or text
    end

    -- local battery_widget = require("awesome-wm-widgets.battery-widget.battery")
    -- local BAT0 = battery_widget { adapter = "BAT0",ac = "AC" }
    local volume_widget = require(''awesome-wm-widgets.volume-widget.volume'')
    local brightness_widget = require("awesome-wm-widgets.brightness-widget.brightness")

    s.padding = {
        top = s.mywiBox.height + 10 - 84,left = 4,right = 4,bottom = 8,}

    -- 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.mywiBoxmiddle:setup {
        layout = wiBox.layout.align.horizontal,{
            layout = wiBox.layout.fixed.horizontal,wiBox.widget {
                widget = wiBox.widget.separator,forced_width = 8,opacity = 0
            },s.mypromptBox,-- Middle widget
        },}
    
    s.mywiBoxright:setup {
        layout = wiBox.layout.align.horizontal,-- Right widgets
        layout = wiBox.layout.fixed.horizontal,wiBox.widget {
            widget = wiBox.widget.separator,forced_width = 2,opacity = 0
        },mytextclock,forced_width = 4,brightness_widget{
            type = ''icon_and_text'',program = ''xbacklight'',font = ''JetBrains Mono Bold 9'',step = 2,},forced_width = 6,volume_widget{
            type = ''icon_and_text'',font = ''JetBrains Mono Bold 9''
        },-- wiBox.widget {
        --  widget = wiBox.widget.separator,--  forced_width = 4,--  opacity = 0
        -- },-- BAT0,}

    -- Add widgets to the bottom wiBox
    s.mywiBoxbottom:setup {
        layout = wiBox.layout.align.horizontal,nil,s.mytasklist,-- Middle widget
        { -- Right widgets
            layout = wiBox.layout.fixed.horizontal,s.systray,forced_width = 12,s.mylayoutBox
        },}

end)
-- }}}
...

我正在尝试填充、位置、不同的类型,但没有任何效果。

提前致谢。

解决方法

我建议您使用 select count(*),workerid from sometable group by workerid having count(*) >= 2; 而不是 Select count(*),wlpu.id,wlpu.workerid from vwWorkerLocalProcessingUnits__c wlpu inner join vwLocalProcessingUnits__c lpu on lpu.id=wlpu.LocalProcessingUnitID where lpu.BargainingUnit not like ''%NABET%'' and wlpu.StatusName like ''Member - Active%'' group by wlpu.workerid,wlpu.id having count(*)>=2; 。不同之处在于,wibox 不会影响作品,而 wibox 会。您还可以考虑 awful.wibar,它位于普通 wibarawful.popup 之间的“中间”。 wibox 会自动调整为小部件大小。

请参阅 https://awesomewm.org/apidoc/documentation/03-declarative-layout.md.html

的“不同类型的小部件框 (Wibox)”部分

此外,这是一个不错的桌面!请发布到https://github.com/awesomeWM/awesome/issues/1395!

AwesomeWM,在浮动模式下捕捉

AwesomeWM,在浮动模式下捕捉

如何解决AwesomeWM,在浮动模式下捕捉

在 AwesomeWM 中,(在全新的 Arch 安装中)我正在寻找一种在浮动模式下将窗口捕捉到屏幕左侧/右侧的方法。有点像肉桂(薄荷)。

即使经过多次尝试,我也无法做到。我想使用诸如 Super+left arrow 之类的东西将窗口捕捉到屏幕的左半部分等。

我找到的最接近的是 https://gist.github.com/raidzero/dd7e45370b819eeff8aa#file-divvy-sh,但我不理解它。它说的是“o 使它有用,为每个命令使用一个快捷键:)”,但我不明白如何/做什么。

大家有什么想法吗?

另外,我没有嫁给 AwesomeWm。如果有任何其他(最小)动态窗口管理器可以/更容易,请告诉我,我会切换。

干杯。

附言使用鼠标移动窗口时确实存在该功能,这让我非常恼火......它应该很容易完成而我做不到......根本......

另外,我是个菜鸟,所以要慢一点:)

AwesomeWM:初始化主题时出错

AwesomeWM:初始化主题时出错

如何解决AwesomeWM:初始化主题时出错

我目前已经开始使用 AwesomeWM 并开始配置它。我在主题方面很挣扎:每当我尝试更改主题时,都会收到以下错误消息: https://i.stack.imgur.com/vAbuW.png

它告诉我错误在第 553/554 行,但如果我不调整任何主题,它们就可以正常工作。

主题代码:

local theme_path = string.format("%s/.config/awesome/themes/%s/theme.lua",os.getenv("HOME"),"powerarrow")
beautiful.init(theme_path)

错误指出错误的行 (553/554):

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)

那么,有什么问题吗?

今天关于Linux Awesomewm 配置从菜单栏中排除选项linux菜单栏在哪的讲解已经结束,谢谢您的阅读,如果想了解更多关于awesomewm 中的静默通知、AwesomeWM 删除 wibar 的空间、AwesomeWM,在浮动模式下捕捉、AwesomeWM:初始化主题时出错的相关知识,请在本站搜索。

本文标签: