From 95c2da69b5adb1ca9fe593af95aecd57364201d9 Mon Sep 17 00:00:00 2001 From: paul-loedige Date: Fri, 20 Nov 2020 09:58:55 +0100 Subject: [PATCH] added install script and package list --- install.sh | 8 ++++ pkglist.txt | 70 +++++++++++++++++++++++++++++++++++ qtile/.config/qtile/config.py | 63 ++++++++++++++++++++----------- 3 files changed, 120 insertions(+), 21 deletions(-) create mode 100644 install.sh create mode 100644 pkglist.txt diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..03eeab7 --- /dev/null +++ b/install.sh @@ -0,0 +1,8 @@ +#!/bin/bash +#install programms +cd ~/.dotfiles/ +pacman -S --needed $(comm -12 <(pacman -Slq | sort) <(sort pkglist.txt)) +#extract dotfiles into home directory +cd ~/.dotfiles/ +stow bash git qtile vim Xorg + diff --git a/pkglist.txt b/pkglist.txt new file mode 100644 index 0000000..ae44698 --- /dev/null +++ b/pkglist.txt @@ -0,0 +1,70 @@ +base +dosfstools +efibootmgr +firefox +git +grub +libnotify +linux-firmware +linux-zen +mtools +neofetch +networkmanager +nitrogen +os-prober +pcmanfm-gtk3 +picom +qtile +stow +sudo +termite +vim +xorg-bdftopcf +xorg-docs +xorg-font-util +xorg-fonts-100dpi +xorg-fonts-75dpi +xorg-fonts-encodings +xorg-iceauth +xorg-mkfontscale +xorg-server +xorg-server-common +xorg-server-devel +xorg-server-xephyr +xorg-server-xnest +xorg-server-xvfb +xorg-server-xwayland +xorg-sessreg +xorg-setxkbmap +xorg-smproxy +xorg-x11perf +xorg-xauth +xorg-xbacklight +xorg-xcmsdb +xorg-xcursorgen +xorg-xdpyinfo +xorg-xdriinfo +xorg-xev +xorg-xgamma +xorg-xhost +xorg-xinit +xorg-xinput +xorg-xkbcomp +xorg-xkbevd +xorg-xkbutils +xorg-xkill +xorg-xlsatoms +xorg-xlsclients +xorg-xmodmap +xorg-xpr +xorg-xprop +xorg-xrandr +xorg-xrdb +xorg-xrefresh +xorg-xset +xorg-xsetroot +xorg-xvinfo +xorg-xwd +xorg-xwininfo +xorg-xwud +xterm diff --git a/qtile/.config/qtile/config.py b/qtile/.config/qtile/config.py index 5276475..78fa41c 100644 --- a/qtile/.config/qtile/config.py +++ b/qtile/.config/qtile/config.py @@ -35,24 +35,32 @@ mod = "mod4" terminal = "termite" keys = [ - # Switch between windows in current stack pane + # Switch between windows with vim keybinding Key([mod], "k", lazy.layout.down(), - desc="Move focus down in stack pane"), + desc="Move focus down"), Key([mod], "j", lazy.layout.up(), - desc="Move focus up in stack pane"), + desc="Move focus up"), + Key([mod], "h", lazy.layout.left(), + desc="Move focus left"), + Key([mod], "l", lazy.layout.right(), + desc="Move focus right"), - # Move windows up or down in current stack + # Move windows around with vim keybindings Key([mod, "control"], "k", lazy.layout.shuffle_down(), - desc="Move window down in current stack "), + desc="Move window down "), Key([mod, "control"], "j", lazy.layout.shuffle_up(), - desc="Move window up in current stack "), + desc="Move window up "), + Key([mod, "control"], "h", lazy.layout.shuffle_left(), + desc="Move window left"), + Key([mod, "control"], "l", lazy.layout.shuffle_right(), + desc="Move window right"), - # Switch window focus to other pane(s) of stack + # Switch window focus to other pane(s) Key([mod], "space", lazy.layout.next(), desc="Switch window focus to other pane(s) of stack"), - # Swap panes of split stack - Key([mod, "shift"], "space", lazy.layout.rotate(), + # Swap panes + Key([mod, "control"], "space", lazy.layout.shuffle_next(), desc="Swap panes of split stack"), # Toggle between split and unsplit sides of stack. @@ -91,19 +99,10 @@ for i in groups: ]) layouts = [ - layout.Max(), - layout.Stack(num_stacks=2), - # Try more layouts by unleashing below layouts. - layout.Bsp(), - layout.Columns(), - layout.Matrix(), layout.MonadTall(), + layout.Floating(), + layout.Max(), layout.MonadWide(), - layout.RatioTile(), - layout.Tile(), - layout.TreeTab(), - layout.VerticalTile(), - layout.Zoomy(), ] widget_defaults = dict( @@ -115,7 +114,29 @@ extension_defaults = widget_defaults.copy() screens = [ Screen( - bottom=bar.Bar( + top=bar.Bar( + [ + widget.CurrentLayout(), + widget.GroupBox(), + widget.Prompt(), + widget.WindowName(), + widget.Chord( + chords_colors={ + 'launch': ("#ff0000", "#ffffff"), + }, + name_transform=lambda name: name.upper(), + ), + widget.TextBox("default config", name="default"), + widget.TextBox("Press <M-r> to spawn", foreground="#d75f5f"), + widget.Systray(), + widget.Clock(format='%Y-%m-%d %a %I:%M %p'), + widget.QuickExit(), + ], + 24, + ), + ), + Screen( + top=bar.Bar( [ widget.CurrentLayout(), widget.GroupBox(),