diff options
-rw-r--r-- | .config/Synergy/Synergy.conf | 118 | ||||
-rw-r--r-- | .config/X11/modmap | 32 | ||||
-rw-r--r-- | .config/bash/rc.d/10_hist.sh | 2 | ||||
-rw-r--r-- | .config/dconf/user.txt | 265 | ||||
-rw-r--r-- | .config/emacs/custom.el | 26 | ||||
-rw-r--r-- | .config/emacs/init.el | 27 | ||||
-rw-r--r-- | .config/login.d/10_gpg.sh | 2 | ||||
-rw-r--r-- | .config/lxpanel/default/panels/panel | 71 | ||||
-rw-r--r-- | .config/systemd/user/onboard@.service | 12 | ||||
l--------- | .config/systemd/user/wmii@.service.wants/onboard@.service | 1 | ||||
l--------- | .config/systemd/user/wmii@.service.wants/rbar@98_wifi.service | 1 | ||||
l--------- | .config/systemd/user/wmii@.service.wants/redshift@.service | 1 | ||||
l--------- | .config/systemd/user/wmii@.service.wants/x0vncserver@.service | 1 | ||||
-rw-r--r-- | .config/wmii-hg/config.sh | 4 | ||||
-rw-r--r-- | .config/wmii-hg/ctl-init | 2 | ||||
-rw-r--r-- | .config/wmii-hg/rules | 1 | ||||
-rw-r--r-- | .config/wmii-hg/workarounds.sh | 20 | ||||
-rwxr-xr-x | .local/bin/backlight | 20 |
18 files changed, 348 insertions, 258 deletions
diff --git a/.config/Synergy/Synergy.conf b/.config/Synergy/Synergy.conf new file mode 100644 index 0000000..0835cfc --- /dev/null +++ b/.config/Synergy/Synergy.conf @@ -0,0 +1,118 @@ +[General] +activateEmail= +autoConfig=true +autoConfigPrompted=true +autoHide=true +configFile=/home/lukeshu-parabola/synergy.conf +cryptoEnabled=false +edition=2 +elevateMode=false +groupClientChecked=false +groupServerChecked=true +interface= +language=en +logFilename=/var/log/synergy.log +logLevel=3 +logToFile=false +port=24800 +screenName=lukeshu-gluglugt60 +serverHostname= +startedBefore=true +useExternalConfig=false +useInternalConfig=true +userToken= +wizardLastRun=7 + +[internalConfig] +hasHeartbeat=false +hasSwitchDelay=false +hasSwitchDoubleTap=false +heartbeat=5000 +hotkeys\size=0 +ignoreAutoConfigClient=false +numColumns=5 +numRows=3 +relativeMouseMoves=false +screenSaverSync=true +screens\1\name= +screens\10\name= +screens\11\name= +screens\12\name= +screens\13\name= +screens\14\name= +screens\15\name= +screens\2\name= +screens\3\name= +screens\4\name= +screens\5\name= +screens\6\name= +screens\7\aliasArray\size=0 +screens\7\fixArray\1\fix=false +screens\7\fixArray\2\fix=false +screens\7\fixArray\3\fix=false +screens\7\fixArray\4\fix=false +screens\7\fixArray\size=4 +screens\7\modifierArray\1\modifier=0 +screens\7\modifierArray\2\modifier=1 +screens\7\modifierArray\3\modifier=2 +screens\7\modifierArray\4\modifier=3 +screens\7\modifierArray\5\modifier=4 +screens\7\modifierArray\6\modifier=5 +screens\7\modifierArray\size=6 +screens\7\name=build64-par +screens\7\switchCornerArray\1\switchCorner=false +screens\7\switchCornerArray\2\switchCorner=false +screens\7\switchCornerArray\3\switchCorner=false +screens\7\switchCornerArray\4\switchCorner=false +screens\7\switchCornerArray\size=4 +screens\7\switchCornerSize=0 +screens\8\aliasArray\size=0 +screens\8\fixArray\1\fix=false +screens\8\fixArray\2\fix=false +screens\8\fixArray\3\fix=false +screens\8\fixArray\4\fix=false +screens\8\fixArray\size=4 +screens\8\modifierArray\1\modifier=0 +screens\8\modifierArray\2\modifier=1 +screens\8\modifierArray\3\modifier=2 +screens\8\modifierArray\4\modifier=3 +screens\8\modifierArray\5\modifier=4 +screens\8\modifierArray\6\modifier=5 +screens\8\modifierArray\size=6 +screens\8\name=lukeshu-gluglugt60 +screens\8\switchCornerArray\1\switchCorner=false +screens\8\switchCornerArray\2\switchCorner=false +screens\8\switchCornerArray\3\switchCorner=false +screens\8\switchCornerArray\4\switchCorner=false +screens\8\switchCornerArray\size=4 +screens\8\switchCornerSize=0 +screens\9\aliasArray\size=0 +screens\9\fixArray\1\fix=false +screens\9\fixArray\2\fix=false +screens\9\fixArray\3\fix=false +screens\9\fixArray\4\fix=false +screens\9\fixArray\size=4 +screens\9\modifierArray\1\modifier=0 +screens\9\modifierArray\2\modifier=1 +screens\9\modifierArray\3\modifier=2 +screens\9\modifierArray\4\modifier=3 +screens\9\modifierArray\5\modifier=4 +screens\9\modifierArray\6\modifier=5 +screens\9\modifierArray\size=6 +screens\9\name=android +screens\9\switchCornerArray\1\switchCorner=false +screens\9\switchCornerArray\2\switchCorner=false +screens\9\switchCornerArray\3\switchCorner=false +screens\9\switchCornerArray\4\switchCorner=false +screens\9\switchCornerArray\size=4 +screens\9\switchCornerSize=0 +screens\size=15 +switchCornerArray\1\switchCorner=false +switchCornerArray\2\switchCorner=false +switchCornerArray\3\switchCorner=false +switchCornerArray\4\switchCorner=false +switchCornerArray\size=4 +switchCornerSize=16 +switchDelay=250 +switchDoubleTap=250 +win32KeepForeground=false diff --git a/.config/X11/modmap b/.config/X11/modmap index b332204..5d95690 100644 --- a/.config/X11/modmap +++ b/.config/X11/modmap @@ -1,14 +1,34 @@ ! -*- Mode: Xmodmap -*- +! Notes on the syntax: +! - The RHS of keycode/keysym commands is: +! normal [Shift [Mode_switch [Shift+Mode_switch]]] +! - The modifiers are (non-caps sensitive): +! 0: Shift +! 1: Lock +! 2: Control +! 3-7: Mod{1-5} + ! My desktop doesn't have a super key, so I map Caps_Lock to Super_L ! Also, use Caps_Lock for the compose key -remove lock = Caps_Lock keysym Caps_Lock = Super_L Multi_key -! All of these are my "super". Silly I have so many... +! The default modifier list is dumb. Wipe it and do something +! sensible. +clear shift +clear lock +clear control +clear mod1 +clear mod2 +clear mod3 clear mod4 -add mod4 = Super_L Super_R Hyper_L Hyper_R Menu - +clear mod5 -! Note to future me: -! The modifiers are: << Shift, Lock, Control, Mod{1..5} >> and are NOT case sensitive +add shift = Shift_L Shift_R +add lock = Caps_Lock +add control = Control_L Control_R +add mod1 = Num_Lock +add mod2 = Alt_L Alt_R Meta_L Meta_R +add mod3 = ISO_Level3_Shift +add mod4 = Super_L Super_R +add mod5 = Hyper_L Hyper_R diff --git a/.config/bash/rc.d/10_hist.sh b/.config/bash/rc.d/10_hist.sh index 6b2c4f1..3d34d6e 100644 --- a/.config/bash/rc.d/10_hist.sh +++ b/.config/bash/rc.d/10_hist.sh @@ -4,6 +4,6 @@ HISTCONTROL=$HISTCONTROL${HISTCONTROL+,}ignoredups HISTFILE=${XDG_DATA_HOME}/bash/history HISTTIMEFORMAT='[%Y-%m-%d %H:%M] ' -HISTSIZE=5000 +HISTSIZE=50000 shopt -s histappend # append to the history file, don't overwrite it mkdir -p "${HISTFILE%/*}" diff --git a/.config/dconf/user.txt b/.config/dconf/user.txt index 48a55eb..a041066 100644 --- a/.config/dconf/user.txt +++ b/.config/dconf/user.txt @@ -1,200 +1,69 @@ -[org/mate/terminal/profiles/default] -background-color='#FFFFFFFFDDDD' -login-shell=true -palette='#2E2E34343636:#CCCC00000000:#4E4E9A9A0606:#C4C4A0A00000:#34346565A4A4:#757550507B7B:#060698209A9A:#D3D3D7D7CFCF:#555557575353:#EFEF29292929:#8A8AE2E23434:#FCFCE9E94F4F:#72729F9FCFCF:#ADAD7F7FA8A8:#3434E2E2E2E2:#EEEEEEEEECEC' -bold-color='#000000000000' -foreground-color='#000000000000' -visible-name='Default' - -[org/mate/eom/ui] -image-collection=false -sidebar=false - -[org/mate/engrampa/listing] -sort-method='name' -name-column-width=250 -sort-type='ascending' -list-mode='as-folder' -show-path=false - -[org/mate/engrampa/ui] -sidebar-width=200 -window-height=480 -window-width=600 - -[org/mate/volume-control] -window-height=886 -window-width=1706 - -[org/mate/screenshot] -include-pointer=true -include-border=true -border-effect='none' -delay=0 - -[org/mate/desktop/peripherals/keyboard] -numlock-state='off' - -[org/mate/desktop/accessibility/keyboard] -slowkeys-beep-press=true -mousekeys-accel-time=1200 -bouncekeys-beep-reject=true -slowkeys-beep-reject=false -togglekeys-enable=false -enable=false -bouncekeys-enable=false -stickykeys-enable=false -feature-state-change-beep=false -slowkeys-beep-accept=true -bouncekeys-delay=300 -mousekeys-max-speed=750 -mousekeys-enable=false -timeout-enable=false -slowkeys-delay=300 -stickykeys-modifier-beep=true -stickykeys-two-key-off=true -mousekeys-init-delay=160 -timeout=120 -slowkeys-enable=false - -[org/mate/desktop/background] -color-shading-type='solid' -primary-color='#a1a184845c5c' -picture-options='wallpaper' -picture-filename='' -secondary-color='#3c3c8f8f2525' - -[org/mate/desktop/font-rendering] -antialiasing='grayscale' -dpi=95.0 -hinting='full' - -[org/mate/desktop/session] -session-start=1443192888 - -[org/mate/pluma/plugins/filebrowser/on-load] -virtual-root='file:///tmp' -tree-view=true -root='file:///' - -[org/mate/pluma] -statusbar-visible=true - -[org/mate/marco/general] -mouse-button-modifier='<Super>' -side-by-side-tiling=true -focus-mode='click' -theme='Purdue' - -[org/mate/panel/general] -show-program-list=true -toplevel-id-list=['top', 'bottom'] -history-mate-run=['/homes/shumakl/.prefix.x86_64/bin/urxvt', '/bin/bash --noprofile --norc', 'mate-terminal /bin/sh', 'vncviewer', 'gimp', 'emacs', 'killall emacs', 'urxvt', 'mate-terminal bash --noprofile --norc', 'mate-terminal'] -object-id-list=['menu-bar', 'separator', 'terminal', 'web-browser', 'notification-area', 'clock', 'window-menu', 'show-desktop', 'window-list', 'workspace-switcher', 'object_0'] - -[org/mate/panel/toplevels/bottom] -expand=true -orientation='bottom' -screen=0 -y-bottom=0 -size=24 -y=1055 - -[org/mate/panel/toplevels/top] -expand=true -orientation='top' -screen=0 -size=24 - -[org/mate/panel/objects/workspace-switcher] -applet-iid='WnckletFactory::WorkspaceSwitcherApplet' -locked=true -toplevel-id='bottom' -position=0 -object-type='applet' -panel-right-stick=true - -[org/mate/panel/objects/clock] -applet-iid='ClockAppletFactory::ClockApplet' -locked=true -toplevel-id='top' -position=5 -object-type='applet' -panel-right-stick=true - -[org/mate/panel/objects/clock/prefs] -format='12-hour' -custom-format='' - -[org/mate/panel/objects/object_0] -launcher-location='v-editor.desktop' -toplevel-id='top' -position=296 -object-type='launcher' -panel-right-stick=false - -[org/mate/panel/objects/separator] -locked=true -toplevel-id='top' -position=5 -object-type='separator' - -[org/mate/panel/objects/menu-bar] -locked=true -toplevel-id='top' -position=0 -object-type='menu-bar' - -[org/mate/panel/objects/window-menu] -applet-iid='WnckletFactory::WindowMenuApplet' -locked=true -toplevel-id='top' -position=0 -object-type='applet' -panel-right-stick=true - -[org/mate/panel/objects/window-list] -applet-iid='WnckletFactory::WindowListApplet' -locked=true -toplevel-id='bottom' -position=20 -object-type='applet' - -[org/mate/panel/objects/notification-area] -applet-iid='NotificationAreaAppletFactory::NotificationArea' -locked=true -toplevel-id='top' -position=10 -object-type='applet' -panel-right-stick=true - -[org/mate/panel/objects/show-desktop] -applet-iid='WnckletFactory::ShowDesktopApplet' -locked=true -toplevel-id='bottom' -position=0 -object-type='applet' - -[org/mate/panel/objects/web-browser] -locked=true -launcher-location='/usr/share/applications/firefox.desktop' -toplevel-id='top' -position=10 -object-type='launcher' - -[org/mate/panel/objects/terminal] -locked=true -launcher-location='urxvt.desktop' -toplevel-id='top' -position=10 -object-type='launcher' - -[org/mate/caja/window-state] -start-with-sidebar=true -geometry='800x550+312+123' -start-with-status-bar=true -maximized=true -start-with-toolbar=true +[org/onboard/auto-show] +enabled=false + +[org/onboard/keyboard] +show-click-buttons=true + +[org/onboard] +current-settings-page=1 +use-system-defaults=false +theme='/usr/share/onboard/themes/Nightshade.theme' +system-theme-associations={'LowContrast': 'LowContrast', 'oxygen-gtk': '/usr/share/onboard/themes/Nightshade.theme', 'Default': '', 'HighContrast': 'HighContrast', 'HighContrastInverse': 'HighContrastInverse'} +start-minimized=true +layout='/home/lukeshu-parabola/.local/share/onboard/layouts/LukeShu.onboard' +schema-version='2.3' +snippets=['0:Onboard\\\\nHome:https\\://launchpad.net/onboard', '1:Example:Create your macros here.'] +status-icon-provider='auto' + +[org/onboard/theme-settings] +key-size=94.0 +key-stroke-width=0.0 +key-gradient-direction=-3.0 +color-scheme='/usr/share/onboard/themes/Charcoal.colors' +key-fill-gradient=8.0 +key-style='gradient' +background-gradient=0.0 +key-stroke-gradient=8.0 +key-label-font='' +key-shadow-strength=0.0 +key-shadow-size=0.0 +roundrect-radius=20.0 + +[org/onboard/typing-assistance/word-suggestions] +enabled=false + +[org/onboard/window] +docking-enabled=true +window-handles='' + +[org/onboard/window/landscape] +width=663 +dock-expand=true +x=0 +y=0 + +[org/onboard/scanner] +enabled=false + +[org/gtk/settings/file-chooser] +sort-column='name' +sidebar-width=156 +window-position=(83, 40) +show-size-column=true +show-hidden=false +window-size=(858, 622) +sort-directories-first=false +date-format='regular' +sort-order='ascending' +location-mode='path-bar' [org/mate/atril/default] -window-ratio=(3.1209150326797386, 1.2676767676767677) +continuous=true +fullscreen=false +show-toolbar=true +show-sidebar=false +inverted-colors=false +sidebar-page='links' +sidebar-size=132 +dual-page=false +sizing-mode='free' diff --git a/.config/emacs/custom.el b/.config/emacs/custom.el index f5d9860..8abff88 100644 --- a/.config/emacs/custom.el +++ b/.config/emacs/custom.el @@ -28,24 +28,30 @@ '(org-latex-pdf-process (quote ("xelatex -interaction nonstopmode -output-directory %o %f" "xelatex -interaction nonstopmode -output-directory %o %f" "xelatex -interaction nonstopmode -output-directory %o %f"))) + '(org-src-fontify-natively t) + '(package-selected-packages + (quote + (haml-mode haskell-mode csharp-mode php-mode less-css-mode yaml-mode smart-tabs-mode scss-mode sass-mode page-break-lines nginx-mode mediawiki markdown-mode jabber graphviz-dot-mode gradle-mode go-mode glsl-mode editorconfig dtrt-indent coffee-mode cmake-mode bison-mode))) + '(ruby-deep-arglist nil) + '(ruby-deep-indent-paren nil) '(safe-local-variable-values (quote ((Fill-Column . 64) (eval c-set-offset - (quote arglist-close) - 0) + (quote arglist-close) + 0) (eval c-set-offset - (quote arglist-intro) - (quote ++)) + (quote arglist-intro) + (quote ++)) (eval c-set-offset - (quote case-label) - 0) + (quote case-label) + 0) (eval c-set-offset - (quote statement-case-open) - 0) + (quote statement-case-open) + 0) (eval c-set-offset - (quote substatement-open) - 0) + (quote substatement-open) + 0) (Nginx-indent-tabs-mode) (Nginx-indent-level . 4) (Nginx-indent-level . 8) diff --git a/.config/emacs/init.el b/.config/emacs/init.el index 1a5d719..1dee34a 100644 --- a/.config/emacs/init.el +++ b/.config/emacs/init.el @@ -108,15 +108,38 @@ (use-package glsl-mode :mode ("\\.vert\\'" "\\.frag\\'" "\\.geom\\'" "\\.glsl\\'")) (use-package go-mode :mode "\\.go\\'") (use-package haml-mode :mode "\\.haml\\'") +(use-package haskell-mode + :mode (("\\.hcr\\'" . ghc-core-mode) + ("\\.dump-simpl\\'" . ghc-core-mode) + ("\\.ghci\\'" . ghci-script-mode-mode) + ("\\.chs\\'" . haskell-c2hs-mode) + ("\\.cabal\\'" . haskell-cabal-mode) + ("\\.[gh]s\\'" . haskell-mode) + ("\\.l[gh]s\\'" . literate-haskell-mode) + ("\\.hsc\\'" . haskell-mode)) + :interpreter ("runghc" "runhaskell")) (use-package less-css-mode :mode "\\.less\\'") (use-package markdown-mode :mode ("\\.markdown\\'" "\\.md\\'" "\\.ronn\\'")) (use-package nginx-mode :mode ("nginx\\.conf\\'" "/nginx/.+\\.conf\\'")) -(use-package php-mode :mode ("\\.php[s345t]?\\'" "/\\.php_cs\\(\\.dist\\)?\\'" "\\.phtml\\'" "/Amkfile\\'" "\\.amk\\'")) +(use-package php-mode + :mode ("\\.php[s345t]?\\'" "/\\.php_cs\\(\\.dist\\)?\\'" "\\.phtml\\'" "/Amkfile\\'" "\\.amk\\'") + :interpreter "php\\(?:-?[3457]\\(?:\\.[0-9]+\\)*\\)?") (use-package scss-mode :mode "\\.scss\\'") -(use-package yaml-mode :mode "\\.e?ya?ml\\'") +(use-package yaml-mode :mode "\\.\\(e?ya?\\|ra\\)ml\\'") ;;(use-package nxhtml) ; nxhtml is invasive, only enable if actively using +;; IDK? I guess I decided that plain php-mode had improved? +;; +;;(use-package php-mode-improved +;; :mode (("\\.php[s34]?\\'" . php-mode) +;; ("\\.phtml\\'" . php-mode) +;; ("\\.inc\\'" . php-mode)) +;; :config (add-hook 'php-mode-hook +;; '(lambda () +;; (c-set-offset 'cpp-macro 0) +;; ))) + (if (file-exists-p "~/Maildir") ;;'(apel flim semi wanderlust) (use-package wanderlust diff --git a/.config/login.d/10_gpg.sh b/.config/login.d/10_gpg.sh index 83e4203..01fcbe2 100644 --- a/.config/login.d/10_gpg.sh +++ b/.config/login.d/10_gpg.sh @@ -1,4 +1,4 @@ #!/hint/sh -if [ -z "$GPGKEY" -a -f "${HOME}/.gnupg/gpg.conf" ]; then +if [ -z "$GPGKEY" -a -f "${GNUPG_HOME:-${HOME}/.gnupg}/gpg.conf" ]; then export GPGKEY=`sed -nr 's/^\s*default-key\s+//p' "${GNUPG_HOME:-${HOME}/.gnupg}/gpg.conf"` fi diff --git a/.config/lxpanel/default/panels/panel b/.config/lxpanel/default/panels/panel index 93bdb61..ccde93c 100644 --- a/.config/lxpanel/default/panels/panel +++ b/.config/lxpanel/default/panels/panel @@ -1,52 +1,47 @@ -# lxpanel <profile> config file. Manually editing is not recommended. -# Use preference dialog in lxpanel to adjust config when you can. - Global { - edge=top - allign=right - margin=0 - widthtype=percent - width=100 - height=16 - transparent=1 - tintcolor=#555753 - alpha=255 - autohide=0 - heightwhenhidden=2 - setdocktype=1 - setpartialstrut=1 - usefontcolor=1 - fontsize=10 - fontcolor=#eeeeec - usefontsize=0 - background=0 - backgroundfile=/usr/share/lxpanel/images/background.png - iconsize=16 - loglevel=2 + monitor=-1 + edge=top + setdocktype=1 + setpartialstrut=1 + + widthtype=percent + width=100 + + height=16 + iconsize=16 + + transparent=1 + tintcolor=#555753 + alpha=255 + + loglevel=2 } Plugin { - type = menu - Config { - image=/usr/share/lxpanel/images/my-computer.png - system { - } - } + type=menu + Config { + # If we don't explicitly give the menu a list of + # things to contain, it will default to + # system{}/separator{}/item{command=run}/separator{}/item{command=logout} + system { + } + } } Plugin { - type = space - expand=1 - Config { - Size=2 - } + type=space + expand=1 + Config { + # The default ("natural") size is 1, but the min size + # is 2, so we have to set that here. + Size=2 + } } Plugin { - type = tray + type=tray } Plugin { - type = volumealsa + type=volumealsa } - diff --git a/.config/systemd/user/onboard@.service b/.config/systemd/user/onboard@.service new file mode 100644 index 0000000..541731f --- /dev/null +++ b/.config/systemd/user/onboard@.service @@ -0,0 +1,12 @@ +[Unit] +Description=Onboard on-screen keyboard on X display %I +Documentation=man:onboard(1) +After=X11@%i.target panel@%i.target +Requisite=X11@%i.target +BindsTo=panel@%i.target + +[Service] +Environment=DISPLAY=%I + +Type=simple +ExecStart=/usr/bin/env onboard diff --git a/.config/systemd/user/wmii@.service.wants/onboard@.service b/.config/systemd/user/wmii@.service.wants/onboard@.service new file mode 120000 index 0000000..fbe829b --- /dev/null +++ b/.config/systemd/user/wmii@.service.wants/onboard@.service @@ -0,0 +1 @@ +../onboard@.service
\ No newline at end of file diff --git a/.config/systemd/user/wmii@.service.wants/rbar@98_wifi.service b/.config/systemd/user/wmii@.service.wants/rbar@98_wifi.service new file mode 120000 index 0000000..286989e --- /dev/null +++ b/.config/systemd/user/wmii@.service.wants/rbar@98_wifi.service @@ -0,0 +1 @@ +../rbar@.service
\ No newline at end of file diff --git a/.config/systemd/user/wmii@.service.wants/redshift@.service b/.config/systemd/user/wmii@.service.wants/redshift@.service new file mode 120000 index 0000000..59234a7 --- /dev/null +++ b/.config/systemd/user/wmii@.service.wants/redshift@.service @@ -0,0 +1 @@ +../redshift@.service
\ No newline at end of file diff --git a/.config/systemd/user/wmii@.service.wants/x0vncserver@.service b/.config/systemd/user/wmii@.service.wants/x0vncserver@.service new file mode 120000 index 0000000..bc3be20 --- /dev/null +++ b/.config/systemd/user/wmii@.service.wants/x0vncserver@.service @@ -0,0 +1 @@ +../x0vncserver@.service
\ No newline at end of file diff --git a/.config/wmii-hg/config.sh b/.config/wmii-hg/config.sh index e56166e..246c845 100644 --- a/.config/wmii-hg/config.sh +++ b/.config/wmii-hg/config.sh @@ -164,7 +164,9 @@ Event() { DestroyTag) ## $1=tag rm $WMII_DIR/lbar/$1;; FocusTag) ## $1=tag - echo colors "$WMII_FOCUSCOLORS" >> $WMII_DIR/lbar/$1;; + echo colors "$WMII_FOCUSCOLORS" >> $WMII_DIR/lbar/$1 + onboard-hack + ;; UnfocusTag) ## $1=tag echo colors "$WMII_NORMCOLORS" >> $WMII_DIR/lbar/$1;; UrgentTag) ## $1=[Manager|Client] $2=tag diff --git a/.config/wmii-hg/ctl-init b/.config/wmii-hg/ctl-init index 026c0d5..a7e5358 100644 --- a/.config/wmii-hg/ctl-init +++ b/.config/wmii-hg/ctl-init @@ -1,5 +1,5 @@ font xft:Monospace-8 focuscolors $WMII_FOCUSCOLORS normcolors $WMII_NORMCOLORS -grabmod $MODKEY +grabmod Mod5 border 1 diff --git a/.config/wmii-hg/rules b/.config/wmii-hg/rules index 65f8339..bf219bc 100644 --- a/.config/wmii-hg/rules +++ b/.config/wmii-hg/rules @@ -1,5 +1,6 @@ /wimenu/ floating=always /panel/ tags=/.*/ floating=always +/^onboard:/ tags=/.*/ floating=always /^FLTK:FLTK:/ floating=always diff --git a/.config/wmii-hg/workarounds.sh b/.config/wmii-hg/workarounds.sh index c0b6f31..66ea64c 100644 --- a/.config/wmii-hg/workarounds.sh +++ b/.config/wmii-hg/workarounds.sh @@ -40,3 +40,23 @@ systemd-notify() { printf -v n '%s\n' "${our_env[@]}" socat STDIO UNIX-SENDTO:"$NOTIFY_SOCKET" <<<"$n" } + +## +# Reposition Onboard in the correct location +# +# I think this is actually working around a +# WMII bug where it confuses the heights when +# there are multiple panels. +# +onboard-hack() { + local res=$(xdpyinfo|awk '/^\s*dimensions:/{print $2}') + [[ "$res" == *x* ]] || break + local file wid size + while read -r file; do + wid="${file%/props}" + wid="${wid##*/}" + size=$(xdotool getwindowgeometry 0x01000007|awk '/^\s*Geometry:/{print $2}') + [[ "$size" == *x* ]] || continue + xdotool windowmove "$wid" 0 "$(bc <<<"${res#*x}-${size#*x}")" + done < <(grep -l ^onboard: -- "$WMII_DIR"/client/*/props) +} diff --git a/.local/bin/backlight b/.local/bin/backlight new file mode 100755 index 0000000..cf48dca --- /dev/null +++ b/.local/bin/backlight @@ -0,0 +1,20 @@ +#!/bin/bash + +[[ -n "$BACKLIGHT" ]] || BACKLIGHT=intel_backlight +fmax=/sys/class/backlight/$BACKLIGHT/max_brightness +fcur=/sys/class/backlight/$BACKLIGHT/brightness +read max < $fmax || exit $? +case $# in + 0) + read cur < $fcur + bc <<<"100*$cur/$max" | cut -d. -f1 + ;; + 1) + declare -i pct="$1" + bc <<<"$max*$pct/100" | cut -d. -f1 > $fcur + ;; + *) + echo "Usage: [BACKLIGHT=<device_id>] backlight [<percent>]" >&2 + exit 1 + ;; +esac |