Update init.el and XResources.
This commit is contained in:
parent
42ca088495
commit
64863a0b48
|
@ -0,0 +1,12 @@
|
|||
gtk-can-change-accels = 1
|
||||
gtk-key-theme-name = "Emacs"
|
||||
|
||||
gtk-icon-theme-name = "old-gnome-set"
|
||||
gtk-theme-name = "ColdMotif"
|
||||
|
||||
style "user-font"
|
||||
{
|
||||
font_name="Clear Sans Regular 10"
|
||||
}
|
||||
widget_class "*" style "user-font"
|
||||
gtk-font-name = "Clear Sans Regular 10"
|
|
@ -0,0 +1,64 @@
|
|||
#!/bin/es
|
||||
. ~/.esrc
|
||||
|
||||
fn load_configs{
|
||||
for (x=`{ls ~/.config/xresources/*})
|
||||
{xrdb -merge $x}
|
||||
}
|
||||
fn setup_daemons{
|
||||
if {~ $HOSTNAME speculatores}
|
||||
{
|
||||
}
|
||||
{
|
||||
# Start the compositor.
|
||||
picom -cCzfGD3 --shadow-exclude bounding_shaped --vsync --no-use-damage --backend $backend&
|
||||
}
|
||||
|
||||
|
||||
# Manage clicks on the root window.
|
||||
# xclickroot -1 ~/.config/fxde/fxde-core/config/menu &
|
||||
|
||||
# Manage hotkeys.
|
||||
sxhkd -c $FXDE_DIR/fxde-core/config/sxhkdrc &
|
||||
|
||||
# Start the screen locker on a timer.
|
||||
xssstart slock &
|
||||
}
|
||||
fn start_ui{
|
||||
# Welcome chime.
|
||||
aplay $FXDE_DIR/fxde-assets/audio/Login.wav &
|
||||
|
||||
# Set cursor.
|
||||
xsetroot -xcf $FXDE_DIR/fxde-assets/cursors/$CURSOR/cursors/left_ptr 12 &
|
||||
# Set wallpaper.
|
||||
xwallpaper --no-randr --stretch $FXDE_DIR/fxde-assets/wallpaper/$PAPE
|
||||
# Start the status bar. Doesn't work in some WMs. EWMH maybe..?
|
||||
#$FXDE_DIR/fxde-core/scripts/bar.es|lemonbar -b -F '#FFFFFF' -g265x16+0+0 -B '#00000000' -f 'xft:family=Iosevka:style=Mono:size=11:' |sh - &
|
||||
# Start the system clock.
|
||||
respawn xclock &
|
||||
|
||||
# Start the load monitor.
|
||||
respawn xload &
|
||||
|
||||
# Spawn a tray.
|
||||
stalonetray --window-type desktop --icon-gravity N -v -t --grow-gravity S -i 24 --geometry 1x1+0-17 &
|
||||
}
|
||||
################################################################################
|
||||
## The actual config is below this. ##
|
||||
################################################################################
|
||||
|
||||
# Where to look for assets.
|
||||
FXDE_DIR=~/.config/fxde/
|
||||
FVWM_DIR=~/.config/fxde/
|
||||
|
||||
# Paper to use.
|
||||
PAPE=magic-tree.png
|
||||
|
||||
# What cursor?
|
||||
CURSOR=Lambda
|
||||
|
||||
# What WM?
|
||||
wm=emwm
|
||||
|
||||
for (phase=load_configs setup_daemons start_ui){$phase}
|
||||
exec $wm
|
367
misc/init.el
367
misc/init.el
|
@ -1,190 +1,126 @@
|
|||
;;; package -- summary
|
||||
;;; Commentary:
|
||||
;;;; package --- Summary
|
||||
|
||||
;;; Code:
|
||||
;;;; Commentary:
|
||||
|
||||
;; This section is for boilerplate code.
|
||||
;;;; Index:
|
||||
|
||||
; Hide the tool bar.
|
||||
(tool-bar-mode 0)
|
||||
;;; Section One - Packageless Configurations
|
||||
;;; Subsection 1.1 - GUI
|
||||
;;; Subsection 1.2 - Functions and Bindings
|
||||
;;; Subsection 1.3 - Backend
|
||||
;;;
|
||||
;;; Section Two - Package-required Configurations
|
||||
;;; Subsection 2.1 - GUI
|
||||
;;; Subsection 2.2 - Functions and Bindings
|
||||
;;; Subsection 2.3 - Backend
|
||||
|
||||
; Set the default geometry of the Emacs frame.
|
||||
;;;; Code:
|
||||
|
||||
;; Section One
|
||||
|
||||
;; Subsection 1.1
|
||||
|
||||
;; Default theme.
|
||||
;(load-theme `solarized-light t)
|
||||
|
||||
;; Fonts and faces.
|
||||
;;(set-frame-font "Iosevka-13")
|
||||
(custom-set-faces
|
||||
'(default ((t (:family "Iosevka" :foundry "UKWN" :slant normal :weight normal :height 120 :width normal)))))
|
||||
|
||||
;(set-frame-font "Iosevka Regular-13" nil t)
|
||||
|
||||
;; ’y’ or ’n’ is fine
|
||||
(fset 'yes-or-no-p 'y-or-n-p)
|
||||
|
||||
;; Inhibit the GNU information startup dialog.
|
||||
(setq inhibit-startup-message t)
|
||||
|
||||
;; Set the default geometry of the frame in GUI mode.
|
||||
(setq default-frame-alist
|
||||
'((top . 200) (left . 400)
|
||||
(width . 80) (height . 25)))
|
||||
|
||||
;; Include the golden-ratio package to keep things pleasing.
|
||||
(use-package golden-ratio)
|
||||
(golden-ratio-mode)
|
||||
;; Hide the toolbar in GUI mode.
|
||||
(tool-bar-mode 0)
|
||||
|
||||
;; Hide the scrollbar.
|
||||
(scroll-bar-mode 0)
|
||||
|
||||
;; Set fringe style.
|
||||
(set-fringe-mode '(0 . 0))
|
||||
|
||||
;; Enable frame dividers.
|
||||
(setq window-divider-default-places t)
|
||||
(window-divider-mode 1)
|
||||
|
||||
|
||||
; Automatically compile ELisp when saving
|
||||
(auto-compile-on-save-mode)
|
||||
;; Subsection 1.2
|
||||
|
||||
; Increase the garbage collector's threshold
|
||||
;; Allow for multiple Wowsers.
|
||||
(defun xah-rename-eww-hook ()
|
||||
"Rename eww buffers on the fly."
|
||||
(rename-buffer "eww" t))
|
||||
(add-hook 'eww-mode-hook #' xah-rename-eww-hook)
|
||||
|
||||
;; Kill the current buffer.
|
||||
(global-set-key (kbd "C-x k") 'kill-this-buffer)
|
||||
|
||||
|
||||
;; Subsection 1.3
|
||||
|
||||
;; Set the Web Wowser as the default in-Emacs browser.
|
||||
(eval-after-load "eww"
|
||||
`(setq
|
||||
browse-url-browser-function 'eww-browse-url
|
||||
shr-use-fonts nil
|
||||
shr-use-colors nil
|
||||
shr-indentation 2
|
||||
eww-search-prefix "https://duckduckgo.com/lite"))
|
||||
|
||||
|
||||
;; Byte-compile ELisp when saving.
|
||||
(auto-compile-on-save-mode t)
|
||||
|
||||
;; Increase the garbage collector’s threshold.
|
||||
(setq gc-cons-threshold 100000000)
|
||||
(setq large-file-warning-threshold 1000000000)
|
||||
|
||||
; Store temporary files in the temp directory, where they belong
|
||||
(setq backup-directory-alist
|
||||
`((".*" . ,temporary-file-directory)))
|
||||
;; Store temporary files in a backup directory.
|
||||
(setq temporary-file-directory "~/.config/emacs/.backup/temp/")
|
||||
(progn (defvar auto-save-directory) (setq auto-save-directory "~/.config/emacs/.backup/autosave/"))
|
||||
(setq tramp-auto-save-directory "~/.config/emacs/.backup/autosave/")
|
||||
(make-directory temporary-file-directory t)
|
||||
(make-directory auto-save-directory t)
|
||||
(setq auto-save-file-name-transforms
|
||||
`((".*" ,temporary-file-directory t)))
|
||||
`(("\\(?:[^/]*/\\)*\\(.*\\)" ,(concat auto-save-directory "\\1") t)))
|
||||
|
||||
; 'y' or 'n' is fine
|
||||
(fset 'yes-or-no-p 'y-or-n-p)
|
||||
|
||||
; Automatically reload files as needed
|
||||
;; Automatically reload files as needed.
|
||||
(global-auto-revert-mode t)
|
||||
|
||||
; Set tab width
|
||||
;(setq-default tab-width 4
|
||||
; indent-tabs-mode nil)
|
||||
|
||||
; Kill our current buffer
|
||||
(global-set-key (kbd "C-x k") 'kill-this-buffer)
|
||||
|
||||
; Remove unneeded whitespace when exiting
|
||||
;(add-hook 'before-save-hook 'whitespace-cleanup)
|
||||
;Replace the above with butler
|
||||
|
||||
;(use-package smartparens
|
||||
; :ensure t
|
||||
; :config
|
||||
; (progn
|
||||
; (require 'smartparens-config)
|
||||
; (smartparens-global-mode 1)
|
||||
; (show-paren-mode t)))
|
||||
|
||||
; Set the Web Wowser as the default browser in EMACS
|
||||
(setq
|
||||
browse-url-browser-function 'eww-browse-url
|
||||
shr-use-fonts nil
|
||||
shr-use-colors nil
|
||||
shr-indentation 2
|
||||
eww-search-prefix "https://duckduckgo.com/html")
|
||||
|
||||
; Inhibit the GNU information startup dialog.
|
||||
(setq inhibit-startup-message t)
|
||||
;; Remove unneeded whitespace when exiting.
|
||||
(add-hook 'before-save-hook 'whitespace-cleanup)
|
||||
|
||||
|
||||
;; Subsection 2.1
|
||||
|
||||
;; This section is for managing packages
|
||||
|
||||
|
||||
; Enable SLIME.
|
||||
(use-package slime
|
||||
;; Golden Ratio resizes the current buffer according to the golden ratio.
|
||||
(use-package golden-ratio
|
||||
:config
|
||||
(setq inferior-lisp-program "sbcl"))
|
||||
(golden-ratio-mode 1))
|
||||
|
||||
; Add auto-complete to SLIME.
|
||||
(use-package ac-slime
|
||||
:config
|
||||
(add-hook 'slime-mode-hook 'set-up-slime'ac)
|
||||
(add-hook 'slime-repl-mode-hook 'set-up-slime-ac)
|
||||
(eval-after-load "auto-complete"
|
||||
'(add-to-list 'ac-modes 'slime-repl-mode)))
|
||||
; Enhance frame management
|
||||
;(use-package cframe
|
||||
; :demand
|
||||
; :config
|
||||
;)
|
||||
|
||||
|
||||
; Add an SRFI browser
|
||||
(use-package srfi)
|
||||
|
||||
|
||||
; Automatically add spaces around mathematics operators
|
||||
(use-package electric-operator)
|
||||
|
||||
; Add Conkeror-style operations to the web wowser
|
||||
(use-package eww-lnum)
|
||||
(eval-after-load "eww"
|
||||
'(progn (define-key eww-mode-map "f" 'eww-lnum-follow)
|
||||
(define-key eww-mode-map "F" 'eww-lnum-universal)))
|
||||
|
||||
;; Configure the fuzzy-pattern matching engine, Helm
|
||||
(use-package helm
|
||||
:ensure t
|
||||
:bind
|
||||
:config
|
||||
(require 'helm-config)
|
||||
(helm-mode 1)
|
||||
(setq helm-split-window-inside-p t
|
||||
helm-move-to-line-cycle-in-source t)
|
||||
(setq helm-autoresize-max-height 0)
|
||||
(setq helm-autoresize-min-height 20)
|
||||
(helm-autoresize-mode 1)
|
||||
(define-key helm-map (kbd "<tab>")
|
||||
`helm-execute-persistent-action)
|
||||
(define-key helm-map (kbd "C-i")
|
||||
'helm-execute-persistent-action)
|
||||
(define-key helm-map (kbd "C-z")
|
||||
`helm-select-action))
|
||||
|
||||
;; Set Helm up to provide meta-x suggestions and others.
|
||||
(global-set-key (kbd "M-x") 'helm-M-x)
|
||||
(global-set-key (kbd "M-y") 'helm-show-kill-ring)
|
||||
(global-set-key (kbd "C-x b") 'helm-mini)
|
||||
(setq helm-buffers-fuzzy-matching t
|
||||
helm-recentf-fuzzy-match t)
|
||||
(global-set-key (kbd "C-x C-f") 'helm-find-files)
|
||||
|
||||
;; Prevent golden-ratio from interfering with Helm
|
||||
(defun pl/helm-alive-p ()
|
||||
(if (boundp 'helm-alive-p)
|
||||
(symbol-value 'helm-alive-p)))
|
||||
(add-to-list 'golden-ratio-inhibit-functions 'pl/helm-alive-p)
|
||||
|
||||
|
||||
;; Add Helm support to the web wowser
|
||||
(use-package helm-eww)
|
||||
|
||||
; Add on-the-fly syntax linting
|
||||
(use-package flycheck
|
||||
:demand
|
||||
:config
|
||||
(add-hook 'after-init-hook #'global-flycheck-mode))
|
||||
|
||||
|
||||
; Integrate Helm recommendations and Flycheck linting
|
||||
(use-package helm-flycheck)
|
||||
(eval-after-load 'flycheck
|
||||
'(define-key flycheck-mode-map (kbd "C-c ! h") 'helm-flycheck))
|
||||
|
||||
; Make Helm responsible for providing mode recommendations
|
||||
(use-package helm-mode-manager)
|
||||
|
||||
; Add Helm suggestion support to SLIME
|
||||
(use-package helm-slime
|
||||
:config
|
||||
(global-helm-slime-mode 1))
|
||||
|
||||
;; This section is for UI elements.
|
||||
|
||||
; Set your default theme and changes to the UI here.
|
||||
(load-theme `parchment t)
|
||||
(set-fringe-mode `(0 . 0))
|
||||
(scroll-bar-mode 0)
|
||||
|
||||
|
||||
; Powerline is similar to Centaur Tabs, except it handles the mode line.
|
||||
;; Powerline allows for modeline tweaks.
|
||||
(use-package powerline
|
||||
:demand
|
||||
:config
|
||||
(powerline-nano-theme))
|
||||
|
||||
; Stripes adds alternating stripes to buffers
|
||||
(use-package stripes
|
||||
:config
|
||||
)
|
||||
|
||||
; Popwin forces informational, educational, fantasticational buffers into a temporary window. Thank god.
|
||||
;; Popwin forces informational, educational, fantasticational buffers into a temporary window. Thank god.
|
||||
(use-package popwin
|
||||
:demand
|
||||
:config
|
||||
; Meta commands
|
||||
;; Meta commands
|
||||
(setq anything-samewindow nil)
|
||||
(push `("*anything*" :height 20) popwin:special-display-config)
|
||||
(push `("*Completions*" :height 20) popwin:special-display-config)
|
||||
|
@ -204,46 +140,97 @@
|
|||
(push '(sldb-mode :stick t) popwin:special-display-config)
|
||||
(push 'slime-repl-mode popwin:special-display-config)
|
||||
(push 'slime-connection-list-mode popwin:special-display-config)
|
||||
)
|
||||
(popwin-mode 1)
|
||||
(popwin-mode 1))
|
||||
|
||||
; Enable frame dividers
|
||||
(setq window-divider-default-places t)
|
||||
(window-divider-mode 1)
|
||||
;; Subsection 2.2
|
||||
|
||||
;; Allow us to easily get around using the Ace packages.
|
||||
(use-package ace-window
|
||||
:demand
|
||||
:config
|
||||
(global-set-key (kbd "M-o") `ace-window))
|
||||
|
||||
(use-package ace-jump-mode
|
||||
:demand
|
||||
:config
|
||||
(global-set-key (kbd "C-c SPC") 'ace-jump-mode))
|
||||
|
||||
(use-package ace-link
|
||||
:demand
|
||||
:config
|
||||
(eval-after-load "eww"
|
||||
`(define-key eww-mode-map (kbd "f") 'ace-link)))
|
||||
|
||||
;; Add SLY, a Lisp REPL.
|
||||
(use-package sly
|
||||
:config
|
||||
(setq inferior-lisp-program "sbcl"))
|
||||
|
||||
;; Configure the fuzzy-pattern matching engine, Helm
|
||||
(use-package helm
|
||||
:demand
|
||||
:ensure t
|
||||
:bind
|
||||
:config
|
||||
(require 'helm-config)
|
||||
(helm-mode 1)
|
||||
(setq helm-split-window-inside-p t
|
||||
helm-move-to-line-cycle-in-source t)
|
||||
(setq helm-autoresize-max-height 0)
|
||||
(setq helm-autoresize-min-height 20)
|
||||
(helm-autoresize-mode 1)
|
||||
(define-key helm-map (kbd "<tab>")
|
||||
`helm-execute-persistent-action)
|
||||
(define-key helm-map (kbd "C-i")
|
||||
'helm-execute-persistent-action)
|
||||
(define-key helm-map (kbd "C-z")
|
||||
`helm-select-action)
|
||||
(global-set-key (kbd "M-x") 'helm-M-x)
|
||||
(global-set-key (kbd "M-y") 'helm-show-kill-ring)
|
||||
(global-set-key (kbd "C-x b") 'helm-mini)
|
||||
(setq helm-buffers-fuzzy-matching t
|
||||
helm-recentf-fuzzy-match t)
|
||||
(global-set-key (kbd "C-x C-f") 'helm-find-files) ; Set Helm up to provide meta-x suggestions and others.
|
||||
(defun pl/helm-alive-p () "Prevent golden-ratio from interefering with Helm."
|
||||
(if (boundp 'helm-alive-p)
|
||||
(symbol-value 'helm-alive-p)))
|
||||
(add-to-list 'golden-ratio-inhibit-functions 'pl/helm-alive-p))
|
||||
|
||||
;; Add Helm support to the web wowser
|
||||
(use-package helm-eww)
|
||||
|
||||
;; Add on-the-fly syntax linting
|
||||
(use-package flycheck
|
||||
:demand
|
||||
:config
|
||||
(add-hook 'after-init-hook #'global-flycheck-mode))
|
||||
|
||||
;; Integrate Helm recommendations and Flycheck linting
|
||||
(use-package helm-flycheck
|
||||
:demand
|
||||
:config
|
||||
(eval-after-load 'flycheck
|
||||
'(define-key flycheck-mode-map (kbd "C-c ! h") 'helm-flycheck)))
|
||||
|
||||
;; Add an SRFI browser.
|
||||
(use-package srfi)
|
||||
|
||||
;; Enable development features in certain modes.
|
||||
|
||||
; Enable absolute line numbers in selected modes
|
||||
(defvar proghook-active 0)
|
||||
(defun proghook () "Function for prog mode hook."
|
||||
(display-line-numbers-mode `toggle)
|
||||
(electric-pair-mode `toggle)
|
||||
(electric-quote-mode `toggle)
|
||||
(electric-indent-mode `toggle)
|
||||
(flycheck-mode `toggle)
|
||||
(ws-butler-mode `toggle)
|
||||
(context-coloring-mode `toggle)
|
||||
(semantic-mode `toggle))
|
||||
(defun proghook () "Function for ’prog-mode’ hook."
|
||||
(display-line-numbers-mode 'toggle)
|
||||
(semantic-mode 'toggle)
|
||||
(flycheck-mode 'toggle)
|
||||
(electric-pair-mode 'toggle)
|
||||
(electric-quote-mode 'toggle)
|
||||
(electric-indent-mode 'toggle)
|
||||
(ws-butler-mode 'toggle)
|
||||
(context-coloring-mode 'toggle))
|
||||
|
||||
(add-hook 'prog-mode-hook 'proghook)
|
||||
|
||||
(custom-set-variables
|
||||
;; custom-set-variables was added by Custom.
|
||||
;; If you edit it by hand, you could mess it up, so be careful.
|
||||
;; Your init file should contain only one such instance.
|
||||
;; If there is more than one, they won't work right.
|
||||
'(custom-safe-themes
|
||||
'("07a8ce87456258f259cc5cc824eddd0ad7b0e905a4a1e9331559b86254cd8166" default))
|
||||
'(package-selected-packages
|
||||
'(haskell-mode goggles ac-html ac-helm ac-haskell-process ac-etags ac-c-headers gnuplot smartparens smooth-scroll eww-lnum helm-mode-manager helm-flycheck helm-eww ac-slime helm-slime helm-core helm ws-butler clean-aindent-mode company-c-headers company pcache link context-coloring flyspell-lazy flyspell-correct-ivy auto-compile guru-mode good-scroll golden-ratio xpm use-package ten-hundred-mode stripes srfi speed-type slime sed-mode schrute popwin paren-face parchment-theme jammer flycheck electric-operator cframe))
|
||||
'(show-paren-mode t))
|
||||
|
||||
|
||||
(provide 'init)
|
||||
;;; init.el ends here
|
||||
(custom-set-faces
|
||||
;; custom-set-faces was added by Custom.
|
||||
;; If you edit it by hand, you could mess it up, so be careful.
|
||||
;; Your init file should contain only one such instance.
|
||||
;; If there is more than one, they won't work right.
|
||||
'(default ((t (:family "Iosevka" :foundry "UKWN" :slant normal :weight normal :height 120 :width normal))))
|
||||
'(centaur-tabs-default ((t (:background "white" :foreground "white")))))
|
||||
|
||||
|
||||
;;Garbage
|
||||
|
|
|
@ -0,0 +1,28 @@
|
|||
#include "Palette"
|
||||
|
||||
*Box.background: S_base03
|
||||
*Dialog.background: S_base03
|
||||
*Form.background: S_base03
|
||||
*Label.background: S_base03
|
||||
*Paned.background: S_base03
|
||||
*Panner.background: S_base03
|
||||
*SimpleMenu.background: S_base03
|
||||
|
||||
*Command.background: S_base01
|
||||
*MenuButton.background: S_base01
|
||||
*Repeater.background: S_base01
|
||||
*Toggle.background: S_base01
|
||||
*Scrollbar.background: S_base01
|
||||
|
||||
*AsciiSink.background: S_base03
|
||||
*FontGrid.background: S_base03
|
||||
*Ghostview.background: S_base03
|
||||
*List.background: S_base03
|
||||
*Panner.foreground: S_base03
|
||||
*Porthole.background: S_base03
|
||||
*RgbSink.background: S_base03
|
||||
*RgbText.background: S_base03
|
||||
*ScrollByLine.background: S_base03
|
||||
*Text.background: S_base03
|
||||
*Tree.background: S_base03
|
||||
*Viewport.background: S_base03
|
|
@ -0,0 +1,52 @@
|
|||
!!
|
||||
!! NOTE: In Mwm 1.1.1 and newer, the resources 'buttonBindings' and
|
||||
!! 'keyBindings' should not be defined in the Mwm app-defaults file.
|
||||
!! The defaults are set internally in Mwm to 'DefaultButtonBindings' and
|
||||
!! 'DefaultKeyBindings' respectively.
|
||||
!!
|
||||
!! Users and system admin need only define the default button and key
|
||||
!! bindings in the appropriate mwm config file (ie. .mwmrc or
|
||||
!! system.mwmrc).
|
||||
!!
|
||||
!! The 'windowMenu' resource defaults to 'DefaultWindowMenu', and
|
||||
!! in Mwm 1.2 there is a default root menu that is defined as
|
||||
!! 'DefaultRootMenu'.
|
||||
!!
|
||||
|
||||
!Mwm*moveThreshold: 3
|
||||
|
||||
!!
|
||||
!! NOTE: In Mwm 1.2, the resources 'resizeBorderWidth' and 'frameBorderWidth'
|
||||
!! are calculated dynamically depending on the size and resolution of
|
||||
!! the screen. In general, you should not have to set these resources
|
||||
!! in the Mwm app-defaults file.
|
||||
!!
|
||||
|
||||
|
||||
|
||||
!! Xft fonts
|
||||
Mwm*renderTable: variable
|
||||
Mwm*renderTable.variable.fontType: FONT_IS_XFT
|
||||
Mwm*renderTable.variable.fontName: Clear Sans
|
||||
Mwm*renderTable.variable.fontSize: 13
|
||||
|
||||
!! Title bar style
|
||||
Mwm*title.renderTable: title
|
||||
Mwm*renderTable.title.fontType: FONT_IS_XFT
|
||||
Mwm*renderTable.title.fontName: Clear Sans Medium
|
||||
Mwm*renderTable.title.fontSize: 13
|
||||
Mwm*renderTable.title.fontStyle: Bold
|
||||
Mwm*titleLeft: True
|
||||
|
||||
!! Icon label font style
|
||||
Mwm*icon.renderTable: icon
|
||||
Mwm*renderTable.icon.fontType: FONT_IS_XFT
|
||||
Mwm*renderTable.icon.fontName: Clear Sans Light
|
||||
Mwm*renderTable.icon.fontSize: 11
|
||||
Mwm*renderTable.icon.fontStyle: Bold Italic
|
||||
|
||||
!! Client decorations for common clients
|
||||
Mwm*lemonbar*clientDecoration: none
|
||||
Mwm*stalonetray*clientDecoration: none
|
||||
Mwm*XClock*clientDecoration: border
|
||||
Mwm*XLoad*clientDecoration: border
|
|
@ -0,0 +1,9 @@
|
|||
#include "Palette"
|
||||
|
||||
Mwm*client*background: S_base1
|
||||
Mwm*client*foreground: S_base02
|
||||
Mwm*client*activeBackground: S_base3
|
||||
Mwm*client*activeForeground: S_base03
|
||||
|
||||
Mwm*menu*background: S_base3
|
||||
Mwm*menu*foreground: S_base03
|
|
@ -0,0 +1,53 @@
|
|||
! ---=== Experiment with making Motif more aesthetic ===---
|
||||
! - Hide text cursors in unfocused fields
|
||||
! - Convert on-hover effect from shadow to background color or border
|
||||
! - Pick better fonts and check which package provides them
|
||||
|
||||
|
||||
! These had no effect on my system but, from what I read, they help on
|
||||
! some systems.
|
||||
!.*enableThinThickness: True
|
||||
!.*enableEtchedInMenu: True
|
||||
.*enableToggleColor: True
|
||||
.*enableToggleVisual: True
|
||||
|
||||
! Thick borders and shadows everywhere are archaic
|
||||
!.*shadowThickness: 1
|
||||
!.*borderThickness: 0
|
||||
!.*?*arg*shadowThickness: 1
|
||||
!.*?*arg*borderThickness: 0
|
||||
!.*?*buttons*shadowThickness: 1
|
||||
!.*?*buttons*borderThickness: 0
|
||||
|
||||
! Un-cramp the menubar, menus, and toolbar to match modern compact sizing
|
||||
.*menubar*marginTop: 1
|
||||
.*menubar*marginBottom: 0
|
||||
.*XmMenuShell*marginTop: 2
|
||||
.*XmMenuShell*marginBottom: 2
|
||||
.*XmMenuShell.?.marginWidth: 2
|
||||
.*XmMenuShell.?.marginHeight: 2
|
||||
.*toolbar*marginWidth: 5
|
||||
|
||||
! Compact the menu tear-off buttons
|
||||
.*XmMenuShell*XmTearOffButton*borderWidth: 0
|
||||
.*XmMenuShell*XmTearOffButton*marginHeight: 0
|
||||
|
||||
|
||||
! The menu bar should not have a raised border
|
||||
!.*menubar.shadowThickness: 0
|
||||
!.*menubar.borderThickness: 0
|
||||
!.*XmMenuShell*XmTearOffButton*ShadowThickness: 2
|
||||
|
||||
! ...and we do not want a border around the toolbar to make that stand out
|
||||
!.*main_window.?.borderThickness: 0
|
||||
!.*main_window.shadowThickness: 0
|
||||
|
||||
! Drop-down boxes in toolbars do not have raised borders these days
|
||||
!.*toolbar.shadowThickness: 0
|
||||
!.*toolbar.?.shadowThickness: 1
|
||||
|
||||
! Set Motif fonts to a nicer TTF.
|
||||
.*renderTable: variable
|
||||
.*renderTable.variable.fontType: FONT_IS_XFT
|
||||
.*renderTable.variable.fontName: Clear Sans
|
||||
.*renderTable.variable.fontSize: 11
|
|
@ -0,0 +1,4 @@
|
|||
#include "Palette"
|
||||
|
||||
.*background: S_base03
|
||||
.*foreground: S_base0
|
|
@ -0,0 +1,22 @@
|
|||
!! Common
|
||||
|
||||
#define S_yellow #b58900
|
||||
#define S_orange #cb4b16
|
||||
#define S_red #dc322f
|
||||
#define S_magenta #d33682
|
||||
#define S_violet #6c71c4
|
||||
#define S_blue #268bd2
|
||||
#define S_cyan #2aa198
|
||||
#define S_green #859900
|
||||
|
||||
|
||||
!! Light
|
||||
|
||||
#define S_base03 #fdf6e3
|
||||
#define S_base02 #eee8d5
|
||||
#define S_base01 #93a1a1
|
||||
#define S_base00 #839496
|
||||
#define S_base0 #657b83
|
||||
#define S_base1 #586e75
|
||||
#define S_base2 #073642
|
||||
#define S_base3 #002b36
|
|
@ -0,0 +1,17 @@
|
|||
|
||||
This archive contains a set of files that provide a consistent
|
||||
look compliant with Solarized Light across the following
|
||||
applications;
|
||||
|
||||
-GNU Emacs [TODO]
|
||||
-Athena widgets [Mostly done?]
|
||||
-Motif widgets [Soon]
|
||||
-GTK2 widgets [TODO]
|
||||
-XTerm [DONE]
|
||||
-XClock [DONE]
|
||||
-XLoad [DONE]
|
||||
-MWM [Soon]
|
||||
|
||||
You can take advance of this by simply loading these files into
|
||||
your X Resources Database for X programs, and modifying your
|
||||
~/.gtkrc-2.0 for GTK2.
|
|
@ -0,0 +1,9 @@
|
|||
old: Deprecated and legacy XResources. Mostly for programs no longer in use.
|
||||
fix: Broken XResources that still contain interesting information.
|
||||
colors: Directory containing color schemes, to be #include’d in Look
|
||||
xpms: XPM images, for use with Look.
|
||||
Look: System-wide "look" resources, such as colors, fonts, shadows, etc
|
||||
Feel: System-wide "feel" resources, such as bindings, refresh rates, etc
|
||||
MOTIF: MOTIF-specific resources.
|
||||
Athena: Athena-specific resources. Mostly to keep Athena looking like MOTIF.
|
||||
$PROGNAME: Program-specific resources, e.g XCalc, XTerm, and so on.
|
|
@ -0,0 +1,4 @@
|
|||
!! Look
|
||||
|
||||
! Set XCalendar to a more reasonable size.
|
||||
XCalendar*geometry: 224x256
|
|
@ -0,0 +1,10 @@
|
|||
!! Look
|
||||
|
||||
XClock*render: True
|
||||
XClock*width: 164
|
||||
XClock*height: 164
|
||||
XClock*geometry: -0-0
|
||||
XClock*update: 1
|
||||
XClock*padding: 0
|
||||
XClock*chime: True
|
||||
XClock*buffer: True
|
|
@ -0,0 +1,11 @@
|
|||
#include "Palette"
|
||||
|
||||
XClock*background: S_base03
|
||||
XClock*foreground: S_base0
|
||||
|
||||
XClock*hourColor: S_base0
|
||||
XClock*minuteColor: S_base0
|
||||
XClock*secondColor: S_base0
|
||||
|
||||
XClock*majorColor: S_orange
|
||||
XClock*minorColor: S_blue
|
|
@ -0,0 +1,7 @@
|
|||
|
||||
XLoad*showLabel: False
|
||||
XLoad*border: 0
|
||||
XLoad*width: 164
|
||||
XLoad*height: 164
|
||||
XLoad*geometry: -174-0
|
||||
XLoad*update: 1
|
|
@ -0,0 +1,5 @@
|
|||
#include "Palette"
|
||||
|
||||
XLoad*background: S_base03
|
||||
XLoad*foreground: S_base0
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
!! Look
|
||||
|
||||
! Use a more reasonable portion of the display.
|
||||
XRn.geometry: 500x500
|
||||
|
||||
! Put buttons on top of the area they affect, like most programs.
|
||||
XRn*buttonsOnTop: True
|
||||
|
||||
!! Feel
|
||||
|
||||
|
||||
!! Under-the-hood Configuration Details
|
||||
|
||||
! Set your preferred net news server.
|
||||
XRn*nntpServer: news.eternal-september.org
|
||||
|
||||
! Ask for your password on startup.
|
||||
XRn*authenticateOnConnect: True
|
||||
|
||||
! Use a cache to improve performance. Stores in the home directory.
|
||||
XRn*cacheActive: True
|
||||
|
||||
! Set your preferred editor command.
|
||||
XRn*editorCommand: emacsclient -cunq
|
|
@ -1,14 +1,11 @@
|
|||
!! Cosmetics.
|
||||
!! Look.
|
||||
|
||||
! Widgets.
|
||||
xterm*faceName: Iosevka Regular
|
||||
xterm*faceSize: 12
|
||||
xterm*background: black
|
||||
|
||||
xterm*foreground: white
|
||||
|
||||
! Misc.
|
||||
xterm*title: Terminal
|
||||
xterm*title: XTerminal
|
||||
|
||||
!! Functionality.
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
#include "Palette"
|
||||
|
||||
XTerm*background: S_base03
|
||||
XTerm*foreground: S_base0
|
||||
XTerm*fading: 40
|
||||
XTerm*fadeColor: S_base03
|
||||
XTerm*cursorColor: S_base1
|
||||
XTerm*pointerColorBackground: S_base01
|
||||
XTerm*pointerColorForeground: S_base1
|
||||
|
||||
|
||||
XTerm*color0: S_base02
|
||||
XTerm*color1: S_red
|
||||
XTerm*color2: S_green
|
||||
XTerm*color3: S_yellow
|
||||
XTerm*color4: S_blue
|
||||
XTerm*color5: S_magenta
|
||||
XTerm*color6: S_cyan
|
||||
XTerm*color7: S_base2
|
||||
XTerm*color8: S_orange
|
||||
XTerm*color9: S_base03
|
||||
XTerm*color10: S_base01
|
||||
XTerm*color11: S_base00
|
||||
XTerm*color12: S_base0
|
||||
XTerm*color13: S_violet
|
||||
XTerm*color14: S_base1
|
||||
XTerm*color15: S_base3
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
#include "Palette"
|
||||
|
||||
*Box.background: S_base03
|
||||
*Dialog.background: S_base03
|
||||
*Form.background: S_base03
|
||||
*Label.background: S_base03
|
||||
*Paned.background: S_base03
|
||||
*Panner.background: S_base03
|
||||
*SimpleMenu.background: S_base03
|
||||
|
||||
*Command.background: S_base01
|
||||
*MenuButton.background: S_base01
|
||||
*Repeater.background: S_base01
|
||||
*Toggle.background: S_base01
|
||||
*Scrollbar.background: S_base01
|
||||
|
||||
*AsciiSink.background: S_base03
|
||||
*FontGrid.background: S_base03
|
||||
*Ghostview.background: S_base03
|
||||
*List.background: S_base03
|
||||
*Panner.foreground: S_base03
|
||||
*Porthole.background: S_base03
|
||||
*RgbSink.background: S_base03
|
||||
*RgbText.background: S_base03
|
||||
*ScrollByLine.background: S_base03
|
||||
*Text.background: S_base03
|
||||
*Tree.background: S_base03
|
||||
*Viewport.background: S_base03
|
|
@ -0,0 +1,7 @@
|
|||
#include "Palette"
|
||||
|
||||
Mwm*background: S_base3
|
||||
Mwm*foreground: S_base03
|
||||
Mwm*activeBackground: S_base0
|
||||
Mwm*activeForeground: S_base00
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
#include "Palette"
|
||||
|
||||
.*background: S_base03
|
||||
.*foreground: S_base0
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
!! Common
|
||||
|
||||
#define S_yellow #b58900
|
||||
#define S_orange #cb4b16
|
||||
#define S_red #dc322f
|
||||
#define S_magenta #d33682
|
||||
#define S_violet #6c71c4
|
||||
#define S_blue #268bd2
|
||||
#define S_cyan #2aa198
|
||||
#define S_green #859900
|
||||
|
||||
|
||||
!! Light
|
||||
|
||||
#define S_base03 #fdf6e3
|
||||
#define S_base02 #eee8d5
|
||||
#define S_base01 #93a1a1
|
||||
#define S_base00 #839496
|
||||
#define S_base0 #657b83
|
||||
#define S_base1 #586e75
|
||||
#define S_base2 #073642
|
||||
#define S_base3 #002b36
|
|
@ -0,0 +1,17 @@
|
|||
|
||||
This archive contains a set of files that provide a consistent
|
||||
look compliant with Solarized Light across the following
|
||||
applications;
|
||||
|
||||
-GNU Emacs [TODO]
|
||||
-Athena widgets [Mostly done?]
|
||||
-Motif widgets [Soon]
|
||||
-GTK2 widgets [TODO]
|
||||
-XTerm [DONE]
|
||||
-XClock [DONE]
|
||||
-XLoad [DONE]
|
||||
-MWM [Soon]
|
||||
|
||||
You can take advance of this by simply loading these files into
|
||||
your X Resources Database for X programs, and modifying your
|
||||
~/.gtkrc-2.0 for GTK2.
|
|
@ -0,0 +1,11 @@
|
|||
#include "Palette"
|
||||
|
||||
XClock*background: S_base03
|
||||
XClock*foreground: S_base0
|
||||
|
||||
XClock*hourColor: S_base0
|
||||
XClock*minuteColor: S_base0
|
||||
XClock*secondColor: S_base0
|
||||
|
||||
XClock*majorColor: S_orange
|
||||
XClock*minorColor: S_blue
|
|
@ -0,0 +1,5 @@
|
|||
#include "Palette"
|
||||
|
||||
XLoad*background: S_base03
|
||||
XLoad*foreground: S_base0
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
#include "Palette"
|
||||
|
||||
XTerm*background: S_base03
|
||||
XTerm*foreground: S_base0
|
||||
XTerm*fading: 40
|
||||
XTerm*fadeColor: S_base03
|
||||
XTerm*cursorColor: S_base1
|
||||
XTerm*pointerColorBackground: S_base01
|
||||
XTerm*pointerColorForeground: S_base1
|
||||
|
||||
|
||||
XTerm*color0: S_base02
|
||||
XTerm*color1: S_red
|
||||
XTerm*color2: S_green
|
||||
XTerm*color3: S_yellow
|
||||
XTerm*color4: S_blue
|
||||
XTerm*color5: S_magenta
|
||||
XTerm*color6: S_cyan
|
||||
XTerm*color7: S_base2
|
||||
XTerm*color8: S_orange
|
||||
XTerm*color9: S_base03
|
||||
XTerm*color10: S_base01
|
||||
XTerm*color11: S_base00
|
||||
XTerm*color12: S_base0
|
||||
XTerm*color13: S_violet
|
||||
XTerm*color14: S_base1
|
||||
XTerm*color15: S_base3
|
||||
|
|
@ -1,68 +0,0 @@
|
|||
! We're doing to be using the C preprocessor even though that's technically
|
||||
! abuse... sorry X.Org guys.
|
||||
!*Font: -slavfox-cozette-medium-r-normal--13-120-75-75-m-60-iso10646-1
|
||||
*Font: xft:Fixed:style=Regular:
|
||||
!*faceName: xft:family=Iosevka,Iosevka Medium:style=Medium
|
||||
!*faceSize: 12
|
||||
|
||||
! Choose your cursor icon theme
|
||||
Xcursor.theme: Lambda
|
||||
|
||||
|
||||
! This first chunk defines "general" colors.
|
||||
!*customization: -color
|
||||
#define TEXTBG #D8D8D8
|
||||
#define PANELBG #A8A8A8
|
||||
#define BUTTONBG #A8A8A8
|
||||
#define DARKBG #A8A8A8
|
||||
#define TEST red
|
||||
#define TEST2 blue
|
||||
#define TEST3 yellow
|
||||
#define TEST4 magenta
|
||||
#define TEST5 cyan
|
||||
#define TEST6 orange
|
||||
#define TEST7 green
|
||||
|
||||
! This next chunk defines how to assign colors to widgets.
|
||||
|
||||
*Box.background: PANELBG
|
||||
*Dialog.background: PANELBG
|
||||
*Form.background: PANELBG
|
||||
*Label.background: PANELBG
|
||||
*Paned.background: PANELBG
|
||||
*Panner.background: PANELBG
|
||||
*SimpleMenu.background: PANELBG
|
||||
|
||||
*Command.background: BUTTONBG
|
||||
*MenuButton.background: BUTTONBG
|
||||
*Repeater.background: BUTTONBG
|
||||
*Toggle.background: BUTTONBG
|
||||
*Scrollbar.background: BUTTONBG
|
||||
|
||||
*AsciiSink.background: TEXTBG
|
||||
*FontGrid.background: TEXTBG
|
||||
*Ghostview.background: TEXTBG
|
||||
*List.background: TEXTBG
|
||||
*Panner.foreground: TEXTBG
|
||||
*Porthole.background: TEXTBG
|
||||
*RgbSink.background: TEXTBG
|
||||
*RgbText.background: TEXTBG
|
||||
*ScrollByLine.background: TEXTBG
|
||||
*Text.background: TEXTBG
|
||||
*Tree.background: TEXTBG
|
||||
*Viewport.background: TEXTBG
|
||||
|
||||
! Now we define the general look and feel of our widgets.
|
||||
|
||||
*rightScrollBar: true
|
||||
*shapeStyle: Rectangle
|
||||
*beNiceToColormap: False
|
||||
*topShadowContrast: 10
|
||||
*bottomShadowContrast: 10
|
||||
|
||||
*shadowWidth: 2
|
||||
*borderWidth: 1
|
||||
*highlightThickness: 1
|
||||
*Label.shadowWidth: 0
|
||||
|
||||
*Label.borderWidth: 0
|
|
@ -1,2 +0,0 @@
|
|||
*Font:
|
||||
*Face:
|
|
@ -1,6 +0,0 @@
|
|||
pmenu*font: xft:Clear Sans:style=Regular:size=10:
|
||||
pmenu*background: #4682B4
|
||||
pmenu*foreground: #FFFFFF
|
||||
pmenu*selbackground: #BB4444
|
||||
pmenu*selforeground: #FFFFFF
|
||||
pmenu*border: #FFFFFF
|
|
@ -1,5 +0,0 @@
|
|||
shod.theme: /home/midfavila/.config/xresources/decwin.xpm
|
||||
shod.focusButtons: 1
|
||||
shod.raiseButtons: 3
|
||||
shod.modifier: Mod4
|
||||
shod.class.XTerm.autotab: always
|
|
@ -1 +0,0 @@
|
|||
XCalc*shapeStyle: Rectangle
|
|
@ -1,6 +0,0 @@
|
|||
!! Cosmetics
|
||||
|
||||
! Focus and resize the calendar to sit beside my shelf.
|
||||
XCalendar*geometry: 228x237-137-0
|
||||
|
||||
!! Functionality.
|
|
@ -1,16 +0,0 @@
|
|||
!! Cosmetics.
|
||||
|
||||
! Colors.
|
||||
xman*Command.background: #BEBEBE
|
||||
|
||||
! Misc.
|
||||
xman*title: Manual
|
||||
xman*pagesize: 500x600
|
||||
|
||||
!! Functionality.
|
||||
|
||||
! Prevent the smaller box from appearing.
|
||||
xman*topBox: false
|
||||
|
||||
! Organize the manual listing vertically.
|
||||
xman*verticalList: true
|
|
@ -1 +0,0 @@
|
|||
xmessage*customization: -color
|
|
@ -1,4 +0,0 @@
|
|||
!! Cosmetics
|
||||
|
||||
! Please dont take up half of my display...
|
||||
!xmh*geometry: 500x500
|
|
@ -1,58 +0,0 @@
|
|||
xosview*title: Monitors
|
||||
xosview*labels: False
|
||||
xosview*captions: False
|
||||
xosview*meterLabelColor: black
|
||||
xosview*font: fixed
|
||||
xosview*foreground: black
|
||||
xosview*load: False
|
||||
xosview*loadProcColor: black
|
||||
xosview*loadWarnColor: yellow
|
||||
xosview*loadCritColor: red
|
||||
xosview*loadIdleColor: gray
|
||||
xosview*cpu: True
|
||||
xosview*cpuFormat: single
|
||||
xosview*background: gray
|
||||
xosview*swap: False
|
||||
xosview*page: False
|
||||
xosview*cpuFields: USED
|
||||
xosview*cpuUserColor: #00FFFF
|
||||
xosview*cpuGraph: False
|
||||
xosview*cpuDecay: False
|
||||
xosview*cpuFreeColor: #BCBCBC
|
||||
xosview*memUsedColor: #15C4B0
|
||||
xosview*memFreeColor: #BCBCBC
|
||||
xosview*memDecay: False
|
||||
xosview*memUsedFormat: autoscale
|
||||
xosview*memBufferColor: #05C4B0
|
||||
xosview*memCacheColor: #15C4B0
|
||||
xosview*memSharedColor: #15C4B0
|
||||
xosview*memKernelColor: #15C4B0
|
||||
xosview*memOtherColor: #15C4B0
|
||||
xosview*memSlabColor: #15C4B0
|
||||
xosview*net: True
|
||||
xosview*netInColor: #0000CC
|
||||
xosview*netOutColor: #CC0000
|
||||
xosview*netBackground: #BCBCBC
|
||||
xosview*netBandwidth: 30000
|
||||
xosview*netPriority: 1
|
||||
xosview*netDecay: False
|
||||
xosview*netGraph: False
|
||||
xosview*netUsedFormat: autoscale
|
||||
xosview*battery: True
|
||||
xosview*netIface: wlp2s0
|
||||
xosview*batteryLeftColor: #F6F8B0
|
||||
xosview*batteryChargeColor: #B0F800
|
||||
xosview*batteryUsedColor: #BCBCBC
|
||||
xosview*batteryFullColor: #00FF00
|
||||
xosview*batteryLowColor: #CC7722
|
||||
xosview*batteryCritColor: #FF0000
|
||||
xosview*batteryNoneColor: #BCBCBC
|
||||
xosview*batteryUsedFormat: percent
|
||||
xosview*wireless: False
|
||||
xosview*disk: True
|
||||
xosview*diskWriteColor: #A98C40
|
||||
xosview*diskReadColor: #CBAE62
|
||||
xosview*diskIdleColor: #BCBCBC
|
||||
xosview*diskPriority: 1
|
||||
xosview*diskDecay: False
|
||||
xosview*diskGraph: False
|
|
@ -1,10 +0,0 @@
|
|||
xprompt*font: xft:Exo:style=Medium:size=10:
|
||||
xprompt*background: #4682B4
|
||||
xprompt*foreground: #FFFFFF
|
||||
xprompt*description: #FFFFFF
|
||||
xprompt*selbackground: #BB4444
|
||||
xprompt*selforeground: #FFFFFF
|
||||
xprompt*seldescription: #FFFFFF
|
||||
xprompt*border: #FFFFFF
|
||||
xprompt*items: 5
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
!! Cosmetics
|
||||
|
||||
! Please dont take up most of my display...
|
||||
XRn.geometry: 500x500
|
||||
|
||||
! Put buttons on top of the area they affect, like most programs.
|
||||
XRn*buttonsOnTop: true
|
||||
|
||||
!! Functionality
|
||||
|
||||
! Set the editor command
|
||||
XRn*editorCommand: xterm -display %D -e tine %s
|
||||
|
||||
! Ask for the NNTP password on startup
|
||||
xrn*authenticateOnConnect: true
|
||||
|
||||
! Use a cache to improve performance.
|
||||
XRn*cacheActive: true
|
||||
|
||||
! Set the NNTP server
|
||||
XRn*nntpServer: news.eternal-september.org
|
Loading…
Reference in New Issue