From 07b3d5b54dfe800518532bf7c0a8aab1c5e83203 Mon Sep 17 00:00:00 2001 From: Stephan Raabe Date: Wed, 22 Feb 2023 11:06:09 +0100 Subject: [PATCH] Optimizations --- .gtkrc-2.0 | 18 ++++++++++++++++++ 1-install.sh | 6 ++++-- picom/picom.conf | 7 +++++-- qtile/__pycache__/config.cpython-310.pyc | Bin 5553 -> 5733 bytes qtile/config.py | 12 ++++++++++-- rofi/config.rasi | 4 ++-- scripts/launchvm.sh | 3 ++- 7 files changed, 41 insertions(+), 9 deletions(-) create mode 100644 .gtkrc-2.0 diff --git a/.gtkrc-2.0 b/.gtkrc-2.0 new file mode 100644 index 0000000..3b89536 --- /dev/null +++ b/.gtkrc-2.0 @@ -0,0 +1,18 @@ +# DO NOT EDIT! This file will be overwritten by LXAppearance. +# Any customization should be done in ~/.gtkrc-2.0.mine instead. + +include "/home/raabe/.gtkrc-2.0.mine" +gtk-theme-name="Adapta-Nokto" +gtk-icon-theme-name="Tela-circle-orange-dark" +gtk-font-name="Cantarell 11" +gtk-cursor-theme-name="Adwaita" +gtk-cursor-theme-size=0 +gtk-toolbar-style=GTK_TOOLBAR_BOTH +gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR +gtk-button-images=1 +gtk-menu-images=1 +gtk-enable-event-sounds=1 +gtk-enable-input-feedback-sounds=1 +gtk-xft-antialias=1 +gtk-xft-hinting=1 +gtk-xft-hintstyle="hintfull" diff --git a/1-install.sh b/1-install.sh index 97b11c4..e7a9ed0 100755 --- a/1-install.sh +++ b/1-install.sh @@ -12,13 +12,13 @@ echo "START INSTALLATION..." # Install required packages # ------------------------------------------------------ echo "-> Install main packages" -sudo pacman -S alacritty scrot nitrogen picom starship chromium slock neomutt rofi dunst ueberzug mpv freerdp spotifyd xfce4-power-manager python-pip thunar mousepad lxappearance papirus-icon-theme ttf-font-awesome ttf-fira-sans ttf-fira-code ttf-firacode-nerd figlet cmatrix +sudo pacman -S alacritty scrot nitrogen picom starship chromium slock neomutt rofi dunst ueberzug mpv freerdp spotifyd xfce4-power-manager python-pip thunar mousepad lxappearance papirus-icon-theme ttf-font-awesome ttf-fira-sans ttf-fira-code ttf-firacode-nerd figlet cmatrix qalculate-gtk adapta-gtk-theme # ------------------------------------------------------ # Install required packages # ------------------------------------------------------ echo "-> Install AUR packages" -yay -S pywal timeshift graphite-gtk-theme tela-circle-icon-theme-orange +yay -S pywal timeshift tela-circle-icon-theme-orange # ------------------------------------------------------ # Install Pip packages @@ -42,6 +42,8 @@ ln -s ~/dotfiles/vim/ ~/.config ln -s ~/dotfiles/starship/starship.toml ~/.config/starship.toml rm ~/.bashrc ln -s ~/dotfiles/.bashrc ~/.bashrc +rm ~/.gtkrc-2.0 +ln -s ~/dotfiles/.gtkrc-2.0 ~/.gtkrc-2.0 # ------------------------------------------------------ # Clone wallpapers diff --git a/picom/picom.conf b/picom/picom.conf index 1e7c047..5a7d9c7 100644 --- a/picom/picom.conf +++ b/picom/picom.conf @@ -259,7 +259,10 @@ inactive-dim-fixed = 1.0 # opacity-rule = [ "80:class_g = 'URxvt'" ]; # opacity-rule = [ - "90:class_g = 'Alacritty'" + "90:class_g = 'Alacritty' && focused", + "70:class_g = 'Alacritty' && !focused", + "70:class_g = 'Rofi'", + "80:class_g = 'Chromium' && !focused" ] @@ -276,7 +279,7 @@ rounded-corners-exclude = [ "window_type = 'dock'", "window_type = 'desktop'", # "class_g = 'Dunst'", - # "class_g = 'Rofi'", + "class_g = 'Rofi'", "QTILE_INTERNAL:32c = 1" ]; diff --git a/qtile/__pycache__/config.cpython-310.pyc b/qtile/__pycache__/config.cpython-310.pyc index 425dfab6519f5613fbc757c9cfea5cd1a5a05208..62f69616f4d52c6d84b4179bfc0e6118993f57c4 100644 GIT binary patch delta 1180 zcmZ`$NoW*76z%HtOyW2jZkQM)3IPZ8;DSV4P!pFZ8F$4-oz(O%J2TVMHL32-Bykxv zaXa)u3J+c+@g{f)-qe#hd+{O^coGjec@Qs(Xw{?{Bw#o7-|P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--git a/qtile/config.py b/qtile/config.py index 8ed9f0b..6b31588 100644 --- a/qtile/config.py +++ b/qtile/config.py @@ -181,8 +181,16 @@ screens = [ ), widget.Systray(), widget.TextBox( - text=' ', - foreground=ColorC, + text=' ', + fontsize=16, + foreground='ffffff', + desc='Calculator', + mouse_callbacks={"Button1": lambda: qtile.cmd_spawn('qalculate-gtk')}, + ), + widget.TextBox( + text='', + fontsize=16, + foreground='ffffff', desc='Notes', mouse_callbacks={"Button1": lambda: qtile.cmd_spawn(terminal + ' -e vim /home/raabe/notes.txt')}, ), diff --git a/rofi/config.rasi b/rofi/config.rasi index 8eb3d4b..f40badd 100644 --- a/rofi/config.rasi +++ b/rofi/config.rasi @@ -2,7 +2,7 @@ configuration { display-drun: "Applications:"; display-window: "Windows:"; drun-display-format: "{name}"; - font: "JetBrainsMono Nerd Font Medium 10"; + font: "Fira Sans 11"; modi: "window,run,drun"; lines: 10; } @@ -15,7 +15,7 @@ configuration { } #window { - border:0px; + border:2px; border-color:@foreground; } diff --git a/scripts/launchvm.sh b/scripts/launchvm.sh index 41c3359..97ee999 100755 --- a/scripts/launchvm.sh +++ b/scripts/launchvm.sh @@ -5,5 +5,6 @@ echo "Waiting 20 sec for Windows 11 startup..." sleep 20 echo "Starting xfreerdp now..." xfreerdp -grab-keyboard /t:"Windows 11" /v:192.168.122.42 /size:100% /d: /p:sancho /dynamic-resolution /gfx-h264:avc444 +gfx-progressive & +sleep 3 -exit +return 0