From b95308258f9ddb18d9309f0d66f00e4c4229e20a Mon Sep 17 00:00:00 2001 From: Yorick van Pelt Date: Fri, 26 Aug 2016 17:12:14 +0200 Subject: [PATCH] remove some awesome scripts --- bin/dcalc.sh | 4 --- bin/dlaunch.sh | 4 --- bin/docked.sh | 8 +++-- bin/lock.sh | 38 --------------------- x/.XCompose | 6 ++++ x/.Xdefaults | 91 -------------------------------------------------- x/.xsession | 13 -------- 7 files changed, 11 insertions(+), 153 deletions(-) delete mode 100755 bin/dcalc.sh delete mode 100755 bin/dlaunch.sh delete mode 100755 bin/lock.sh delete mode 100644 x/.Xdefaults delete mode 100755 x/.xsession diff --git a/bin/dcalc.sh b/bin/dcalc.sh deleted file mode 100755 index 23368e1..0000000 --- a/bin/dcalc.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env bash -dmenu_args="-fn SourceCodePro:pixelsize=17 -nb "#002b36" -nf "#839496" -sb "#073642" -sf "#93a1a1" $@" - -xclip -o | dmenu $dmenu_args -p Calculate: | xargs echo | bc | dmenu $dmenu_args -p "Answer:" | xclip -i diff --git a/bin/dlaunch.sh b/bin/dlaunch.sh deleted file mode 100755 index be77b4c..0000000 --- a/bin/dlaunch.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh -( - yeganesh -x -- -fn "SourceCodePro:pixelsize=17" -p "run: " -i -f -nb "#002b36" -nf "#839496" -sb "#073642" -sf "#93a1a1" $@ -) | ${SHELL:-"/bin/sh"} & diff --git a/bin/docked.sh b/bin/docked.sh index 561abdf..3a9d287 100755 --- a/bin/docked.sh +++ b/bin/docked.sh @@ -4,13 +4,15 @@ # and loads the nvidia config for vsync options and sets the dithering depth to 8 if [ `cat /sys/devices/platform/hp-wmi/dock` -eq 1 ] # && [[ `cat /proc/acpi/button/lid/LID/state` == *closed* ]] then - echo "Using docked configuration with 27\" IPS screen and VGA-screen" - xrandr --output DP-3 --primary --preferred --output LVDS-0 --left-of DP-3 --dpi 109/DP-3 + echo "Using docked configuration with 27\" IPS screen" + #xrandr --output DP-3 --primary --preferred --output LVDS-0 --left-of DP-6 --off --dpi 109/DP-3 + xrandr --output DP-3 --primary --preferred --output LVDS-0 --off --dpi 109/DP-3 nvidia-settings -a "0/XVideoSyncToDisplayID=DP-3" echo "Xft.dpi: 109" | xrdb -merge else echo "Using laptop-only configuration" - xrandr --output LVDS-0 --mode 1920x1080 --primary --rotate normal --pos 0x0 --output VGA-0 --off --output DP-3 --off --dpi 146/LVDS-0 + xrandr --size 1920x1080 --output LVDS-0 --mode 1920x1080 --primary --preferred --rotate normal --pos 0x0 --output VGA-0 --off --output DP-3 --off --output DP-6 --off --dpi 146/LVDS-0 nvidia-settings -l -a "0/XVideoSyncToDisplayID=LVDS-0" echo "Xft.dpi: 146" | xrdb -merge fi +feh --bg-fill ~/wp_roll/1633_layinginthegrass_1920x1080.jpg diff --git a/bin/lock.sh b/bin/lock.sh deleted file mode 100755 index ed39cc0..0000000 --- a/bin/lock.sh +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/sh -#xset dpms 0 0 10 -#( sleep 1s; xset dpms force off) & -#( slock && xset dpms 0 0 600 ) -# sleep 0.1s -# i3lock -d - -scrot /tmp/screen.png -convert /tmp/screen.png -scale 10% -scale 1000% /tmp/screen.png - -# if [[ -f $HOME/.config/screen-lock.png ]] -# then -# # placement x/y -# PX=0 -# PY=0 -# # lockscreen image info -# R=$(file ~/.config/screen-lock.png | grep -o '[0-9]* x [0-9]*') -# RX=$(echo $R | cut -d' ' -f 1) -# RY=$(echo $R | cut -d' ' -f 3) - - # SR=$(xrandr --query | grep ' connected' | cut -f3 -d' ') - # for RES in $SR - # do - # # monitor position/offset - # SRX=$(echo $RES | cut -d'x' -f 1) # x pos - # SRY=$(echo $RES | cut -d'x' -f 2 | cut -d'+' -f 1) # y pos - # SROX=$(echo $RES | cut -d'x' -f 2 | cut -d'+' -f 2) # x offset - # SROY=$(echo $RES | cut -d'x' -f 2 | cut -d'+' -f 3) # y offset - # PX=$(($SROX + $SRX/2 - $RX/2)) - # PY=$(($SROY + $SRY/2 - $RY/2)) - - # # convert /tmp/screen.png $HOME/.config/screen-lock.png -geometry +$PX+$PY -composite -matte /tmp/screen.png - # echo "done" - # done -# fi -# dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Stop -# i3lock -I 10 -d -e -u -n -i /tmp/screen.png -i3lock -d -i /tmp/screen.png \ No newline at end of file diff --git a/x/.XCompose b/x/.XCompose index 01dca8a..fac4672 100644 --- a/x/.XCompose +++ b/x/.XCompose @@ -6,3 +6,9 @@ : "λ" # SMALL GREEK LETTER LAMBDA : "Δ" # CAPITAL GREEK LETTER DELTA + : "‽" U203D # INTERROBANG + : "‽" U203D # INTERROBANG + + <3> : "🐱" U1F431 # CAT +

: "💩" U1F4A9 + diff --git a/x/.Xdefaults b/x/.Xdefaults deleted file mode 100644 index 0b975d5..0000000 --- a/x/.Xdefaults +++ /dev/null @@ -1,91 +0,0 @@ - -! Common - -#define S_yellow #b58900 -#define S_orange #cb4b16 -#define S_red #dc322f -#define S_magenta #d33682 -#define S_violet #6c71c4 -#define S_blue #268bd2 -#define S_cyan #2aa198 -#define S_green #859900 - - -! Dark - -#define S_base03 #002b36 -#define S_base02 #073642 -#define S_base01 #586e75 -#define S_base00 #657b83 -#define S_base0 #839496 -#define S_base1 #93a1a1 -#define S_base2 #eee8d5 -#define S_base3 #fdf6e3 - - -! Light - -! #define S_base03 #fdf6e3 -! #define S_base02 #eee8d5 -! #define S_base01 #93a1a1 -! #define S_base00 #839496 -! #define S_base0 #657b83 -! #define S_base1 #586e75 -! #define S_base2 #073642 -! #define S_base3 #002b36 - - -! To only apply colors to your terminal, for example, prefix -! the color assignment statement with its name. Example: -! -! URxvt*background: S_base03 - -*background: S_base3 -URxvt*background: [85]#002b36 -! S_base03 -*foreground: S_base0 -*fading: 10 -*fadeColor: [70]#002b36 -*cursorColor: S_base1 -*pointerColorBackground: S_base01 -*pointerColorForeground: S_base1 - -*color0: S_base02 -*color1: S_red -*color2: S_green -*color3: S_yellow -*color4: S_blue -*color5: S_magenta -*color6: S_cyan -*color7: S_base2 -*color8: S_base01 -*color9: S_orange -*color10: S_base01 -*color11: S_base00 -*color12: S_base0 -*color13: S_violet -*color14: S_base1 -*color15: S_base3 - - -! scrollbar style - xvt (default), plain (most compact), next, or xterm -URxvt.scrollstyle: plain -URxvt.scrollBar_right: true -URxvt.perl-ext-common: default,matcher -URxvt.urlLauncher: /usr/bin/firefox -URxvt.matcher.button: 1 -URxvt.urgentOnBell: True - -URxvt.depth: 32 -! URxvt.background: [95]#202020 -URxvt.font: xft:SourceCodePro:pixelsize=12:antialias=true:hinting=true -! URxvt.boldFont: xft:SourceCodePro:bold:pixelsize=12:antialias=true:hinting=true -URxvt.geometry: 100x30 -URxvt.scrollColor: S_base0 - -dzen2.background: #002b36 - -! xclock settings - -xclock*analog: false -xclock*brief: true diff --git a/x/.xsession b/x/.xsession deleted file mode 100755 index 487c03a..0000000 --- a/x/.xsession +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh -# compose led - not working -# export _XKB_OPTIONS_ENABLE=1 -# export _XKB_COMP_LED=1 - -feh --bg-fill ~/dotfiles/awesome/wallpaper.jpg -#source /etc/profile.d/infinality-settings.sh -~/dotfiles/bin/docked.sh -#syndaemon -t -k -i 1 -d & -# compositing, start after awesome -#(sleep 2s; compton --config ~/dotfiles/misc/compton.conf -b) & -exec awesome -c ~/dotfiles/awesome/rc.lua -