Minor edits

This commit is contained in:
Derek Taylor
2023-09-01 19:33:21 -05:00
parent 16e987bd80
commit 354be67e22
2 changed files with 17 additions and 7 deletions

View File

@@ -46,18 +46,20 @@ xargs xwallpaper --stretch < ~/.cache/wall &
### SETS CONKY STYLE BASED ON SCREEN RESOLUTION
# Checks screen resolution. If 1080p or higher, then we use '01' conky.
# If less than 1080p (laptops?), then we use the smaller '02' conky.
# You can also set these to values '03' and '04' if you want a fancier
# conky that displays lua rings and sensor information.
resolutionHeight=$(xrandr | grep "primary" | awk '{print $4}' | awk -F "+" '{print $1}' | awk -F 'x' '{print $2}')
if [[ $resolutionHeight -ge 1080 ]]; then
killall conky || echo "Conky not running."
sleep 2
conky -c "$HOME"/.config/conky/qtile/01/"$COLORSCHEME".conf || echo "Couldn't start conky."
conky -c "$HOME"/.config/conky/qtile/03/"$COLORSCHEME".conf || echo "Couldn't start conky."
elif [[ $resolutionHeight -lt 1080 ]]; then
killall conky || echo "Conky not running."
sleep 2
conky -c "$HOME"/.config/conky/qtile/02/"$COLORSCHEME".conf || echo "Couldn't start conky."
conky -c "$HOME"/.config/conky/qtile/04/"$COLORSCHEME".conf || echo "Couldn't start conky."
else
killall conky || echo "Conky not running."
sleep 2
conky -c "$HOME"/.config/conky/qtile/02/"$COLORSCHEME".conf || echo "Couldn't start conky."
conky -c "$HOME"/.config/conky/qtile/04/"$COLORSCHEME".conf || echo "Couldn't start conky."
fi

View File

@@ -35,16 +35,23 @@ from qtile_extras.widget.decorations import BorderDecoration
#from qtile_extras.widget import StatusNotifier
import colors
mod = "mod4" # Sets mod key to SUPER/WINDOWS
myTerm = "alacritty" # My terminal of choice
myBrowser = "brave" # My browser of choice
myEmacs = "emacsclient -c -a 'emacs' " # The space at the end is IMPORTANT!
# Allows you to input a name when adding treetab section.
@lazy.layout.function
def add_treetab_section(layout):
prompt = qtile.widgets_map["prompt"]
prompt.start_input("Section name: ", layout.cmd_add_section)
mod = "mod4" # Sets mod key to SUPER/WINDOWS
myTerm = "alacritty" # My terminal of choice
myBrowser = "brave" # My browser of choice
myEmacs = "emacsclient -c -a 'emacs' " # The space at the end is IMPORTANT!
# A function for hide/show all the windows in a group
@lazy.function
def minimize_all(qtile):
for win in qtile.current_group.windows:
if hasattr(win, "toggle_minimize"):
win.toggle_minimize()
# A list of available commands that can be bound to keys can be found
# at https://docs.qtile.org/en/latest/manual/config/lazy.html
@@ -125,6 +132,7 @@ keys = [
Key([mod], "m", lazy.layout.maximize(), desc='Toggle between min and max sizes'),
Key([mod], "t", lazy.window.toggle_floating(), desc='toggle floating'),
Key([mod], "f", lazy.window.toggle_fullscreen(), desc='toggle fullscreen'),
Key([mod, "shift"], "m", minimize_all(), desc="Toggle hide/show all windows on current group"),
# Switch focus of monitors
Key([mod], "period", lazy.next_screen(), desc='Move focus to next monitor'),