From 065ce14824b42a83148b847a2706de24295110ab Mon Sep 17 00:00:00 2001 From: paul-loedige Date: Mon, 23 Nov 2020 23:43:40 +0100 Subject: [PATCH] reinstall after bios flash --- Xorg/.xinitrc | 1 + backup.sh | 0 git/.git-credentials | 1 + git/.gitconfig | 2 + install.sh | 15 +++- qtile/.config/qtile/config.py | 120 +++++++++----------------- screen-layout/.screenlayout/layout.sh | 2 +- 7 files changed, 59 insertions(+), 82 deletions(-) create mode 100644 backup.sh diff --git a/Xorg/.xinitrc b/Xorg/.xinitrc index 40ed3bd..b4c61e9 100644 --- a/Xorg/.xinitrc +++ b/Xorg/.xinitrc @@ -33,4 +33,5 @@ fi setxkbmap de & nitrogen --restore & bash .screenlayout/layout.sh & +pulseaudio-ctl set 50 & exec qtile diff --git a/backup.sh b/backup.sh new file mode 100644 index 0000000..e69de29 diff --git a/git/.git-credentials b/git/.git-credentials index 90487c4..77530ad 100644 --- a/git/.git-credentials +++ b/git/.git-credentials @@ -1 +1,2 @@ +https://paul-loedige:yP4vs9rTriqP4b8mK4ohyNHSH@its-gitlab.init.hs-owl.de https://paul-loedige:VhD%40R46%2ai9k%24tumJgD3T@git.ploedige.com diff --git a/git/.gitconfig b/git/.gitconfig index 25a9799..f90e4d8 100644 --- a/git/.gitconfig +++ b/git/.gitconfig @@ -3,3 +3,5 @@ email = paul@gve-loedige.de [credential] helper = store +[http] + sslVerify = true diff --git a/install.sh b/install.sh index 00149a5..85b54c1 100644 --- a/install.sh +++ b/install.sh @@ -1,9 +1,16 @@ #!/bin/bash #install programms -cd ~/.dotfiles/ +cd /home/paul/.dotfiles/ sudo pacman -S --needed $(comm -12 <(pacman -Slq | sort) <(sort pkglist.txt)) #extract dotfiles into home directory -cd ~/.dotfiles/ -sudo stow bash git qtile vim Xorg +cd /home/paul/.dotfiles/ +sudo stow bash git qtile vim Xorg audio screen-layout +# install pikaur +cd /home/paul/ +git clone https://aur.archlinux.org/pikaur.git +cd /home/paul/pikaur/ +makepkg -fsri #install vs code extensions -bash vscode.sh \ No newline at end of file +pikaur -S visual-studio-code-bin +cd /home/paul/.dotfiles/ +bash vscode.sh diff --git a/qtile/.config/qtile/config.py b/qtile/.config/qtile/config.py index c42486c..94d3d45 100644 --- a/qtile/.config/qtile/config.py +++ b/qtile/.config/qtile/config.py @@ -42,7 +42,7 @@ terminal = "termite" #region key_and_mouse_bindings keys = [ - #moving windows around + # moving windows around Key([mod], "h", lazy.layout.left()), Key([mod], "l", lazy.layout.right()), Key([mod], "j", lazy.layout.down()), @@ -51,21 +51,31 @@ keys = [ Key([mod, "shift"], "l", lazy.layout.swap_right()), Key([mod, "shift"], "j", lazy.layout.shuffle_down()), Key([mod, "shift"], "k", lazy.layout.shuffle_up()), - Key([mod], "i", lazy.layout.grow()), - Key([mod], "m", lazy.layout.shrink()), + + # resize windows + Key([mod], "plus", lazy.layout.grow()), + Key([mod], "minus", lazy.layout.shrink()), Key([mod], "n", lazy.layout.normalize()), Key([mod], "o", lazy.layout.maximize()), - Key([mod], "space", lazy.layout.next()), + Key([mod], "space", lazy.window.toggle_fullscreen()), + # app hotkeys Key([mod], "Return", lazy.spawn(terminal), desc="Launch terminal"), + Key([mod],"f", lazy.spawn("firefox"),desc="Launch firefox"), # Toggle between different layouts as defined below Key([mod], "Tab", lazy.next_layout(), desc="Toggle between layouts"), - Key([mod], "w", lazy.window.kill(), desc="Kill focused window"), + Key([mod], "BackSpace", lazy.window.kill(), desc="Kill focused window"), + # qtile hotkeys Key([mod, "control"], "r", lazy.restart(), desc="Restart qtile"), Key([mod, "control"], "q", lazy.shutdown(), desc="Shutdown qtile"), Key([mod], "r", lazy.spawncmd(),desc="Spawn a command using a prompt widget"), + + # Media hotkeys + Key([], 'XF86AudioRaiseVolume', lazy.spawn('pulseaudio-ctl up 1')), + Key([], 'XF86AudioLowerVolume', lazy.spawn('pulseaudio-ctl down 1')), + Key([], 'XF86AudioMute', lazy.spawn('pulseaudio-ctl mute')), ] @@ -124,79 +134,35 @@ widget_defaults = dict( ) extension_defaults = widget_defaults.copy() +main_bar = [ + widget.CurrentLayout(), + widget.GroupBox(), + widget.Prompt(), + widget.WindowName(), + widget.Systray(), + widget.TextBox("Vol:"), + widget.Volume(), + widget.CPU(format='CPU: {load_percent}%', + update_interval=2), + widget.Clock(format='%Y-%m-%d %a %H:%M'), +] + +left_bar = [ + widget.CurrentLayout(), + widget.GroupBox(), + widget.WindowName(), +] + +top_bar = [ + widget.CurrentLayout(), + widget.GroupBox(), + widget.WindowName(), +] + screens = [ - Screen( - 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.Systray(), - widget.CheckUpdates(colour_no_updates='ff0000', - display_format='Updates:{updates}'), - widget.CPU(format='CPU: {load_percent}%', - update_interval=2), - widget.Clock(format='%Y-%m-%d %a %H:%M'), - widget.QuickExit(), - ], - 24, - ), - ), - Screen( - 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.Systray(), - widget.CheckUpdates(colour_no_updates='ff0000', - display_format='Updates:{updates}'), - widget.CPU(format='CPU: {load_percent}%', - update_interval=2), - widget.Clock(format='%Y-%m-%d %a %H:%M'), - widget.QuickExit(), - ], - 24, - ), - ), - Screen( - 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.Systray(), - widget.CheckUpdates(colour_no_updates='ff0000', - display_format='Updates:{updates}'), - widget.CPU(format='CPU: {load_percent}%', - update_interval=2), - widget.Clock(format='%Y-%m-%d %a %H:%M'), - widget.QuickExit(), - ], - 24, - ), - ), + Screen(bottom=bar.Bar(top_bar,24)), + Screen(top=bar.Bar(main_bar,24)), + Screen(top=bar.Bar(left_bar,24)), ] #endregion diff --git a/screen-layout/.screenlayout/layout.sh b/screen-layout/.screenlayout/layout.sh index 9d01539..718b9d9 100755 --- a/screen-layout/.screenlayout/layout.sh +++ b/screen-layout/.screenlayout/layout.sh @@ -1,2 +1,2 @@ #!/bin/sh -xrandr --output DVI-I-1 --primary --mode 1280x1024 --pos 2082x0 --rotate normal --output DP-1 --off --output DP-2 --off --output DP-3 --mode 3440x1440 --pos 1080x1024 --rotate normal --output HDMI-1 --mode 1920x1080 --pos 0x699 --rotate left +xrandr --output DVI-I-1 --primary --mode 1280x1024 --pos 1970x0 --rotate normal --output DP-1 --off --output DP-2 --mode 3440x1440 --pos 1080x1024 --rotate normal --output DP-3 --off --output HDMI-1 --mode 1920x1080 --pos 0x615 --rotate left