From fb4f5719d3194e8b85663f1e3a8d79a832228f08 Mon Sep 17 00:00:00 2001 From: Mastermindzh Date: Fri, 4 May 2018 19:28:02 +0200 Subject: [PATCH] fixed powerline-shell, added HiDPI things (new laptop, yay) --- bash/.bashrc | 4 ++- config/rofi | 8 +++++ config/xorg/Xresources | 3 ++ config/xorg/xinitrc | 1 + dependencies/pacman.txt | 14 +++++++++ install.sh | 65 ++++++++++++++++++++++++++++++++--------- 6 files changed, 81 insertions(+), 14 deletions(-) create mode 100644 config/rofi create mode 100644 config/xorg/Xresources create mode 100644 config/xorg/xinitrc diff --git a/bash/.bashrc b/bash/.bashrc index ab5616e..0c30c19 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -3,7 +3,9 @@ # function _update_ps1() { - PS1=$(powerline-shell $?) + if hash powerline-shell 2>/dev/null; then + PS1=$(powerline-shell $?) + fi } source ~/.alias diff --git a/config/rofi b/config/rofi new file mode 100644 index 0000000..c9572f2 --- /dev/null +++ b/config/rofi @@ -0,0 +1,8 @@ +rofi.color-window: #273238, #273238, #1e2529 +rofi.color-normal: #273238, #c1c1c1, #273238, #394249, #ffffff +rofi.color-active: #273238, #80cbc4, #273238, #394249, #80cbc4 +rofi.color-urgent: #273238, #ff1844, #273238, #394249, #ff1844 + +rofi.lines: 10 +rofi.line-padding: 15 +rofi.font: monospace 10 diff --git a/config/xorg/Xresources b/config/xorg/Xresources new file mode 100644 index 0000000..797eb58 --- /dev/null +++ b/config/xorg/Xresources @@ -0,0 +1,3 @@ +Xft.dpi: 200 +Xft.antialias: 1 +rofi.dpi: 275 \ No newline at end of file diff --git a/config/xorg/xinitrc b/config/xorg/xinitrc new file mode 100644 index 0000000..80254c6 --- /dev/null +++ b/config/xorg/xinitrc @@ -0,0 +1 @@ +xrdb -merge ~/.Xresources \ No newline at end of file diff --git a/dependencies/pacman.txt b/dependencies/pacman.txt index 499deb1..85236af 100644 --- a/dependencies/pacman.txt +++ b/dependencies/pacman.txt @@ -27,3 +27,17 @@ python-pip gdm neofetch git +networkmanager +scrot +acpi +imagemagick +docker +docker-compose +htop +powertop +network-manager-applet +pavucontrol +alsa-utils +ntp +xclip +openssh \ No newline at end of file diff --git a/install.sh b/install.sh index 143adcb..866b5e6 100644 --- a/install.sh +++ b/install.sh @@ -5,13 +5,34 @@ # ======================================= # Ask a question and return true or false based on the users input -function yes_or_no { +ask() { + # from https://djm.me/ask + local prompt default reply + while true; do - read -p "$* [y/n]: " yn - case $yn in - [Yy]*) return 0 ;; - [Nn]*) echo "Aborted" ; return 1 ;; + + if [ "${2:-}" = "Y" ]; then + prompt="Y/n" + default=Y + elif [ "${2:-}" = "N" ]; then + prompt="y/N" + default=N + else + prompt="y/n" + default= + fi + echo -n "$1 [$prompt] " + read reply