OSDN Git Service

sll
authorpaperbenni <paperbenni@gmail.com>
Mon, 23 Dec 2019 11:28:20 +0000 (12:28 +0100)
committerpaperbenni <paperbenni@gmail.com>
Mon, 23 Dec 2019 11:28:20 +0000 (12:28 +0100)
deadd.conf [deleted file]
dswitch
install.sh
programs/autoclicker [changed mode: 0644->0755]
programs/sll [new file with mode: 0755]

diff --git a/deadd.conf b/deadd.conf
deleted file mode 100644 (file)
index c26b16a..0000000
+++ /dev/null
@@ -1,64 +0,0 @@
-
-###################################################
-## dracula theme preconf for paperbenni/suckless ##
-###################################################
-
-[notification-center]
-marginTop = 0
-width = 500
-monitor = 0
-# optional command to run at startup (e.g. to setup button states)
-startupCommand = "deadd-notification-center-startup"
-newFirst = true
-# If true, the transient field in notifications will be ignored and the
-# notification will be persisted in the notifiction center anyways
-ignoreTransient = false
-# If true, markup (<u>, <i>, <b>, <a>) will be displayed properly
-useMarkup = true
-configSendNotiClosedDbusMessage = false
-
-# See section "Notification based scripting" for an explenation
-match = "title=Abc;body=abc":"app=notify-send"
-modify = "transient=false"
-run = "":"killall notify-send"
-
-[notification-center-notification-popup]
-notiDefaultTimeout = 10000
-distanceTop = 50
-distanceRight = 50
-distanceBetween = 20
-width = 300
-monitor = 0
-
-[colors]
-background = rgba(40, 42, 54, 0.6)
-notiBackground = rgba(40, 42, 54, 0.9)
-notiColor = #f8f8f2
-critical = rgba(255, 0, 50, 0.5)
-criticalColor = #FFF
-criticalInCenter = rgba(255, 85, 85, 0.5)
-criticalInCenterColor = #FFF
-buttonColor = #f8f8f2
-buttonHover = rgba(0, 20, 20, 0.2)
-buttonHoverColor = #fee
-buttonBackground = transparent
-labelColor = #f8f8f2
-
-[buttons]
-buttonsPerRow = 5
-buttonHeight = 60
-buttonMargin = 2
-buttonColor = #fee
-buttonBackground = rgba(255, 255, 255, 0.15)
-buttonHover = rgba(0, 20, 20, 0.2)
-buttonHoverColor = #fee
-buttonTextSize = 12px;
-
-buttonState1 = rgba(255,255,255,0.5)
-buttonState1Color = #fff
-buttonState1Hover = rgba(0, 20, 20, 0.4)
-buttonState1HoverColor = #fee
-buttonState2 = rgba(255,255,255,0.3)
-buttonState2Color = #fff
-buttonState2Hover = rgba(0, 20, 20, 0.3)
-buttonState2HoverColor = #fee
\ No newline at end of file
diff --git a/dswitch b/dswitch
index d3c8bd7..7d199a6 100755 (executable)
--- a/dswitch
+++ b/dswitch
@@ -48,11 +48,17 @@ getmonitor() {
 }
 
 OLDWID=$(pfw)
+OLDMONITOR=$(getmonitor)
 focuswin "$WID"
 
 if [ "$(pfw)" = "$WID" ]; then
     exit
 else
+    
+    if ! [ "$(getmonitor)" = "$OLDMONITOR" ]; then
+        xdotool key "super+comma"
+    fi
+
     if ! [ "$(pfw)" = "$OLDWID" ]; then
         if ! [ "$OLDWID" = "0x000001e1" ]; then
             xdotool key "super+Tab"
index c80cead..b9e155d 100755 (executable)
@@ -67,6 +67,9 @@ gprogram dswitch
 gprogram dworkl
 gprogram dworkr
 
+# for that extra kick when doingg a typo
+gprogram sll
+
 curl "$LINK/termprograms.txt" >~/.cache/termprograms.txt
 
 for FOLDER in ./*; do
old mode 100644 (file)
new mode 100755 (executable)
diff --git a/programs/sll b/programs/sll
new file mode 100755 (executable)
index 0000000..c8ec8fe
--- /dev/null
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+if ! [ -e ~/paperbenni/thomas.mp3 ]; then
+    pushd .
+    cd ~/paperbenni/
+    wget thomasthetankengine.surge.sh/thomas.mp3
+    popd
+fi
+
+if pgrep mpv; then
+    sl "$@"
+    exit
+fi
+
+mpv ~/paperbenni/thomas.mp3 &>/dev/null &
+command sl "$@"
+pkill mpv