Updating qtile config and the README.

This commit is contained in:
Derek Taylor
2021-03-20 13:06:31 -05:00
parent ac5d3d3d72
commit 45486bac88
14 changed files with 179 additions and 95 deletions

View File

@@ -564,20 +564,20 @@ background_opacity: 1.0
# a no-op if you do not wish to receive input characters for that binding.
key_bindings:
# (Windows, Linux, and BSD only)
- { key: V, mods: Control|Shift, action: Paste }
- { key: C, mods: Control|Shift, action: Copy }
- { key: Insert, mods: Shift, action: PasteSelection }
- { key: Key0, mods: Control, action: ResetFontSize }
- { key: Equals, mods: Control, action: IncreaseFontSize }
- { key: Plus, mods: Control, action: IncreaseFontSize }
- { key: Minus, mods: Control, action: DecreaseFontSize }
- { key: Minus, mods: Control, action: DecreaseFontSize }
- { key: Paste, action: Paste }
- { key: Copy, action: Copy }
- { key: L, mods: Control, action: ClearLogNotice }
- { key: L, mods: Control, chars: "\x0c" }
- { key: PageUp, mods: Shift, action: ScrollPageUp, mode: ~Alt }
- { key: PageDown, mods: Shift, action: ScrollPageDown, mode: ~Alt }
- { key: Home, mods: Shift, action: ScrollToTop, mode: ~Alt }
- { key: End, mods: Shift, action: ScrollToBottom, mode: ~Alt }
- { key: V, mods: Control|Shift, action: Paste }
- { key: C, mods: Control|Shift, action: Copy }
- { key: Insert, mods: Shift, action: PasteSelection }
- { key: Key0, mods: Control, action: ResetFontSize }
- { key: Equals, mods: Control, action: IncreaseFontSize }
- { key: Plus, mods: Control, action: IncreaseFontSize }
- { key: Minus, mods: Control, action: DecreaseFontSize }
- { key: Minus, mods: Control, action: DecreaseFontSize }
- { key: F11, mods: None, action: ToggleFullscreen }
- { key: Paste, mods: None, action: Paste }
- { key: Copy, mods: None, action: Copy }
- { key: L, mods: Control, action: ClearLogNotice }
- { key: L, mods: Control, chars: "\x0c" }
- { key: PageUp, mods: None, action: ScrollPageUp, mode: ~Alt }
- { key: PageDown, mods: None, action: ScrollPageDown, mode: ~Alt }
- { key: Home, mods: Shift, action: ScrollToTop, mode: ~Alt }
- { key: End, mods: Shift, action: ScrollToBottom, mode: ~Alt }

View File

@@ -1,5 +1,5 @@
[geometry]
posx=1928
posx=3848
posy=28
sizex=1900
sizey=1040

View File

@@ -88,10 +88,10 @@ These are the keybindings for qtile.
| MODKEY + SHIFT + q | quits qtile |
| MODKEY + 1-9 | switch focus to workspace (1-9) |
| MODKEY + SHIFT + 1-9 | send focused window to workspace (1-9) |
| MODKEY + j | lazy layout up (switches focus between windows in the stack) |
| MODKEY + k | lazy layout down (switches focus between windows in the stack) |
| MODKEY + SHIFT + j | lazy layout shuffle_up (rotates the windows in the stack) |
| MODKEY + SHIFT + k | lazy layout shuffle_down (rotates the windows in the stack) |
| MODKEY + j | lazy layout down (switches focus between windows in the stack) |
| MODKEY + k | lazy layout up (switches focus between windows in the stack) |
| MODKEY + SHIFT + j | lazy layout shuffle_down (rotates the windows in the stack) |
| MODKEY + SHIFT + k | lazy layout shuffle_up (rotates the windows in the stack) |
| MODKEY + h | shrink size of window (MondadTall layout) |
| MODKEY + l | expand size of window (MondadTall layout) |
| MODKEY + w | switch focus to monitor 1 |
@@ -155,29 +155,31 @@ keys = [
desc='Move focus to prev monitor'
),
### Treetab controls
Key([mod, "control"], "k",
lazy.layout.section_up(),
Key([mod, "shift"], "h",
lazy.layout.move_left(),
desc='Move up a section in treetab'
),
Key([mod, "control"], "j",
lazy.layout.section_down(),
Key([mod, "shift"], "l",
lazy.layout.move_right(),
desc='Move down a section in treetab'
),
### Window controls
Key([mod], "k",
lazy.layout.down(),
lazy.layout.up(),
desc='Move focus down in current stack pane'
),
Key([mod], "j",
lazy.layout.up(),
lazy.layout.down(),
desc='Move focus up in current stack pane'
),
Key([mod, "shift"], "k",
Key([mod, "shift"], "j",
lazy.layout.shuffle_down(),
lazy.layout.section_down(),
desc='Move windows down in current stack'
),
Key([mod, "shift"], "j",
Key([mod, "shift"], "k",
lazy.layout.shuffle_up(),
lazy.layout.section_up(),
desc='Move windows up in current stack'
),
Key([mod], "h",
@@ -202,21 +204,21 @@ keys = [
lazy.window.toggle_floating(),
desc='toggle floating'
),
Key([mod, "shift"], "m",
Key([mod], "f",
lazy.window.toggle_fullscreen(),
desc='toggle fullscreen'
),
### Stack controls
Key([mod, "shift"], "space",
Key([mod, "shift"], "Tab",
lazy.layout.rotate(),
lazy.layout.flip(),
desc='Switch which side main pane occupies (XmonadTall)'
),
Key([mod], "space",
Key([mod], "space",
lazy.layout.next(),
desc='Switch window focus to other pane(s) of stack'
),
Key([mod, "control"], "Return",
Key([mod, "shift"], "space",
lazy.layout.toggle_split(),
desc='Toggle between split and unsplit sides of stack'
),
@@ -277,6 +279,10 @@ keys = [
lazy.spawn("./dmscripts/dman"),
desc='Search manpages in dmenu'
),
Key([], "o",
lazy.spawn("./dmscripts/dmqute"),
desc='Search your qutebrowser bookmarks and quickmarks'
),
Key([], "r",
lazy.spawn("./dmscripts/dmred"),
desc='Search reddit via dmenu'
@@ -335,26 +341,33 @@ layouts = [
#layout.Stack(stacks=2, **layout_theme),
#layout.Columns(**layout_theme),
#layout.RatioTile(**layout_theme),
#layout.Tile(shift_windows=True, **layout_theme),
#layout.VerticalTile(**layout_theme),
#layout.Matrix(**layout_theme),
#layout.Zoomy(**layout_theme),
layout.MonadTall(**layout_theme),
layout.Max(**layout_theme),
layout.Tile(shift_windows=True, **layout_theme),
layout.Stack(num_stacks=2),
layout.RatioTile(**layout_theme),
layout.TreeTab(
font = "Ubuntu",
fontsize = 10,
sections = ["FIRST", "SECOND"],
section_fontsize = 11,
bg_color = "141414",
active_bg = "90C435",
sections = ["FIRST", "SECOND", "THIRD", "FOURTH"],
section_fontsize = 10,
border_width = 2,
bg_color = "1c1f24",
active_bg = "c678dd",
active_fg = "000000",
inactive_bg = "384323",
inactive_fg = "a0a0a0",
inactive_bg = "a9a1e1",
inactive_fg = "1c1f24",
padding_left = 0,
padding_x = 0,
padding_y = 5,
section_top = 10,
panel_width = 320
section_bottom = 20,
level_shift = 8,
vspace = 3,
panel_width = 200
),
layout.Floating(**layout_theme)
]
@@ -370,7 +383,8 @@ colors = [["#282c34", "#282c34"], # panel background
["#ff5555", "#ff5555"], # border line color for current tab
["#74438f", "#74438f"], # border line color for 'other tabs' and color for 'odd widgets'
["#4f76c7", "#4f76c7"], # color for the 'even widgets'
["#e1acff", "#e1acff"]] # window name
["#e1acff", "#e1acff"], # window name
["#ecbbfb", "#ecbbfb"]] # backbround for inactive screens
#+END_SRC
* Prompt
@@ -426,7 +440,7 @@ def init_widgets_list():
padding_x = 3,
borderwidth = 3,
active = colors[2],
inactive = colors[2],
inactive = colors[7],
rounded = False,
highlight_color = colors[1],
highlight_method = "line",

View File

@@ -1,4 +1,8 @@
#! /bin/bash
#!/usr/bin/env bash
#
# Using bash in the shebang rather than /bin/sh, which should
# be avoided as non-POSIX shell users (fish) may experience errors.
lxsession &
picom --experimental-backends &
nitrogen --restore &

View File

@@ -67,29 +67,31 @@ keys = [
desc='Move focus to prev monitor'
),
### Treetab controls
Key([mod, "control"], "k",
lazy.layout.section_up(),
Key([mod, "shift"], "h",
lazy.layout.move_left(),
desc='Move up a section in treetab'
),
Key([mod, "control"], "j",
lazy.layout.section_down(),
Key([mod, "shift"], "l",
lazy.layout.move_right(),
desc='Move down a section in treetab'
),
### Window controls
Key([mod], "k",
lazy.layout.down(),
lazy.layout.up(),
desc='Move focus down in current stack pane'
),
Key([mod], "j",
lazy.layout.up(),
lazy.layout.down(),
desc='Move focus up in current stack pane'
),
Key([mod, "shift"], "k",
Key([mod, "shift"], "j",
lazy.layout.shuffle_down(),
lazy.layout.section_down(),
desc='Move windows down in current stack'
),
Key([mod, "shift"], "j",
Key([mod, "shift"], "k",
lazy.layout.shuffle_up(),
lazy.layout.section_up(),
desc='Move windows up in current stack'
),
Key([mod], "h",
@@ -114,21 +116,21 @@ keys = [
lazy.window.toggle_floating(),
desc='toggle floating'
),
Key([mod, "shift"], "m",
Key([mod], "f",
lazy.window.toggle_fullscreen(),
desc='toggle fullscreen'
),
### Stack controls
Key([mod, "shift"], "space",
Key([mod, "shift"], "Tab",
lazy.layout.rotate(),
lazy.layout.flip(),
desc='Switch which side main pane occupies (XmonadTall)'
),
Key([mod], "space",
Key([mod], "space",
lazy.layout.next(),
desc='Switch window focus to other pane(s) of stack'
),
Key([mod, "control"], "Return",
Key([mod, "shift"], "space",
lazy.layout.toggle_split(),
desc='Toggle between split and unsplit sides of stack'
),
@@ -189,6 +191,10 @@ keys = [
lazy.spawn("./dmscripts/dman"),
desc='Search manpages in dmenu'
),
Key([], "o",
lazy.spawn("./dmscripts/dmqute"),
desc='Search your qutebrowser bookmarks and quickmarks'
),
Key([], "r",
lazy.spawn("./dmscripts/dmred"),
desc='Search reddit via dmenu'
@@ -232,26 +238,33 @@ layouts = [
#layout.Stack(stacks=2, **layout_theme),
#layout.Columns(**layout_theme),
#layout.RatioTile(**layout_theme),
#layout.Tile(shift_windows=True, **layout_theme),
#layout.VerticalTile(**layout_theme),
#layout.Matrix(**layout_theme),
#layout.Zoomy(**layout_theme),
layout.MonadTall(**layout_theme),
layout.Max(**layout_theme),
layout.Tile(shift_windows=True, **layout_theme),
layout.Stack(num_stacks=2),
layout.RatioTile(**layout_theme),
layout.TreeTab(
font = "Ubuntu",
fontsize = 10,
sections = ["FIRST", "SECOND"],
section_fontsize = 11,
bg_color = "141414",
active_bg = "90C435",
sections = ["FIRST", "SECOND", "THIRD", "FOURTH"],
section_fontsize = 10,
border_width = 2,
bg_color = "1c1f24",
active_bg = "c678dd",
active_fg = "000000",
inactive_bg = "384323",
inactive_fg = "a0a0a0",
inactive_bg = "a9a1e1",
inactive_fg = "1c1f24",
padding_left = 0,
padding_x = 0,
padding_y = 5,
section_top = 10,
panel_width = 320
section_bottom = 20,
level_shift = 8,
vspace = 3,
panel_width = 200
),
layout.Floating(**layout_theme)
]
@@ -262,7 +275,8 @@ colors = [["#282c34", "#282c34"], # panel background
["#ff5555", "#ff5555"], # border line color for current tab
["#74438f", "#74438f"], # border line color for 'other tabs' and color for 'odd widgets'
["#4f76c7", "#4f76c7"], # color for the 'even widgets'
["#e1acff", "#e1acff"]] # window name
["#e1acff", "#e1acff"], # window name
["#ecbbfb", "#ecbbfb"]] # backbround for inactive screens
prompt = "{0}@{1}: ".format(os.environ["USER"], socket.gethostname())
@@ -303,7 +317,7 @@ def init_widgets_list():
padding_x = 3,
borderwidth = 3,
active = colors[2],
inactive = colors[2],
inactive = colors[7],
rounded = False,
highlight_color = colors[1],
highlight_method = "line",

View File

@@ -21,7 +21,7 @@ config.load_autoconfig(False)
c.aliases = {'q': 'quit', 'w': 'session-save', 'wq': 'quit --save'}
# Setting dark mode
# config.set("colors.webpage.darkmode.enabled", True)
config.set("colors.webpage.darkmode.enabled", True)
# Which cookies to accept. With QtWebEngine, this setting also controls

View File

@@ -1,20 +1,31 @@
4g https://boards.4channel.org/g/
am https://www.amazon.com/
arch https://www.archlinux.org/
aws https://aws.amazon.com/
bx https://bittrex.com/
di https://diasp.org/stream
do https://www.digitalocean.com/
dt https://www.distrotube.com/
dw https://www.distrowatch.com/
eff http://eff.org/
fsf http://fsf.org/
gnu http://gnu.org/
goog https://www.google.com
hoog https://hoogle.haskell.org
lab https://gitlab.com/dwt1
lbry https://lbry.tv/@DistroTube:2
mast https://mastodon.technology/web/accounts/85897
mail https://www.mailgun.com/
mast https://distrotoot.com/
nf https://www.netflix.com/browse
pa http://www.patreon.com/distrotube/
py https://www.paypal.com/
sb https://socialblade.com/youtube/c/distrotube
sky https://www.skysilk.com/
sp file:///home/dt/.surf/html/homepage.html
suck https://suckless.org/
tee https://teespring.com/stores/distrotube
tt https://www.tastytrade.com/
tw https://trade.tastyworks.com/
ub https://www.urbandictionary.com/
wiki https://www.wikipedia.org/
yt https://www.youtube.com/DistroTube/?view_as=subscriber
sp file:///home/dt/.surf/html/homepage.html
4g https://boards.4channel.org/g/
tt https://www.tastytrade.com/

View File

@@ -15,6 +15,7 @@
(run-shell-command "nitrogen --restore")
(run-shell-command "picom")
(run-shell-command "xmodmap ~/.Xmodmap")
(run-shell-command "./.config/herbstluftwm/panel.sh")
(defun show-kernel ()
(let ((ip (run-shell-command "uname -r" t)))
@@ -31,23 +32,39 @@
(defvar color1 "#ff92d0")
(defvar color2 "#282a36")
(load-module "swm-gaps")
(if (not swm-gaps:*gaps-on*)
(swm-gaps:toggle-gaps))
(setf swm-gaps:*inner-gaps-size* 8
swm-gaps:*outer-gaps-size* 8
swm-gaps:*head-gaps-size* 8)
(setf *message-window-gravity* :center
*input-window-gravity* :center
*window-border-style* :thin
*message-window-padding* 10
*maxsize-border-width* 2
*normal-border-width* 2
*transient-border-width* 2
stumpwm::*float-window-border* 2
stumpwm::*float-window-title-height* 5
*mouse-focus-policy* :click)
(setf
stumpwm:*mode-line-background-color* color2
stumpwm:*mode-line-background-color* color2
stumpwm:*mode-line-foreground-color* color1
stumpwm:*mode-line-border-color* "#333333"
stumpwm:*screen-mode-line-format* (list "%g | %v ^>^7 | " '(:eval (show-hostname)) "| " '(:eval (show-kernel)) "| " '(:eval (show-package-count)) "packages | %d ")
stumpwm:*screen-mode-line-format* (list " ")
;; stumpwm:*screen-mode-line-format* (list "%g | %v ^>^7 | " '(:eval (show-hostname)) "| " '(:eval (show-kernel)) "| " '(:eval (show-package-count)) "packages | %d ")
stumpwm:*mode-line-border-width* 1
stumpwm:*mode-line-pad-x* 6
stumpwm:*mode-line-pad-y* 1
stumpwm:*mode-line-pad-y* 2
stumpwm:*mode-line-timeout* 5
stumpwm:*mouse-focus-policy* :click
stumpwm:*group-format* "%n·%t"
stumpwm:*time-modeline-string* "%a, %b %d, %Y %l:%M%p"
stumpwm:*window-format* "^b^(:fg \"#9aedfe\")<%25t>"
stumpwm:*window-border-style* :tight
stumpwm:*normal-border-width* 1
)
(stumpwm:set-focus-color "#7799CC")
(stumpwm:set-focus-color "#7798CC")
(stumpwm:grename "One")
(stumpwm:gnewbg "Two")
(stumpwm:gnewbg "Three")
@@ -56,6 +73,7 @@
(stumpwm:gnewbg "Six")
(stumpwm:gnewbg "Seven")
(stumpwm:gnewbg "Eight")
(stumpwm:gnewbg "Nine")
(stumpwm:toggle-mode-line (stumpwm:current-screen) (stumpwm:current-head))
;; I change the prefix key to something else besides a keychord.
@@ -111,11 +129,11 @@
(define-key *root-map* (kbd "C-S") "exec ./.dmenu/dmenu-surfraw.sh")
(define-key *root-map* (kbd "C-T") "exec ./.dmenu/dmenu-trading.sh")
;; Browse somewhere
(define-key *root-map* (kbd "b") "colon1 exec firefox http://www.")
(define-key *root-map* (kbd "b") "colon1 exec brave http://www.")
;; Ssh somewhere
(define-key *root-map* (kbd "C-s") "colon1 exec xterm -e ssh ")
;; Lock screen
(define-key *root-map* (kbd "C-l") "exec xlock")
(define-key *root-map* (kbd "C-l") "exec slock")
;; Web jump (works for Google and Imdb)
(defmacro make-web-jump (name prefix)