AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 530636
Accepted
Fetts Vett
Fetts Vett
Asked: 2014-10-01 07:29:30 +0800 CST2014-10-01 07:29:30 +0800 CST 2014-10-01 07:29:30 +0800 CST

fluxbox 正在覆盖 nitrogen --restore?

  • 772

我的 ~/.fluxbox/startup 文件

#!/bin/sh
#
# fluxbox startup-script:
#
# Lines starting with a '#' are ignored.

# Change your keymap:
#xmodmap "/home/rapture/.Xmodmap"

# Applications you want to run with fluxbox.
# MAKE SURE THAT APPS THAT KEEP RUNNING HAVE AN ''&'' AT THE END.
#
# unclutter -idle 2 &
# wmnd &
# wmsmixer -w &
# idesk &
#
# Debian-local change:
#   - fbautostart has been added with a quick hack to check to see if it
#     exists. If it does, we'll start it up by default.
#which fbautostart > /dev/null
#if [ $? -eq 0 ]; then
#    fbautostart
#fi

nitrogen --restore &


# And last but not least we start fluxbox.
# Because it is the last app you have to run it with ''exec'' before it.

exec fluxbox
# or if you want to keep a log:
# exec fluxbox -log "/home/rapture/.fluxbox/log"

不过,每次我重新启动 fluxbox 时,背景都会更改为默认设置或 fbsetbg 设置的设置。我有两个显示器,所以我真的很想用氮气来设置两个不同的墙纸。

这是我的 ~/.fluxbox/init

session.screen0.titlebar.left:  Stick 
session.screen0.titlebar.right: Minimize Maximize Close 
session.screen0.tabs.usePixmap: true
session.screen0.tabs.maxOver:   false
session.screen0.tabs.intitlebar:    true
session.screen0.iconbar.alignment:  Relative
session.screen0.iconbar.mode:   {static groups} (workspace)
session.screen0.iconbar.iconTextPadding:    10
session.screen0.iconbar.iconWidth:  128
session.screen0.iconbar.usePixmap:  true
session.screen0.toolbar.height: 0
session.screen0.toolbar.alpha:  255
session.screen0.toolbar.widthPercent:   100
session.screen0.toolbar.tools:  prevworkspace, workspacename, nextworkspace, clock, prevwindow, nextwindow, iconbar, systemtray
session.screen0.toolbar.maxOver:    false
session.screen0.toolbar.visible:    true
session.screen0.toolbar.onhead: 1
session.screen0.toolbar.layer:  Dock
session.screen0.toolbar.autoHide:   false
session.screen0.toolbar.placement:  RightTop
session.screen0.slit.acceptKdeDockapps: true
session.screen0.slit.alpha: 255
session.screen0.slit.maxOver:   false
session.screen0.slit.onhead:    0
session.screen0.slit.placement: RightBottom
session.screen0.slit.layer: Dock
session.screen0.slit.autoHide:  false
session.screen0.tab.placement:  TopLeft
session.screen0.tab.width:  64
session.screen0.menu.alpha: 255
session.screen0.window.focus.alpha: 255
session.screen0.window.unfocus.alpha:   255
session.screen0.clientMenu.usePixmap:   true
session.screen0.showwindowposition: false
session.screen0.workspaces: 4
session.screen0.maxDisableResize:   false
session.screen0.allowRemoteActions: false
session.screen0.tooltipDelay:   500
session.screen0.autoRaise:  true
session.screen0.strftimeFormat: %d %b, %a %02k:%M:%S
session.screen0.menuDelay:  200
session.screen0.fullMaximization:   false
session.screen0.focusModel: ClickFocus
session.screen0.tabFocusModel:  ClickToTabFocus
session.screen0.clickRaises:    true
session.screen0.focusSameHead:  false
session.screen0.focusNewWindows:    true
session.screen0.maxIgnoreIncrement: true
session.screen0.maxDisableMove: false
session.screen0.windowMenu: /home/rapture/.fluxbox/windowmenu
session.screen0.edgeSnapThreshold:  10
session.screen0.opaqueMove: true
session.screen0.defaultDeco:    NORMAL
session.screen0.workspaceNames:  1, 2, 3, Let's Jam,
session.screen0.noFocusWhileTypingDelay:    0
session.screen0.rowPlacementDirection:  LeftToRight
session.screen0.colPlacementDirection:  TopToBottom
session.screen0.windowPlacement:    RowMinOverlapPlacement
session.screen0.workspacewarping:   true
session.styleFile:  /usr/share/fluxbox/styles/Makro
session.colorsPerChannel:   4
session.autoRaiseDelay: 250
session.forcePseudoTransparency:    false
session.ignoreBorder:   false
session.appsFile:   /home/rapture/.fluxbox/apps
session.configVersion:  13
session.cacheLife:  5
session.slitlistFile:   /home/rapture/.fluxbox/slitlist
session.cacheMax:   200
session.tabsAttachArea: Window
session.tabPadding: 0
session.keyFile:    ~/.fluxbox/keys
session.menuFile:   ~/.fluxbox/menu
session.styleOverlay:   /home/rapture/.fluxbox/overlay
session.doubleClickInterval:    250

.

rapture@rapture:~/.fluxbox$ cat overlay 
! The following line will prevent styles from setting the background.
! background: none

.

rapture@rapture:~/.fluxbox$ cat /usr/share/fluxbox/styles/Makro
# "Makro"
# A Fluxbox theme by: skypher of perplexity
# 2001

toolbar:                             Gradient Vertical Sunken
toolbar.color:                       rgb:CC/CC/AA

toolbar.button:                      Flat Solid
toolbar.button.color:                rgb:AB/90/40
toolbar.button.picColor:             rgb:50/30/10

toolbar.button.pressed:              Sunken Flat
toolbar.button.pressed.color:        rgb:90/70/20

toolbar.clock:                       Flat
toolbar.clock.color:                 rgb:AB/90/40
toolbar.clock.textColor:             rgb:40/20/05

toolbar.label:                       Flat
toolbar.label.color:                 rgb:AB/90/40
toolbar.label.textColor:             rgb:40/20/05

toolbar.windowLabel:                 Flat
toolbar.windowLabel.color:           rgb:AB/90/40
toolbar.windowLabel.textColor:       rgb:40/20/05

toolbar.justify:                     Left

menu.title:                          Raised Flat
menu.title.color:                    rgb:AB/90/40
menu.title.textColor:                rgb:40/20/05
menu.title.justify:                  Left

menu.frame:                          Gradient PipeCross
menu.frame.color:                    rgb:CC/CC/AA
menu.frame.colorTo:                  rgb:AB/AA/90
menu.frame.textColor:                rgb:10/10/01
menu.frame.justify:                  Right

menu.hilite:                         Flat
menu.hilite.color:                   rgb:DF/CF/BF
menu.hilite.textColor:               rgb:00/00/00

menu.bullet:                         Square
menu.bullet.position:                Right


window.title.focus:                  Gradient Vertical Sunken
window.title.focus.color:            rgb:CC/CC/AA

window.title.unfocus:                Gradient Vertical Sunken
window.title.unfocus.color:          rgb:AC/AC/90

window.label.focus:                  Solid Flat
window.label.focus.color:            rgb:AB/90/40
window.label.focus.textColor:        rgb:40/20/05

window.label.unfocus:                Flat Solid
window.label.unfocus.color:          rgb:AA/80/30
window.label.unfocus.textColor:      rgb:45/25/10

window.button.focus:                 Flat Solid
window.button.focus.color:           rgb:AC/99/50
window.button.focus.picColor:        rgb:40/20/05

window.button.unfocus:               Flat Solid
window.button.unfocus.color:         rgb:AA/80/30
window.button.unfocus.picColor:      rgb:45/25/10

window.button.pressed:               Sunken Solid
window.button.pressed.color:         rgb:90/70/20

window.frame.focus:                  Flat
window.frame.focus.color:            rgb:00/00/00
window.frame.unfocus:                Flat
window.frame.unfocus.color:          rgb:10/10/10

window.handle.focus:                 Sunken Solid
window.handle.focus.color:           rgb:AC/99/50
window.handle.unfocus:               Flat Solid
window.handle.unfocus.color:         rgb:AA/80/30

window.grip.focus:                   Sunken Gradient Diagonal Interlaced
window.grip.focus.color:             rgb:AC/99/50
window.grip.focus.colorTo:           rgb:AA/80/30
window.grip.unfocus:                 Raised Gradient Diagonal
window.grip.unfocus.color:           rgb:AA/80/30
window.grip.unfocus.colorTo:         rgb:AC/99/50

! ----------- tab - explicit for fluxbox, the best wm out there[tm] (;
window.tab.justify:                  Center
window.tab.label.unfocus:            Flat Solid
window.tab.label.unfocus.color:      rgb:AA/80/30
window.tab.label.unfocus.textColor:  rgb:45/25/10
window.tab.label.focus:              Solid Flat
window.tab.label.focus.color:        rgb:AB/90/40
window.tab.label.focus.textColor:    rgb:40/20/05
window.tab.borderWidth:              1
window.tab.borderColor:              rgb:10/10/10
! ----------- (fluxbox.sourceforge.net)
window.tab.font:                     -*-helvetica-medium-r-*-*-11-*-*-*-*-*-iso8859-*

window.justify:                      Left

toolbar.font:                        -*-helvetica-medium-r-*-*-11-*-*-*-*-*-iso8859-*
window.font:                         -*-helvetica-bold-r-*-*-11-*-*-*-*-*-iso8859-*
menu.title.font:                     -*-helvetica-bold-r-*-*-11-*-*-*-*-*-iso8859-*
menu.frame.font:                     -*-helvetica-medium-r-*-*-10-*-*-*-*-*-iso8859-*

borderColor:                         rgb:10/10/10

bevelWidth:                          2
borderWidth:                         1
handleWidth:                         3

background: flat
xorg
  • 1 1 个回答
  • 490 Views

1 个回答

  • Voted
  1. Best Answer
    Panther
    2014-10-01T08:03:35+08:002014-10-01T08:03:35+08:00

    使用 ~/.fluxbox/startup

    例子

    /usr/bin/nitrogen --restore &
    /usr/bin/xscreensaver &
    /usr/bin/start-pulseaudio-x11 &
    /usr/bin/xcompmgr -f -c -n -C -F &
    
    # Network manager
    nm-applet >/dev/null 2>/dev/null &
    
    #Wicd
    wicd-client -n
    
    exec fluxbox
    

    请参阅:http ://blog.bodhizazen.com/linux/a-5-minute-guide-to-fluxbox/

    从评论来看,fluxbox 主题正在设置背景。

    要调试此类问题,

    首先检查 ~/.fluxbox/init 并确保没有设置 BG 的命令,例如

    session.screen0.rootCommand: fbsetbg /path/to/image
    

    其次,检查您的主题并注释掉或删除其中包含“背景”的行,例如,

    background: foo
    background.color: bar
    background.colorTo: bang
    
    • 1

相关问题

  • 如何从命令行重新启动 X Window Server?

  • xorg 中是否有用于更改视频驱动程序的 GUI?

  • 类似于 Eyefinity 的东西?

  • 如何重置我的键盘布局?

  • 帮助让 Flash 播放器在第二个屏幕上工作?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve