commit before qtile branch

This commit is contained in:
Tyler Starr 2021-01-22 17:42:11 -08:00
parent 7420d2760b
commit d4cdc063d7
6 changed files with 227 additions and 141 deletions

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -euo pipefail set -euo pipefail
nitrogen --restore & wal -i ~/media/pictures/wallpapers/random_wallpapers/sierra_red_mountains.jpg
lxsession & lxsession &
xsetroot -cursor_name left_ptr xsetroot -cursor_name left_ptr
imwheel -b 45 imwheel -b 45

View File

@ -17,8 +17,7 @@ from libqtile import bar, layout, widget, hook
from libqtile.config import Click, Drag, Group, Key, Match, Screen from libqtile.config import Click, Drag, Group, Key, Match, Screen
from libqtile.lazy import lazy from libqtile.lazy import lazy
from libqtile.utils import guess_terminal from libqtile.utils import guess_terminal
import os import os, subprocess, json
import subprocess
#+end_src #+end_src
* Variables * Variables
@ -38,7 +37,7 @@ dgroups_key_binder = None
dgroups_app_rules = [] dgroups_app_rules = []
# Set mouse functionality # Set mouse functionality
follow_mouse_focus = True follow_mouse_focus = True
bring_front_click = True bring_front_click = False
cursor_warp = False cursor_warp = False
# Set fullscreen options # Set fullscreen options
auto_fullscreen = True auto_fullscreen = True
@ -49,6 +48,10 @@ floating_layout = layout.Floating(float_rules=[
{'wmclass': 'Steam'}, {'wmclass': 'Steam'},
]) ])
wal_loc = os.path.expanduser('~/.cache/wal/colors.json')
wal = json.load(open(wal_loc))
spacer_len = 3
#+end_src #+end_src
* Keys * Keys
@ -58,34 +61,65 @@ floating_layout = layout.Floating(float_rules=[
# Start keys block # Start keys block
keys = [ keys = [
# Close focused window # Close focused window
Key([mod], "q", lazy.window.kill(), desc="Kill focused window"), Key([mod], "q",
lazy.window.kill(),
),
# Rotate through the available layout algorithms # Rotate through the available layout algorithms
Key([mod], "Tab", lazy.next_layout(), desc="Toggle between layouts"), Key([mod], "space",
lazy.next_layout(),
),
Key([mod, "shift"], "space",
lazy.prev_layout(),
),
# Switch between windows # Switch between windows
Key([mod], "h", lazy.layout.left(), desc="Move focus to left"), Key([mod], "h",
Key([mod], "l", lazy.layout.right(), desc="Move focus to right"), lazy.layout.left(),
Key([mod], "j", lazy.layout.down(), desc="Move focus down"), ),
Key([mod], "k", lazy.layout.up(), desc="Move focus up"), Key([mod], "l",
Key([mod], "space", lazy.layout.next(), lazy.layout.right(),
desc="Move window focus to other window"), ),
# Navigate between windows on screen Key([mod], "j",
Key([mod, "shift"], "h", lazy.layout.shuffle_left(), lazy.layout.down(),
desc="Move window to the left"), ),
Key([mod, "shift"], "l", lazy.layout.shuffle_right(), Key([mod], "k",
desc="Move window to the right"), lazy.layout.up(),
Key([mod, "shift"], "j", lazy.layout.shuffle_down(), ),
desc="Move window down"),
Key([mod, "shift"], "k", lazy.layout.shuffle_up(), # Move windows on screen
desc="Move window up"), Key([mod, "shift"], "h",
lazy.layout.shuffle_left(),
lazy.layout.client_to_next(),
lazy.layout.flip_left(),
),
Key([mod, "shift"], "l",
lazy.layout.shuffle_right(),
lazy.layout.client_to_previous(),
lazy.layout.flip_right(),
),
Key([mod, "shift"], "j",
lazy.layout.shuffle_down(),
lazy.layout.flip_down(),
),
Key([mod, "shift"], "k",
lazy.layout.shuffle_up(),
lazy.layout.flip_up(),
),
# Resize windows on screen # Resize windows on screen
Key([mod, "shift"], "h", lazy.layout.grow_left(), Key([mod, "control"], "h",
desc="Grow window to the left"), lazy.layout.grow_left(),
Key([mod, "shift"], "l", lazy.layout.grow_right(), lazy.layout.shrink()
desc="Grow window to the right"), ),
Key([mod, "shift"], "j", lazy.layout.grow_down(), Key([mod, "control"], "l",
desc="Grow window down"), lazy.layout.grow_right(),
Key([mod, "shift"], "k", lazy.layout.grow_up(), lazy.layout.grow()
desc="Grow window up"), ),
Key([mod, "control"], "j",
lazy.layout.grow_down(),
),
Key([mod, "control"], "k",
lazy.layout.grow_up(),
),
# Return sizes to default # Return sizes to default
Key([mod], "n", lazy.layout.normalize(), Key([mod], "n", lazy.layout.normalize(),
desc="Reset all window sizes"), desc="Reset all window sizes"),
@ -167,17 +201,19 @@ for i in groups:
# Key([mod, "shift"], i.name, lazy.window.togroup(i.name), # Key([mod, "shift"], i.name, lazy.window.togroup(i.name),
# desc="move focused window to group {}".format(i.name)), # desc="move focused window to group {}".format(i.name)),
]) ])
#+end_src #+end_src
* Layouts * Layouts
#+begin_src python #+begin_src python
layouts = [ layouts = [
layout.Columns(border_focus_stack='#d75f5f', margin=2), layout.Columns(border_focus = wal['colors']['color2'],
border_normal = wal['colors']['color0'], margin = 2),
layout.Max(), layout.Max(),
# Try more layouts by unleashing below layouts. # Try more layouts by unleashing below layouts.
# layout.Stack(num_stacks=2), layout.Stack(num_stacks=2),
# layout.Bsp(), # layout.Bsp(),
# layout.Matrix(), # layout.Matrix(),
# layout.MonadTall(), layout.MonadTall(),
# layout.MonadWide(), # layout.MonadWide(),
# layout.RatioTile(), # layout.RatioTile(),
# layout.Tile(), # layout.Tile(),
@ -189,58 +225,68 @@ layouts = [
* Defaults * Defaults
#+begin_src python #+begin_src python
widget_defaults = dict( widget_defaults = dict(
font='JetBrains Mono Nerd Font', font='JetBrains Mono Nerd Font',
fontsize=11, fontsize=10,
padding=3, padding=3,
background = wal['colors']['color0']
) )
extension_defaults = widget_defaults.copy() extension_defaults = widget_defaults.copy()
#+end_src #+end_src
* Screens * Screens
#+begin_src python #+begin_src python
colors = [["#282c34", "#282c34"], # panel background
["#434758", "#434758"], # background for current screen tab
["#ffffff", "#ffffff"], # font color for group names
["#ff5555", "#ff5555"], # border line color for current tab
["#8d62a9", "#8d62a9"], # border line color for other tab and odd widgets
["#668bd7", "#668bd7"], # color for the even widgets
["#e1acff", "#e1acff"]] # window name
screens = [ screens = [
Screen( Screen(
top=bar.Bar( top=bar.Bar(
[ [
widget.GroupBox( # Group Box
fontsize = 9, widget.GroupBox(active = wal['colors']['color0'],
margin_y = 3, inactive = wal['colors']['color0'],
margin_x = 0, urgent_text = wal['colors']['color0'],
padding_y = 5, background = wal['colors']['color1'],
padding_x = 3, this_current_screen_border = wal['colors']['color2'],
borderwidth = 3, other_screen_border = wal['colors']['color2'],
active = colors[2], urgent_border = wal['colors']['color6'],
inactive = colors[2], highlight_method='block',
rounded = False, rounded = False,
highlight_color = colors[1], hide_unused=True),
highlight_method = "line", widget.TextBox(text='\uE0B0',
this_current_screen_border = colors[3], fontsize=17,
this_screen_border = colors [4], padding=0,
other_current_screen_border = colors[0], foreground=wal['colors']['color1']),
other_screen_border = colors[0], # Window Name
foreground = colors[2], widget.Spacer(length = spacer_len,
background = colors[0], background = wal['colors']['color0']),
hide_unused=True),
widget.TextBox('|'),
widget.WindowName(), widget.WindowName(),
# Prompt
widget.Prompt(), widget.Prompt(),
# Volume
widget.TextBox(text = '\uE0B2', fontsize = 17,
widget.TextBox('|'), padding = 0, foreground = wal['colors']['color2'],
widget.CPUGraph(frequency=1, samples=30, type='box'), background = wal['colors']['color0']),
widget.TextBox('|'), widget.TextBox(text = ' ', fontsize = 14,
widget.Clock(format='%Y-%m-%d %a %I:%M %p'), foreground = wal['colors']['color0'],
background = wal['colors']['color2']),
widget.PulseVolume(foreground = wal['colors']['color0'],
background = wal['colors']['color2']),
widget.Spacer(length = spacer_len,
background = wal['colors']['color2']),
# Clock
widget.TextBox(text = '\uE0B2', fontsize = 17,
padding = 0, foreground = wal['colors']['color1'],
background = wal['colors']['color2']),
widget.Clock(format='%Y-%m-%d %a %I:%M %p',
background = wal['colors']['color1'],
foreground = wal['colors']['color0']),
widget.Spacer(length = spacer_len,
background = wal['colors']['color1']),
widget.CurrentLayout(scale=0.6),
], ],
24, 20,
), ),
), ),
] ]

View File

@ -3,8 +3,7 @@ from libqtile import bar, layout, widget, hook
from libqtile.config import Click, Drag, Group, Key, Match, Screen from libqtile.config import Click, Drag, Group, Key, Match, Screen
from libqtile.lazy import lazy from libqtile.lazy import lazy
from libqtile.utils import guess_terminal from libqtile.utils import guess_terminal
import os import os, subprocess, json
import subprocess
# Use the "Windows" key for mod # Use the "Windows" key for mod
mod = "mod4" mod = "mod4"
@ -18,7 +17,7 @@ dgroups_key_binder = None
dgroups_app_rules = [] dgroups_app_rules = []
# Set mouse functionality # Set mouse functionality
follow_mouse_focus = True follow_mouse_focus = True
bring_front_click = True bring_front_click = False
cursor_warp = False cursor_warp = False
# Set fullscreen options # Set fullscreen options
auto_fullscreen = True auto_fullscreen = True
@ -29,37 +28,72 @@ floating_layout = layout.Floating(float_rules=[
{'wmclass': 'Steam'}, {'wmclass': 'Steam'},
]) ])
wal_loc = os.path.expanduser('~/.cache/wal/colors.json')
wal = json.load(open(wal_loc))
spacer_len = 3
# Start keys block # Start keys block
keys = [ keys = [
# Close focused window # Close focused window
Key([mod], "q", lazy.window.kill(), desc="Kill focused window"), Key([mod], "q",
lazy.window.kill(),
),
# Rotate through the available layout algorithms # Rotate through the available layout algorithms
Key([mod], "Tab", lazy.next_layout(), desc="Toggle between layouts"), Key([mod], "space",
lazy.next_layout(),
),
Key([mod, "shift"], "space",
lazy.prev_layout(),
),
# Switch between windows # Switch between windows
Key([mod], "h", lazy.layout.left(), desc="Move focus to left"), Key([mod], "h",
Key([mod], "l", lazy.layout.right(), desc="Move focus to right"), lazy.layout.left(),
Key([mod], "j", lazy.layout.down(), desc="Move focus down"), ),
Key([mod], "k", lazy.layout.up(), desc="Move focus up"), Key([mod], "l",
Key([mod], "space", lazy.layout.next(), lazy.layout.right(),
desc="Move window focus to other window"), ),
# Navigate between windows on screen Key([mod], "j",
Key([mod, "shift"], "h", lazy.layout.shuffle_left(), lazy.layout.down(),
desc="Move window to the left"), ),
Key([mod, "shift"], "l", lazy.layout.shuffle_right(), Key([mod], "k",
desc="Move window to the right"), lazy.layout.up(),
Key([mod, "shift"], "j", lazy.layout.shuffle_down(), ),
desc="Move window down"),
Key([mod, "shift"], "k", lazy.layout.shuffle_up(), # Move windows on screen
desc="Move window up"), Key([mod, "shift"], "h",
lazy.layout.shuffle_left(),
lazy.layout.client_to_next(),
lazy.layout.flip_left(),
),
Key([mod, "shift"], "l",
lazy.layout.shuffle_right(),
lazy.layout.client_to_previous(),
lazy.layout.flip_right(),
),
Key([mod, "shift"], "j",
lazy.layout.shuffle_down(),
lazy.layout.flip_down(),
),
Key([mod, "shift"], "k",
lazy.layout.shuffle_up(),
lazy.layout.flip_up(),
),
# Resize windows on screen # Resize windows on screen
Key([mod, "shift"], "h", lazy.layout.grow_left(), Key([mod, "control"], "h",
desc="Grow window to the left"), lazy.layout.grow_left(),
Key([mod, "shift"], "l", lazy.layout.grow_right(), lazy.layout.shrink()
desc="Grow window to the right"), ),
Key([mod, "shift"], "j", lazy.layout.grow_down(), Key([mod, "control"], "l",
desc="Grow window down"), lazy.layout.grow_right(),
Key([mod, "shift"], "k", lazy.layout.grow_up(), lazy.layout.grow()
desc="Grow window up"), ),
Key([mod, "control"], "j",
lazy.layout.grow_down(),
),
Key([mod, "control"], "k",
lazy.layout.grow_up(),
),
# Return sizes to default # Return sizes to default
Key([mod], "n", lazy.layout.normalize(), Key([mod], "n", lazy.layout.normalize(),
desc="Reset all window sizes"), desc="Reset all window sizes"),
@ -131,13 +165,14 @@ for i in groups:
]) ])
layouts = [ layouts = [
layout.Columns(border_focus_stack='#d75f5f', margin=2), layout.Columns(border_focus = wal['colors']['color2'],
border_normal = wal['colors']['color0'], margin = 2),
layout.Max(), layout.Max(),
# Try more layouts by unleashing below layouts. # Try more layouts by unleashing below layouts.
# layout.Stack(num_stacks=2), layout.Stack(num_stacks=2),
# layout.Bsp(), # layout.Bsp(),
# layout.Matrix(), # layout.Matrix(),
# layout.MonadTall(), layout.MonadTall(),
# layout.MonadWide(), # layout.MonadWide(),
# layout.RatioTile(), # layout.RatioTile(),
# layout.Tile(), # layout.Tile(),
@ -148,53 +183,60 @@ layouts = [
widget_defaults = dict( widget_defaults = dict(
font='JetBrains Mono Nerd Font', font='JetBrains Mono Nerd Font',
fontsize=11, fontsize=10,
padding=3, padding=3,
background = wal['colors']['color0']
) )
extension_defaults = widget_defaults.copy() extension_defaults = widget_defaults.copy()
colors = [["#282c34", "#282c34"], # panel background
["#434758", "#434758"], # background for current screen tab
["#ffffff", "#ffffff"], # font color for group names
["#ff5555", "#ff5555"], # border line color for current tab
["#8d62a9", "#8d62a9"], # border line color for other tab and odd widgets
["#668bd7", "#668bd7"], # color for the even widgets
["#e1acff", "#e1acff"]] # window name
screens = [ screens = [
Screen( Screen(
top=bar.Bar( top=bar.Bar(
[ [
widget.GroupBox( # Group Box
fontsize = 9, widget.GroupBox(active = wal['colors']['color0'],
margin_y = 3, inactive = wal['colors']['color0'],
margin_x = 0, urgent_text = wal['colors']['color0'],
padding_y = 5, background = wal['colors']['color1'],
padding_x = 3, this_current_screen_border = wal['colors']['color2'],
borderwidth = 3, other_screen_border = wal['colors']['color2'],
active = colors[2], urgent_border = wal['colors']['color6'],
inactive = colors[2], highlight_method='block',
rounded = False, rounded = False,
highlight_color = colors[1], hide_unused=True),
highlight_method = "line", widget.TextBox(text='\uE0B0',
this_current_screen_border = colors[3], fontsize=17,
this_screen_border = colors [4], padding=0,
other_current_screen_border = colors[0], foreground=wal['colors']['color1']),
other_screen_border = colors[0], # Window Name
foreground = colors[2], widget.Spacer(length = spacer_len,
background = colors[0], background = wal['colors']['color0']),
hide_unused=True),
widget.TextBox('|'),
widget.WindowName(), widget.WindowName(),
# Prompt
widget.Prompt(), widget.Prompt(),
# Volume
widget.TextBox(text = '\uE0B2', fontsize = 17,
widget.TextBox('|'), padding = 0, foreground = wal['colors']['color2'],
widget.CPUGraph(frequency=1, samples=30, type='box'), background = wal['colors']['color0']),
widget.TextBox('|'), widget.TextBox(text = '', fontsize = 14,
widget.Clock(format='%Y-%m-%d %a %I:%M %p'), foreground = wal['colors']['color0'],
background = wal['colors']['color2']),
widget.PulseVolume(foreground = wal['colors']['color0'],
background = wal['colors']['color2']),
widget.Spacer(length = spacer_len,
background = wal['colors']['color2']),
# Clock
widget.TextBox(text = '\uE0B2', fontsize = 17,
padding = 0, foreground = wal['colors']['color1'],
background = wal['colors']['color2']),
widget.Clock(format='%Y-%m-%d %a %I:%M %p',
background = wal['colors']['color1'],
foreground = wal['colors']['color0']),
widget.Spacer(length = spacer_len,
background = wal['colors']['color1']),
widget.CurrentLayout(scale=0.6),
], ],
24, 20,
), ),
), ),
] ]

View File

@ -15,7 +15,7 @@
;; There are two ways to load a theme. Both assume the theme is installed and ;; There are two ways to load a theme. Both assume the theme is installed and
;; available. You can either set `doom-theme' or manually load a theme with the ;; available. You can either set `doom-theme' or manually load a theme with the
;; `load-theme' function. This is the default: ;; `load-theme' function. This is the default:
(setq doom-theme 'doom-gruvbox) (setq doom-theme 'doom-dracula)
;; This determines the style of line numbers in effect. If set to `nil', line ;; This determines the style of line numbers in effect. If set to `nil', line
;; numbers are disabled. For relative line numbers, set this to `relative'. ;; numbers are disabled. For relative line numbers, set this to `relative'.

View File

@ -1,6 +1,4 @@
#+TITLE: Doomed Config #+TITLE: Doomed Config #+PROPERTY: header-args:emacs-lisp
#+PROPERTY: header-args:emacs-lisp
* Table of Contents * Table of Contents
:PROPERTIES: :PROPERTIES:
:TOC: :include all :depth 3 :TOC: :include all :depth 3
@ -366,7 +364,7 @@ Load modules with external configs.
;; There are two ways to load a theme. Both assume the theme is installed and ;; There are two ways to load a theme. Both assume the theme is installed and
;; available. You can either set `doom-theme' or manually load a theme with the ;; available. You can either set `doom-theme' or manually load a theme with the
;; `load-theme' function. This is the default: ;; `load-theme' function. This is the default:
(setq doom-theme 'doom-gruvbox) (setq doom-theme 'doom-dracula)
;; This determines the style of line numbers in effect. If set to `nil', line ;; This determines the style of line numbers in effect. If set to `nil', line
;; numbers are disabled. For relative line numbers, set this to `relative'. ;; numbers are disabled. For relative line numbers, set this to `relative'.

View File

@ -36,7 +36,7 @@
;;hydra ;;hydra
;;indent-guides ; highlighted indent columns ;;indent-guides ; highlighted indent columns
;;ligatures ; ligatures and symbols to make your code pretty again ;;ligatures ; ligatures and symbols to make your code pretty again
;;minimap ; show a map of the code on the side minimap ; show a map of the code on the side
modeline ; snazzy, Atom-inspired modeline, plus API modeline ; snazzy, Atom-inspired modeline, plus API
;;nav-flash ; blink cursor line after big motions ;;nav-flash ; blink cursor line after big motions
;;neotree ; a project drawer, like NERDTree for vim ;;neotree ; a project drawer, like NERDTree for vim
@ -55,7 +55,7 @@
(evil +everywhere); come to the dark side, we have cookies (evil +everywhere); come to the dark side, we have cookies
file-templates ; auto-snippets for empty files file-templates ; auto-snippets for empty files
fold ; (nigh) universal code folding fold ; (nigh) universal code folding
;;(format +onsave) ; automated prettiness (format +onsave) ; automated prettiness
;;god ; run Emacs commands without modifier keys ;;god ; run Emacs commands without modifier keys
;;lispy ; vim for lisp, for people who don't like vim ;;lispy ; vim for lisp, for people who don't like vim
;;multiple-cursors ; editing in many places at once ;;multiple-cursors ; editing in many places at once