From 826a4b8e04a7d2b3a83fee3aa211db4909565079 Mon Sep 17 00:00:00 2001 From: adam <56338480+adastx@users.noreply.github.com> Date: Sun, 9 Oct 2022 21:52:25 +0200 Subject: scripts: renamed picom and polybar scripts --- .config/X11/xinitrc | 2 +- .config/i3/config | 4 ++-- .local/bin/barlaunch | 6 ++++++ .local/bin/comptoggle | 8 ++++++++ .local/bin/picom-toggle | 8 -------- .local/bin/polybar-launch | 6 ------ 6 files changed, 17 insertions(+), 17 deletions(-) create mode 100755 .local/bin/barlaunch create mode 100755 .local/bin/comptoggle delete mode 100755 .local/bin/picom-toggle delete mode 100755 .local/bin/polybar-launch diff --git a/.config/X11/xinitrc b/.config/X11/xinitrc index 43a6fb5..137b18e 100755 --- a/.config/X11/xinitrc +++ b/.config/X11/xinitrc @@ -40,7 +40,7 @@ unclutter -b & nextcloud --background & xwallpaper --center $XDG_CONFIG_HOME/wallpaper/bg & betterlockscreen -u $XDG_CONFIG_HOME/wallpaper/lock & -~/.local/bin/picom-toggle & +~/.local/bin/comptoggle & ~/.local/bin/rate & ~/.local/bin/screensaver & exec i3 diff --git a/.config/i3/config b/.config/i3/config index d45e73b..e4b87ed 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -14,7 +14,7 @@ bindsym $mod+f fullscreen toggle bindsym $mod+i exec --no-startup-id polybar-msg cmd toggle bindsym $mod+Shift+s exec --no-startup-id $HOME/.local/bin/screenshot -s bindsym Print exec --no-startup-id $HOME/.local/bin/screenshot -bindsym $mod+Shift+c exec --no-startup-id $HOME/.local/bin/picom-toggle +bindsym $mod+Shift+c exec --no-startup-id $HOME/.local/bin/comptoggle bindsym $mod+d exec --no-startup-id rofi -show drun -show-icons -drun-display-format {name} bindsym $alt+Tab exec --no-startup-id rofi -show window -show-icons -drun-display-format {name} @@ -192,4 +192,4 @@ for_window [class="^Steam$" title="^Steam Guard - Computer Authorization Require for_window [title="^Steam Keyboard$"] floating enable ##### Exec -exec_always --no-startup-id $HOME/.local/bin/polybar-launch +exec_always --no-startup-id $HOME/.local/bin/barlaunch diff --git a/.local/bin/barlaunch b/.local/bin/barlaunch new file mode 100755 index 0000000..a23059e --- /dev/null +++ b/.local/bin/barlaunch @@ -0,0 +1,6 @@ +#!/bin/sh + +polybar-msg cmd quit + +echo "---" >> /tmp/polybar.log +polybar bar1 --reload >> /tmp/polybar.log 2>&1 & disown diff --git a/.local/bin/comptoggle b/.local/bin/comptoggle new file mode 100755 index 0000000..c579fc7 --- /dev/null +++ b/.local/bin/comptoggle @@ -0,0 +1,8 @@ +#!/bin/sh + +if pgrep -x "picom" > /dev/null +then + killall picom +else + picom -b --config $HOME/.config/picom/picom.conf +fi diff --git a/.local/bin/picom-toggle b/.local/bin/picom-toggle deleted file mode 100755 index c579fc7..0000000 --- a/.local/bin/picom-toggle +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh - -if pgrep -x "picom" > /dev/null -then - killall picom -else - picom -b --config $HOME/.config/picom/picom.conf -fi diff --git a/.local/bin/polybar-launch b/.local/bin/polybar-launch deleted file mode 100755 index a23059e..0000000 --- a/.local/bin/polybar-launch +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh - -polybar-msg cmd quit - -echo "---" >> /tmp/polybar.log -polybar bar1 --reload >> /tmp/polybar.log 2>&1 & disown -- cgit v1.2.3-70-g09d2