From e4a7295f047ed67ece7809e50fb1bbda1042b8b9 Mon Sep 17 00:00:00 2001 From: David Runge Date: Sat, 4 Aug 2018 10:41:03 +0200 Subject: .config/packages-community.txt: Adding aliki, jaaa, jconvolver, jnoisemeter, njconnect, paulstretch, python-ly (for frescobaldi :( ) and realtime-privileges. --- .config/packages-community.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.config/packages-community.txt b/.config/packages-community.txt index 7c6142f..7b10dee 100644 --- a/.config/packages-community.txt +++ b/.config/packages-community.txt @@ -1,6 +1,7 @@ a2jmidid aeolus aj-snapshot +aliki alsa-tools amb-plugins ams @@ -56,10 +57,13 @@ guitarix2 harvid helm infamousplugins +jaaa jack2 jack_capture jacktrip jalv +jconvolver +jnoisemeter jsampler khal khard @@ -88,6 +92,7 @@ minitube moony.lv2 mxml nfoview +njconnect nomacs non-daw non-sequencer @@ -95,6 +100,7 @@ ntk padthv1 patchage patchmatrix +paulstretch pd plowshare pound @@ -113,6 +119,7 @@ python-kaptan python-langdetect python-libtmux python-linux-procfs +python-ly python-nose2 python-orderedmultidict python-pyalsa @@ -139,6 +146,7 @@ qtractor qxgedit radicale raul +realtime-privileges rev-plugins rosegarden rt-tests -- cgit v1.2.3-70-g09d2 From cb34f2866711c7e3af8279bcabfa057972fded2b Mon Sep 17 00:00:00 2001 From: David Runge Date: Sun, 5 Aug 2018 14:01:32 +0200 Subject: ~/.config/packages-community.txt: Adding todoman, python-{tabulate,click-repl}. --- .config/packages-community.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.config/packages-community.txt b/.config/packages-community.txt index 7b10dee..517a4c4 100644 --- a/.config/packages-community.txt +++ b/.config/packages-community.txt @@ -107,6 +107,7 @@ pound pvoc python-atomicwrites python-click-log +python-click-repl python-click-threading python-etesync python-ethtool @@ -129,6 +130,7 @@ python-pytest-rerunfailures python-pytest-subtesthack python-schedutils python-sphinxcontrib-newsfeed +python-tabulate python-vobject python-wsgi-intercept python-xvfbwrapper @@ -181,6 +183,7 @@ synthv1 tap-plugins timidity-freepats tmuxp +todoman tuna twolame v4l2ucp -- cgit v1.2.3-70-g09d2 From af3a27aeeed00d4781558a350a467240848085db Mon Sep 17 00:00:00 2001 From: David Runge Date: Mon, 13 Aug 2018 22:51:16 +0200 Subject: bin/backlight: Adding script to set backlight on x2{2,3}0 using sysfs. --- bin/backlight | 99 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 99 insertions(+) create mode 100755 bin/backlight diff --git a/bin/backlight b/bin/backlight new file mode 100755 index 0000000..ac8a466 --- /dev/null +++ b/bin/backlight @@ -0,0 +1,99 @@ +#!/usr/bin/env bash +# set backlight through sysfs + +set -euo pipefail + +# brightness steps in percentage +brightness_step_size=5 +brightness_device=/sys/class/backlight/intel_backlight/brightness +brightness_max_device=/sys/class/backlight/intel_backlight/max_brightness +calculated_brightness=0 +amount=0 + +brightness_steps=$(echo "100/${brightness_step_size}" |bc -l) +maximum_brightness_raw=$(cat $brightness_max_device) +current_brightness_raw=$(cat $brightness_device) +brightness_one_percent_raw=$(echo "${maximum_brightness_raw}/100" |bc -l) +current_brightness_percentage=$(echo "${current_brightness_raw}/(${maximum_brightness_raw}/100)" |bc -l) +current_brightness_remainder=$(echo "${current_brightness_percentage}%${brightness_step_size}"|bc -l) +current_step=$(echo ${current_brightness_percentage}/${brightness_step_size}|bc -l) + +check_if_number() { + if [[ $1 =~ ^[!\-0-9]+$ ]]; then + echo "Not an Integer: $1" + exit 1 + fi +} + +calculate_increment() { + check_if_number $1 + if [ $1 -eq 0 ]; then + echo "There's nothing to do." + exit 1 + fi + if [ $1 -gt 0 ]; then + if [ $(printf '%.0f' $current_brightness_percentage) -eq 100 ]; then + echo "Already at 100%" + exit 0 + elif [ $(printf '%.0f' $(echo "${current_brightness_percentage}+$1"| bc)) -gt 100 ]; then + calculated_brightness=100 + else + calculated_brightness=$(printf '%.0f' $(echo "${current_brightness_percentage}+$1"| bc)) + fi + else + if [ $(printf '%.0f' $current_brightness_percentage) -eq 0 ]; then + echo "Already at 0%" + exit 0 + elif [ $(printf '%.0f' $(echo "${current_brightness_percentage}+$1"| bc)) -lt 0 ]; then + calculated_brightness=0 + else + calculated_brightness=$(printf '%.0f' $(echo "${current_brightness_percentage}+$1"| bc)) + fi + fi +} + +calculate_percentage() { + check_if_number $1 + if [ $1 -lt 0 ] || [ $1 -gt 100 ]; then + echo "Invalid range: $1" + exit 1 + fi + calculated_brightness=$1 +} + +percentage_to_raw() { + printf '%.0f' $(echo "$1*${brightness_one_percent_raw}"|bc -l) +} + +set_brightness() { + echo "$(percentage_to_raw $calculated_brightness)" > $brightness_device +} + +print_help() { + echo -e "Usage:\n $0 -d \n or $0 -i " + exit 1 +} + +if [ ${#@} -gt 0 ]; then + while getopts 'hi:s:' flag; do + case "${flag}" in + h) + print_help + ;; + i) + calculate_increment $OPTARG + ;; + s) + calculate_percentage $OPTARG + ;; + *) + echo "Error! Try '${0} -h'." + exit 1 + ;; + esac + done +else + print_help +fi + +set_brightness -- cgit v1.2.3-70-g09d2 From 121468c8e6ce046a1e4c9d5c5d106e7dd425f3d5 Mon Sep 17 00:00:00 2001 From: David Runge Date: Wed, 22 Aug 2018 22:28:32 +0200 Subject: .config/sway/config: Adding configuration for sway. --- .config/sway/config | 213 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 213 insertions(+) create mode 100644 .config/sway/config diff --git a/.config/sway/config b/.config/sway/config new file mode 100644 index 0000000..18e030d --- /dev/null +++ b/.config/sway/config @@ -0,0 +1,213 @@ +# Default config for sway +# +# Copy this to ~/.config/sway/config and edit it to your liking. +# +# Read `man 5 sway` for a complete reference. + +### Variables +# +# Logo key. Use Mod1 for Alt. +set $mod Mod4 +# Home row direction keys, like vim +set $left h +set $down j +set $up k +set $right l +# Your preferred terminal emulator +set $term termite +# Your preferred application launcher +set $menu rofi -show drun + +# lock +set $lock swaylock -f -c 000000 + +# brightness +set $brightness_up backlight -i "5" +set $brightness_down backlight -i "-5" + +### Output configuration +# +# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/) +output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill +# +# Example configuration: +# +# output HDMI-A-1 resolution 1920x1080 position 1920,0 +# +# You can get the names of your outputs by running: swaymsg -t get_outputs + +### Input configuration +# +# Example configuration: +# +# input "2:14:SynPS/2_Synaptics_TouchPad" { +# dwt enabled +# tap enabled +# natural_scroll enabled +# middle_emulation enabled +# } +# +# You can get the names of your inputs by running: swaymsg -t get_inputs +# Read `man 5 sway-input` for more information about this section. + +### Key bindings +# +# Basics: +# + # start a terminal + bindsym $mod+Return exec $term + + # kill focused window + bindsym $mod+q kill + + # start your launcher + bindsym $mod+p exec $menu + + # Drag floating windows by holding down $mod and left mouse button. + # Resize them with right mouse button + $mod. + # Despite the name, also works for non-floating windows. + # Change normal to inverse to use left mouse button for resizing and right + # mouse button for dragging. + floating_modifier $mod normal + + # reload the configuration file + bindsym $mod+Ctrl+r reload + + # lock sway + bindsym $mod+Ctrl+s exec $lock + + # exit sway (logs you out of your wayland session) + bindsym $mod+Ctrl+e exit + # brightness + bindsym XF86MonBrightnessDown exec $brightness_down + bindsym XF86MonBrightnessUp exec $brightness_up +# +# Moving around: +# + # Move your focus around + bindsym $mod+$left focus left + bindsym $mod+$down focus down + bindsym $mod+$up focus up + bindsym $mod+$right focus right + # or use $mod+[up|down|left|right] + bindsym $mod+Left focus left + bindsym $mod+Down focus down + bindsym $mod+Up focus up + bindsym $mod+Right focus right + + # _move_ the focused window with the same, but add Shift + bindsym $mod+Ctrl+$left move left + bindsym $mod+Ctrl+$down move down + bindsym $mod+Ctrl+$up move up + bindsym $mod+Ctrl+$right move right + # ditto, with arrow keys + bindsym $mod+Ctrl+Left move left + bindsym $mod+Ctrl+Down move down + bindsym $mod+Ctrl+Up move up + bindsym $mod+Ctrl+Right move right +# +# Workspaces: +# + # switch to workspace + bindsym $mod+1 workspace 1 + bindsym $mod+2 workspace 2 + bindsym $mod+3 workspace 3 + bindsym $mod+4 workspace 4 + bindsym $mod+5 workspace 5 + bindsym $mod+6 workspace 6 + bindsym $mod+7 workspace 7 + bindsym $mod+8 workspace 8 + bindsym $mod+9 workspace 9 + bindsym $mod+0 workspace 10 + # move focused container to workspace + bindsym $mod+Shift+1 move container to workspace 1 + bindsym $mod+Shift+2 move container to workspace 2 + bindsym $mod+Shift+3 move container to workspace 3 + bindsym $mod+Shift+4 move container to workspace 4 + bindsym $mod+Shift+5 move container to workspace 5 + bindsym $mod+Shift+6 move container to workspace 6 + bindsym $mod+Shift+7 move container to workspace 7 + bindsym $mod+Shift+8 move container to workspace 8 + bindsym $mod+Shift+9 move container to workspace 9 + bindsym $mod+Shift+0 move container to workspace 10 + # Note: workspaces can have any name you want, not just numbers. + # We just use 1-10 as the default. +# +# Layout stuff: +# + # You can "split" the current object of your focus with + # $mod+b or $mod+v, for horizontal and vertical splits + # respectively. + bindsym $mod+b splith + bindsym $mod+v splitv + + # Switch the current container between different layout styles + bindsym $mod+s layout stacking + bindsym $mod+w layout tabbed + bindsym $mod+e layout toggle split + + # Make the current focus fullscreen + bindsym $mod+f fullscreen + + # Toggle the current focus between tiling and floating mode + bindsym $mod+Shift+space floating toggle + + # Swap focus between the tiling area and the floating area + bindsym $mod+space focus mode_toggle + + # move focus to the parent container + bindsym $mod+a focus parent +# +# Scratchpad: +# + # Sway has a "scratchpad", which is a bag of holding for windows. + # You can send windows there and get them back later. + + # Move the currently focused window to the scratchpad + bindsym $mod+Shift+minus move scratchpad + + # Show the next scratchpad window or hide the focused scratchpad window. + # If there are multiple scratchpad windows, this command cycles through them. + bindsym $mod+minus scratchpad show +# +# Resizing containers: +# +mode "resize" { + # left will shrink the containers width + # right will grow the containers width + # up will shrink the containers height + # down will grow the containers height + bindsym $left resize shrink width 10 px or 10 ppt + bindsym $down resize grow height 10 px or 10 ppt + bindsym $up resize shrink height 10 px or 10 ppt + bindsym $right resize grow width 10 px or 10 ppt + + # ditto, with arrow keys + bindsym Left resize shrink width 10 px or 10 ppt + bindsym Down resize grow height 10 px or 10 ppt + bindsym Up resize shrink height 10 px or 10 ppt + bindsym Right resize grow width 10 px or 10 ppt + + # return to default mode + bindsym Return mode "default" + bindsym Escape mode "default" + +} +bindsym $mod+r mode "resize" + +# TODO: triggers endless loop within sway! +# +# Status Bar: +# +# Read `man 5 sway-bar` for more information about this section. +bar { + position top + colors { + statusline #ffffff + background #323232 + inactive_workspace #32323200 #32323200 #5c5c5c + } +} + + +include /etc/sway/config.d/* -- cgit v1.2.3-70-g09d2 From 0fcb833bb8829c8d79d5c3bb769a5f8abae66f02 Mon Sep 17 00:00:00 2001 From: David Runge Date: Wed, 22 Aug 2018 22:28:55 +0200 Subject: bin/startsway: Add sway startup script. --- bin/startsway | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 bin/startsway diff --git a/bin/startsway b/bin/startsway new file mode 100755 index 0000000..ae0b104 --- /dev/null +++ b/bin/startsway @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +export XKB_DEFAULT_LAYOUT=us,de +export XKB_DEFAULT_OPTIONS=grp:alt_shift_toggle +/usr/bin/sway -dV -- cgit v1.2.3-70-g09d2 From 4c378f43d239747b88787917f32761d346476306 Mon Sep 17 00:00:00 2001 From: David Runge Date: Thu, 13 Sep 2018 18:53:39 +0200 Subject: .mutt/macros.rc: Removing obsolete or broken accounts (tu-berlin.de and c-base.org). --- .mutt/accounts.rc | 8 -------- .mutt/dave@c-base.org.rc | 10 ---------- .mutt/dave@c-base.org.sig | 1 - .mutt/david.runge@campus.tu-berlin.de.rc | 11 ----------- .mutt/david.runge@campus.tu-berlin.de.sig | 18 ------------------ .mutt/macros.rc | 3 --- .mutt/studio@ak.tu-berlin.de.rc | 11 ----------- .mutt/studio@ak.tu-berlin.de.sig | 18 ------------------ 8 files changed, 80 deletions(-) delete mode 100644 .mutt/dave@c-base.org.rc delete mode 100644 .mutt/dave@c-base.org.sig delete mode 100644 .mutt/david.runge@campus.tu-berlin.de.rc delete mode 100644 .mutt/david.runge@campus.tu-berlin.de.sig delete mode 100644 .mutt/studio@ak.tu-berlin.de.rc delete mode 100644 .mutt/studio@ak.tu-berlin.de.sig diff --git a/.mutt/accounts.rc b/.mutt/accounts.rc index cd1fd26..2ee88f6 100644 --- a/.mutt/accounts.rc +++ b/.mutt/accounts.rc @@ -3,11 +3,3 @@ set spoolfile = "+sleepmap.de/INBOX" source "~/.mutt/dave@sleepmap.de.rc" folder-hook sleepmap.de/* source ~/.mutt/dave@sleepmap.de.rc -# david.runge@tu-berlin.de -folder-hook tu-berlin.de/* source ~/.mutt/david.runge@campus.tu-berlin.de.rc - -# studio@ak.tu-berlin.de -folder-hook studio@ak.tu-berlin.de/* source ~/.mutt/studio@ak.tu-berlin.de.rc - -# dave@c-base.org -folder-hook c-base.org/* source ~/.mutt/dave@c-base.org.rc diff --git a/.mutt/dave@c-base.org.rc b/.mutt/dave@c-base.org.rc deleted file mode 100644 index 269e88a..0000000 --- a/.mutt/dave@c-base.org.rc +++ /dev/null @@ -1,10 +0,0 @@ -set from = "David Runge " -set sendmail = "/usr/bin/msmtp -a c-base.org" -set folder = "~/Mail/c-base.org" -set spoolfile = "+INBOX" -set postponed = "+Drafts" -set record = "+Sent" -set signature = "~/.mutt/dave@c-base.org.sig" - -color status blue default - diff --git a/.mutt/dave@c-base.org.sig b/.mutt/dave@c-base.org.sig deleted file mode 100644 index 1e6a3ea..0000000 --- a/.mutt/dave@c-base.org.sig +++ /dev/null @@ -1 +0,0 @@ -I can feel my mind is going... diff --git a/.mutt/david.runge@campus.tu-berlin.de.rc b/.mutt/david.runge@campus.tu-berlin.de.rc deleted file mode 100644 index a513afc..0000000 --- a/.mutt/david.runge@campus.tu-berlin.de.rc +++ /dev/null @@ -1,11 +0,0 @@ -# Receive options -set from = "David Runge " -set sendmail = "/usr/bin/msmtp -a tu-berlin.de" -set folder = "~/Mail/tu-berlin.de" -set spoolfile = "+INBOX" -set postponed = "+Drafts" -set record = "+Sent" -set signature = "~/.mutt/david.runge@campus.tu-berlin.de.sig" - -color status red default - diff --git a/.mutt/david.runge@campus.tu-berlin.de.sig b/.mutt/david.runge@campus.tu-berlin.de.sig deleted file mode 100644 index 11f7cdd..0000000 --- a/.mutt/david.runge@campus.tu-berlin.de.sig +++ /dev/null @@ -1,18 +0,0 @@ -David Runge -Elektronisches Studio, Fachgebiet Audiokommunikation -Electronic Music Studio, Audio Communication Group - -Technische Universität Berlin -Fakultät I Geistes- und Bildungswissenschaften -Institut für Sprache und Kommunikation - -Faculty I Humanities -Institute of Speech and Communication - -Einsteinufer 17c, Sekr. E-N 8, 10587 Berlin -Germany -Tel: +493031422327 -Fax: +493031421143 -E-Mail: studio@ak.tu-berlin.de - -http://www.ak.tu-berlin.de/studio diff --git a/.mutt/macros.rc b/.mutt/macros.rc index bd430a0..1d42a76 100644 --- a/.mutt/macros.rc +++ b/.mutt/macros.rc @@ -1,9 +1,6 @@ # source folder settings and enter folder macro index,pager 'source ~/.mutt/dave@sleepmap.de.rc!' -macro index,pager 'source ~/.mutt/dave@c-base.org.rc!' -macro index,pager 'source ~/.mutt/david.runge@campus.tu-berlin.de.rc!' -macro index,pager 'source ~/.mutt/studio@ak.tu-berlin.de.rc!' macro attach W \ "~/Downloads/" \ diff --git a/.mutt/studio@ak.tu-berlin.de.rc b/.mutt/studio@ak.tu-berlin.de.rc deleted file mode 100644 index e59ad96..0000000 --- a/.mutt/studio@ak.tu-berlin.de.rc +++ /dev/null @@ -1,11 +0,0 @@ -# Receive options -set from = "Elektronisches Studio TUB " -set sendmail = "/usr/bin/msmtp -a tu-berlin.de" -set folder = "~/Mail/studio@ak.tu-berlin.de" -set spoolfile = "+INBOX" -set postponed = "+Drafts" -set record = "+Sent" -set signature = "~/.mutt/studio@ak.tu-berlin.de.sig" - -color status red default - diff --git a/.mutt/studio@ak.tu-berlin.de.sig b/.mutt/studio@ak.tu-berlin.de.sig deleted file mode 100644 index 11f7cdd..0000000 --- a/.mutt/studio@ak.tu-berlin.de.sig +++ /dev/null @@ -1,18 +0,0 @@ -David Runge -Elektronisches Studio, Fachgebiet Audiokommunikation -Electronic Music Studio, Audio Communication Group - -Technische Universität Berlin -Fakultät I Geistes- und Bildungswissenschaften -Institut für Sprache und Kommunikation - -Faculty I Humanities -Institute of Speech and Communication - -Einsteinufer 17c, Sekr. E-N 8, 10587 Berlin -Germany -Tel: +493031422327 -Fax: +493031421143 -E-Mail: studio@ak.tu-berlin.de - -http://www.ak.tu-berlin.de/studio -- cgit v1.2.3-70-g09d2 From 9dbea9ce894fe8844565a6aac78232c5bf73f8ae Mon Sep 17 00:00:00 2001 From: David Runge Date: Thu, 13 Sep 2018 18:54:28 +0200 Subject: .offlineimaprc: Removing tu-berlin.de and c-base.org sync settings. --- .offlineimaprc | 39 ++------------------------------------- 1 file changed, 2 insertions(+), 37 deletions(-) diff --git a/.offlineimaprc b/.offlineimaprc index 83d7b3c..9101b96 100644 --- a/.offlineimaprc +++ b/.offlineimaprc @@ -1,9 +1,9 @@ [general] -accounts = sleepmap.de,tu-berlin.de,c-base.org +accounts = sleepmap.de maxsyncaccounts = 4 pythonfile = ~/bin/pass2offlineimap -# Automatic mailbox generationi for mutt +# Automatic mailbox generation for mutt [mbnames] enabled = yes filename = ~/.mutt/mailboxes.rc @@ -12,23 +12,6 @@ peritem = "+%(accountname)s/%(foldername)s" sep = " " footer = "\n" -[Account tu-berlin.de] -localrepository = tu-berlin-local -remoterepository = tu-berlin-remote -quick = -1 - -[Repository tu-berlin-local] -type = Maildir -localfolders = ~/Mail/tu-berlin.de/ - -[Repository tu-berlin-remote] -type = IMAP -remotehost = exchange.tu-berlin.de -remoteuser = davezerave@win.tu-berlin.de -remotepasseval = get_pass("davezerave@mail.tu-berlin.de") -folderfilter = lambda folder: folder not in ['Aufgaben', 'Entw&APw-rfe', 'Gel&APY-schte Elemente', 'Gesendete Elemente', 'Journal', 'Junk-E-Mail', 'Kalender', 'Kontakte', 'Notizen', 'Postausgang'] -sslcacertfile = /etc/ssl/cert.pem - [Account sleepmap.de] localrepository = sleepmap-local remoterepository = sleepmap-remote @@ -48,21 +31,3 @@ starttls = yes ssl = no sslcacertfile = /etc/ssl/cert.pem -[Account c-base.org] -localrepository = c-base-local -remoterepository = c-base-remote -quick = -1 - -[Repository c-base-local] -type = Maildir -localfolders = ~/Mail/c-base.org/ -nametrans = lambda folder: "INBOX" if "INBOX" in folder else "INBOX." + folder - -[Repository c-base-remote] -type = IMAP -remotehost = c-mail.c-base.org -remoteuser = dave -remotepasseval = get_pass("dave@c-base.org") -nametrans = lambda folder: re.sub('^INBOX\.', '', folder) -folderfilter = lambda folder: folder not in ['INBOX.INBOX'] -sslcacertfile = /etc/ssl/cert.pem -- cgit v1.2.3-70-g09d2 From 544e634c8ce9b041e1191253563bf54da2a4e88a Mon Sep 17 00:00:00 2001 From: David Runge Date: Thu, 13 Sep 2018 18:55:02 +0200 Subject: bin/pkgs: Removing headers of list outputs. --- bin/pkgs | 2 -- 1 file changed, 2 deletions(-) diff --git a/bin/pkgs b/bin/pkgs index ce208c4..59f2d9c 100755 --- a/bin/pkgs +++ b/bin/pkgs @@ -249,12 +249,10 @@ if [ $list_mode -eq 1 ] && \ elif [ $list_mode -eq 1 ] && \ [ $aur_mode -eq 1 ] && \ [ $community_mode -eq 0 ];then - echo "AUR packages:" cat "$aur_packagelist" elif [ $list_mode -eq 1 ] && \ [ $aur_mode -eq 0 ] && \ [ $community_mode -eq 1 ];then - echo "Community packages:" cat "$community_packagelist" elif [ $list_mode -eq 1 ] && \ [ $aur_mode -eq 1 ] && \ -- cgit v1.2.3-70-g09d2 From 6df5b9fbfc3ecd46f3629486402f2f9f5a227a1c Mon Sep 17 00:00:00 2001 From: David Runge Date: Thu, 13 Sep 2018 18:55:53 +0200 Subject: .config/packages-aur.txt: Adding jack2-git. --- .config/packages-aur.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/.config/packages-aur.txt b/.config/packages-aur.txt index 8f37989..b6d8656 100644 --- a/.config/packages-aur.txt +++ b/.config/packages-aur.txt @@ -6,6 +6,7 @@ firefox-extension-tab-tree firefox-saka-key gmsynth.lv2 iannix +jack2-git jackcpp-git khard-git libffado-svn -- cgit v1.2.3-70-g09d2 From c4c1c0594f5deccd40c98b273f91ff7185de1f4f Mon Sep 17 00:00:00 2001 From: David Runge Date: Thu, 13 Sep 2018 18:57:21 +0200 Subject: .config/packages-community.txt: Adding argtable, japa, liblo, lv2file noise-repellent, python-{doit,fastnumbers,husl,micawber,natsort,nose-progressive,phpserialize,piexif,pilkit,pyrss2gen,toml,yapsy,zopfli}, setbfree, sigal, zopfli. --- .config/packages-community.txt | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.config/packages-community.txt b/.config/packages-community.txt index 517a4c4..92159de 100644 --- a/.config/packages-community.txt +++ b/.config/packages-community.txt @@ -7,6 +7,7 @@ amb-plugins ams amsynth ardour +argtable artyfx aubio audacity @@ -62,6 +63,7 @@ jack2 jack_capture jacktrip jalv +japa jconvolver jnoisemeter jsampler @@ -74,6 +76,7 @@ libffado libfishsound libgig libircclient +liblo liblrdf liblscp libltc @@ -84,6 +87,7 @@ linuxsampler lmms luppp lv2 +lv2file mcp-plugins mda.lv2 meterbridge @@ -93,6 +97,7 @@ moony.lv2 mxml nfoview njconnect +noise-repellent nomacs non-daw non-sequencer @@ -109,9 +114,12 @@ python-atomicwrites python-click-log python-click-repl python-click-threading +python-doit python-etesync python-ethtool +python-fastnumbers python-furl +python-husl python-imdbpy python-inet_diag python-iwlib @@ -121,21 +129,31 @@ python-langdetect python-libtmux python-linux-procfs python-ly +python-micawber +python-natsort +python-nose-progressive python-nose2 python-orderedmultidict +python-phpserialize +python-piexif +python-pilkit python-pyalsa python-pyliblo python-pymediainfo +python-pyrss2gen python-pytest-rerunfailures python-pytest-subtesthack python-schedutils python-sphinxcontrib-newsfeed python-tabulate +python-toml python-vobject python-wsgi-intercept python-xvfbwrapper +python-yapsy python-zita-audiotools python-zita-jacktools +python-zopfli qastools qjackctl qmidiarp @@ -159,7 +177,9 @@ rubberband samplv1 schedtool serd +setbfree sherlock.lv2 +sigal smplayer-skins smtube snd @@ -209,6 +229,7 @@ zita-lrx zita-mu1 zita-njbridge zita-rev1 +zopfli zsh-autosuggestions zsh-history-substring-search zynaddsubfx -- cgit v1.2.3-70-g09d2 From 76626af103fc58d2a52a6105ecc15420f5507db0 Mon Sep 17 00:00:00 2001 From: David Runge Date: Thu, 13 Sep 2018 18:59:32 +0200 Subject: .vdirsyncer/config: Adding bus_shared_by_t4 calendar. --- .vdirsyncer/config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.vdirsyncer/config b/.vdirsyncer/config index b014d15..ebd9acc 100644 --- a/.vdirsyncer/config +++ b/.vdirsyncer/config @@ -23,7 +23,7 @@ password.fetch = ["command", "~/bin/pass2vdirsyncer", "dave", "cloud.sleepmap.de [pair dave_calendar] a = "dave_calendar_local" b = "dave_calendar_remote" -collections = ["concerts", "contact_birthdays", "live", "flat", "private", "work"] +collections = ["concerts", "contact_birthdays", "live", "flat", "private", "work", "bus_shared_by_t4"] [storage dave_calendar_local] type = "filesystem" -- cgit v1.2.3-70-g09d2 From 375dee8ab3c2eab52a4fac3842799a8b3afc208d Mon Sep 17 00:00:00 2001 From: David Runge Date: Thu, 13 Sep 2018 19:00:12 +0200 Subject: .config/khal/config: Adding t4 calendar. --- .config/khal/config | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.config/khal/config b/.config/khal/config index 56a40aa..3e6026c 100644 --- a/.config/khal/config +++ b/.config/khal/config @@ -32,6 +32,10 @@ color = dark cyan path = ~/.calendars/work color = dark magenta +[[t4]] +path = ~/.calendars/bus_shared_by_t4 +color = dark cyan + [sqlite] path = ~/.config/khal/khal.db -- cgit v1.2.3-70-g09d2 From ca25cf5a1758bec3f71d641515b67bfd1f1eca9d Mon Sep 17 00:00:00 2001 From: David Runge Date: Thu, 13 Sep 2018 19:01:21 +0200 Subject: .config/qtile/config.py: Adding Wlan widget. --- .config/qtile/config.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.config/qtile/config.py b/.config/qtile/config.py index a9174e5..244b836 100644 --- a/.config/qtile/config.py +++ b/.config/qtile/config.py @@ -341,6 +341,8 @@ screens = [ frequency=5, type="box", ), + widget.Wlan( + interface="wlp3s0"), widget.MemoryGraph( graph_color=colors["green"], border_width=0, -- cgit v1.2.3-70-g09d2 From f383ea1983e6458ca4a5b59192ec5f87e8d57387 Mon Sep 17 00:00:00 2001 From: David Runge Date: Thu, 13 Sep 2018 19:02:25 +0200 Subject: .zsh.after/export.zsh: Don't use tmux-256color in tmux on Debilian because it's too old. --- .zsh.after/export.zsh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.zsh.after/export.zsh b/.zsh.after/export.zsh index 921401d..54d78ab 100644 --- a/.zsh.after/export.zsh +++ b/.zsh.after/export.zsh @@ -1,5 +1,4 @@ -# use xterm-color anywhere. Sane default for color and termite -if [[ -n $TMUX ]] && [[ $VENDOR != "apple" ]];then +if [[ -n $TMUX ]] && [[ $VENDOR != "apple" ]] && [[ ! -e /etc/debian_version ]]; then export TERM="tmux-256color" elif [[ -n $STY ]];then export TERM="screen-256color" -- cgit v1.2.3-70-g09d2 From f31796d7db54baa60306c4adcc5601eaea8d43ee Mon Sep 17 00:00:00 2001 From: David Runge Date: Thu, 13 Sep 2018 19:08:32 +0200 Subject: .zsh.after/functions.zsh: Make rsync output in backup_folder() human readable. Remove weird custom coloring foo. --- .zsh.after/functions.zsh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.zsh.after/functions.zsh b/.zsh.after/functions.zsh index b089ff6..e2af147 100644 --- a/.zsh.after/functions.zsh +++ b/.zsh.after/functions.zsh @@ -203,13 +203,13 @@ ex2() { ## RSYNC backupinfo() { - log_cyan "INFO" rsync\ -r\ -n\ -t\ -p\ -o\ + -h\ -g\ -v\ --progress\ @@ -232,6 +232,7 @@ backupfolder() { -t\ -p\ -o\ + -h\ -g\ -v\ --progress\ -- cgit v1.2.3-70-g09d2 From fda33adc1d546151ca32cb78c8c279fb7f3ce341 Mon Sep 17 00:00:00 2001 From: David Runge Date: Thu, 13 Sep 2018 19:09:33 +0200 Subject: bin/startsway: Log output to ~/.log/sway.log. --- bin/startsway | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/startsway b/bin/startsway index ae0b104..ee46560 100755 --- a/bin/startsway +++ b/bin/startsway @@ -2,4 +2,5 @@ export XKB_DEFAULT_LAYOUT=us,de export XKB_DEFAULT_OPTIONS=grp:alt_shift_toggle -/usr/bin/sway -dV +mkdir -p "$HOME/.log" +/usr/bin/sway -dV > "$HOME/.log/sway.log" 2>&1 -- cgit v1.2.3-70-g09d2 From f92f6656da05364e610ee58551cdbe69daafa689 Mon Sep 17 00:00:00 2001 From: David Runge Date: Thu, 13 Sep 2018 19:11:06 +0200 Subject: .config/linuxsampler.org/Qsampler.conf: Remove, because it makes no sense in repo. --- .config/linuxsampler.org/Qsampler.conf | 63 ---------------------------------- 1 file changed, 63 deletions(-) delete mode 100644 .config/linuxsampler.org/Qsampler.conf diff --git a/.config/linuxsampler.org/Qsampler.conf b/.config/linuxsampler.org/Qsampler.conf deleted file mode 100644 index bb420d0..0000000 --- a/.config/linuxsampler.org/Qsampler.conf +++ /dev/null @@ -1,63 +0,0 @@ -[Geometry] -qsamplerInstrumentListForm\x=1 -qsamplerInstrumentListForm\y=25 -qsamplerInstrumentListForm\width=720 -qsamplerInstrumentListForm\height=340 -qsamplerInstrumentListForm\visible=true -qsamplerDeviceForm\x=0 -qsamplerDeviceForm\y=0 -qsamplerDeviceForm\width=530 -qsamplerDeviceForm\height=488 -qsamplerDeviceForm\visible=false -qsamplerMainForm\x=961 -qsamplerMainForm\y=25 -qsamplerMainForm\width=958 -qsamplerMainForm\height=1174 -qsamplerMainForm\visible=true - -[Layout] -DockWindows=@ByteArray(\0\0\0\xff\0\0\0\0\xfd\0\0\0\x1\0\0\0\x3\0\0\x3\xbe\0\0\0\xd4\xfc\x1\0\0\0\x1\xfb\0\0\0 \0q\0s\0\x61\0m\0p\0l\0\x65\0r\0M\0\x65\0s\0s\0\x61\0g\0\x65\0s\x1\0\0\0\0\0\0\x3\xbe\0\0\0\x46\0\xff\xff\xff\0\0\x3\xbe\0\0\x3t\0\0\0\x4\0\0\0\x4\0\0\0\b\0\0\0\b\xfc\0\0\0\x1\0\0\0\x2\0\0\0\x3\0\0\0\x16\0\x66\0i\0l\0\x65\0T\0o\0o\0l\0\x62\0\x61\0r\x1\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0\0\0\0\x16\0\x65\0\x64\0i\0t\0T\0o\0o\0l\0\x62\0\x61\0r\x1\0\0\0\xf3\xff\xff\xff\xff\0\0\0\0\0\0\0\0\0\0\0\x1e\0\x63\0h\0\x61\0n\0n\0\x65\0l\0s\0T\0o\0o\0l\0\x62\0\x61\0r\x1\0\0\x1\xc7\xff\xff\xff\xff\0\0\0\0\0\0\0\0) - -[Program] -Version=0.2.3 - -[Options] -Server\ServerHost=localhost -Server\ServerPort=8888 -Server\ServerTimeout=1000 -Server\ServerStart=true -Server\ServerCmdLine=linuxsampler -Server\StartDelay=3 -Logging\MessagesLog=false -Logging\MessagesLogPath=qsampler.log -Display\DisplayFont=",9,-1,5,50,0,0,0,0,0" -Display\DisplayEffect=true -Display\AutoRefresh=true -Display\AutoRefreshTime=1000 -Display\MaxVolume=100 -Display\MessagesFont="Sans Serif,9,-1,5,50,0,0,0,0,0" -Display\MessagesLimit=true -Display\MessagesLimitLines=1000 -Display\ConfirmRemove=true -Display\KeepOnTop=true -Display\StdoutCapture=true -Display\CompletePath=true -Display\MaxRecentFiles=5 -Display\BaseFontSize=0 -Display\InstrumentNames=true -View\Menubar=true -View\Toolbar=true -View\Statusbar=true -View\AutoArrange=true - -[Default] -SessionDir= -InstrumentDir= -EngineName= -AudioDriver= -MidiDriver= -MidiMap=1 -MidiBank=0 -MidiProg=0 -Volume=100 -Loadmode=0 -- cgit v1.2.3-70-g09d2 From 4d9f8a0541b7f3cdd63fbf04d239531f3bf6585a Mon Sep 17 00:00:00 2001 From: David Runge Date: Thu, 13 Sep 2018 19:11:48 +0200 Subject: .vim/addons-settings.vim: Adding supercollider settings for split in tmux. --- .vim/addons-settings.vim | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.vim/addons-settings.vim b/.vim/addons-settings.vim index b61938a..3addf02 100644 --- a/.vim/addons-settings.vim +++ b/.vim/addons-settings.vim @@ -197,3 +197,8 @@ let g:solarized_termtrans=1 " ================ YouCompleteMe ============== " set let g:EclimCompletionMethod = 'omnifunc' + +" ================ supercollider ================ +let g:scFlash = 1 +let g:scSplitDirection = "v" +let g:scSplitSize = 25 -- cgit v1.2.3-70-g09d2 From 9f979a5612d81d9bf6ef4b1978a6a53666895ce3 Mon Sep 17 00:00:00 2001 From: David Runge Date: Thu, 20 Sep 2018 00:21:59 +0200 Subject: .config/packages-community.txt: Adding nextcloud-app-spreed. --- .config/packages-community.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/.config/packages-community.txt b/.config/packages-community.txt index 92159de..475d2b5 100644 --- a/.config/packages-community.txt +++ b/.config/packages-community.txt @@ -95,6 +95,7 @@ midi_matrix.lv2 minitube moony.lv2 mxml +nextcloud-app-spreed nfoview njconnect noise-repellent -- cgit v1.2.3-70-g09d2 From 56848bd7e34f484cdce7a69258cf22a57108d231 Mon Sep 17 00:00:00 2001 From: David Runge Date: Sat, 29 Sep 2018 11:07:28 +0200 Subject: bin/cs: Fixing script according to shellcheck. --- bin/cs | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/bin/cs b/bin/cs index 363ba12..4eb7fe6 100755 --- a/bin/cs +++ b/bin/cs @@ -19,7 +19,7 @@ function open_cryptdevice() { echo "Crypt device has already been opened: /dev/mapper/$2" echo "Continuing..." else - /usr/bin/sudo /usr/bin/cryptsetup luksOpen "/dev/disk/by-uuid/$1" $2 + /usr/bin/sudo /usr/bin/cryptsetup luksOpen "/dev/disk/by-uuid/$1" "$2" fi else echo "Error: Device $2 (UUID=$1) is not available." @@ -28,7 +28,7 @@ function open_cryptdevice() { } function close_cryptdevice() { - /usr/bin/sudo /usr/bin/cryptsetup luksClose $1 + /usr/bin/sudo /usr/bin/cryptsetup luksClose "$1" } function mount_cryptdevice() { @@ -50,35 +50,35 @@ function unmount_cryptdevice() { if [ -x "$HOME/.config/cs/pre_umount/$1" ]; then "$HOME/.config/cs/pre_umount/$1" fi - /usr/bin/sudo /usr/bin/umount /mnt/$1 + /usr/bin/sudo /usr/bin/umount "/mnt/$1" } function validate_cryptdevice_name() { - local _result_valid_name=$1 + local _result_valid_name="$1" local name_found=0 - local input_name=${2:-} + local input_name="${2:-}" for name in "${!devices[@]}"; do - if [ $name = "${input_name}" ]; then + if [ "$name" = "${input_name}" ]; then name_found=1 - eval $_result_valid_name="'$name_found'" + eval "$_result_valid_name"="$name_found" fi done } -validate_cryptdevice_name valid_name ${device_name} +validate_cryptdevice_name valid_name "${device_name}" if [ $valid_name -eq 0 ]; then echo "No such device: '$device_name'!" exit 1 fi -case $1 in +case "$command_name" in "open") - open_cryptdevice ${devices[${2}]} $2 - mount_cryptdevice $2 + open_cryptdevice "${devices[${2}]}" "$2" + mount_cryptdevice "$2" ;; "close") - unmount_cryptdevice $2 - close_cryptdevice $2 + unmount_cryptdevice "$2" + close_cryptdevice "$2" ;; *) echo "cs only understands 'open' and 'close'." -- cgit v1.2.3-70-g09d2 From ef61314537124443367d0291c0a891a9c2b46a5c Mon Sep 17 00:00:00 2001 From: David Runge Date: Sat, 10 Nov 2018 18:55:11 +0100 Subject: .config/packages-community.txt: Adding ams-lv2, beatslash-lv2, gmsynth.lv2, lib32-fluidsynth, lsp-plugins, lvtk, stk and removing ssmtp. --- .config/packages-community.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.config/packages-community.txt b/.config/packages-community.txt index 475d2b5..9f11eda 100644 --- a/.config/packages-community.txt +++ b/.config/packages-community.txt @@ -5,6 +5,7 @@ aliki alsa-tools amb-plugins ams +ams-lv2 amsynth ardour argtable @@ -13,6 +14,7 @@ aubio audacity autorandr avldrums.lv2 +beatslash-lv2 blop blop.lv2 cacti @@ -52,6 +54,7 @@ g2reverb ganv giada gigedit +gmsynth.lv2 gpa grub-customizer guitarix2 @@ -70,6 +73,7 @@ jsampler khal khard lash +lib32-fluidsynth lib32-jack lib32-jack2 libffado @@ -85,9 +89,11 @@ libsmf lilv linuxsampler lmms +lsp-plugins luppp lv2 lv2file +lvtk mcp-plugins mda.lv2 meterbridge @@ -193,7 +199,7 @@ sord sox spectmorph sratom -ssmtp +stk subdownloader suil supercollider -- cgit v1.2.3-70-g09d2 From ded661b3ee59ec4f4bae454346c31ffdaf4bd5e5 Mon Sep 17 00:00:00 2001 From: David Runge Date: Sun, 11 Nov 2018 12:30:49 +0100 Subject: .config/packages-aur.txt: Removing gmsynth.lv2 (now in community). Adding librenms and patroneo-git. --- .config/packages-aur.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.config/packages-aur.txt b/.config/packages-aur.txt index b6d8656..aa0f9d1 100644 --- a/.config/packages-aur.txt +++ b/.config/packages-aur.txt @@ -4,16 +4,17 @@ easytranscript etherpad-lite firefox-extension-tab-tree firefox-saka-key -gmsynth.lv2 iannix jack2-git jackcpp-git khard-git libffado-svn liblo-git +librenms mantisbt nextcloud-news-updater patchbook-git +patroneo-git pd-git prosody-mod-admin-message-hg prosody-mod-admin-web-hg -- cgit v1.2.3-70-g09d2 From ffa2c611ab70ef313bf5b8c09ace3025f1f396e8 Mon Sep 17 00:00:00 2001 From: David Runge Date: Sat, 17 Nov 2018 00:40:47 +0100 Subject: .config/packages-community.txt: Adding marsyas. --- .config/packages-community.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/.config/packages-community.txt b/.config/packages-community.txt index 9f11eda..ed459d4 100644 --- a/.config/packages-community.txt +++ b/.config/packages-community.txt @@ -94,6 +94,7 @@ luppp lv2 lv2file lvtk +marsyas mcp-plugins mda.lv2 meterbridge -- cgit v1.2.3-70-g09d2 From a7940964544bdf4536c16836dc79e2d0ae375ae0 Mon Sep 17 00:00:00 2001 From: David Runge Date: Sat, 17 Nov 2018 00:44:54 +0100 Subject: .xprofile: Repaired with the help of shellcheck. --- .xprofile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.xprofile b/.xprofile index 34ad424..116c4b4 100644 --- a/.xprofile +++ b/.xprofile @@ -1,8 +1,8 @@ #!/usr/bin/env bash # use .Xmodmap -if [[ -f ~/.Xmodmap ]]; then - /usr/bin/xmodmap ~/.Xmodmap & +if [ -f ~/.Xmodmap ]; then + /usr/bin/xmodmap ~/.Xmodmap & fi # set X settings @@ -18,12 +18,12 @@ fi # setup screens on login using autorandr if [ -x "$HOME/bin/setup_screens" ]; then - $HOME/bin/setup_screens & + "$HOME/bin/setup_screens" & fi # lock X automatically after inactivity if [ -x "$HOME/bin/xorg_autolock" ]; then - $HOME/bin/xorg_autolock & + "$HOME/bin/xorg_autolock" & fi # lock X before going to sleep -- cgit v1.2.3-70-g09d2 From 63e6444533cb8960f918cba97fb65f0fdf70dd00 Mon Sep 17 00:00:00 2001 From: David Runge Date: Sat, 17 Nov 2018 00:49:07 +0100 Subject: bin/xorg_lock: Properly quote variables. Rename variables for better readibility. --- bin/xorg_lock | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bin/xorg_lock b/bin/xorg_lock index 648099e..6ddeb0c 100755 --- a/bin/xorg_lock +++ b/bin/xorg_lock @@ -2,13 +2,13 @@ set -euo pipefail -lock=${XDG_RUNTIME_DIR}/xorg_autolock.lock -lockcmd="i3lock -n -e -c 000000 -f" +lock_file=${XDG_RUNTIME_DIR}/xorg_autolock.lock +lock_cmd="i3lock -n -e -c 000000 -f" if [ -x "/usr/bin/i3lock" ]; then - touch ${lock} - ${lockcmd} - rm -f ${lock} + touch "${lock_file}" + ${lock_cmd} + rm -f "${lock_file}" else echo "i3lock is not installed!" exit 1 -- cgit v1.2.3-70-g09d2 From 4f99bbc4e1fd137af0ae60afef1793794b4dfe58 Mon Sep 17 00:00:00 2001 From: David Runge Date: Sat, 17 Nov 2018 00:50:50 +0100 Subject: bin/xorg_autolock: Properly quoting variables. Abstracting lock_cmd. --- bin/xorg_autolock | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/bin/xorg_autolock b/bin/xorg_autolock index f30ae3e..181548e 100755 --- a/bin/xorg_autolock +++ b/bin/xorg_autolock @@ -4,15 +4,16 @@ set -euo pipefail lock=${XDG_RUNTIME_DIR}/xorg_autolock.lock lock_block=${XDG_RUNTIME_DIR}/xorg_autolock_block +lock_cmd="$HOME/bin/xorg_lock" lockafter=600000 -rm -f ${lock} ${lock_block} +rm -f "${lock}" "${lock_block}" -while [ 1 ]; do - if [ ! -f ${lock} -a ! -f ${lock_block} ];then +while true; do + if [ ! -f "${lock}" ] && [ ! -f "${lock_block}" ];then if [ -x "/usr/bin/xssstate" ]; then - if [ $(xssstate -i) -ge $lockafter ]; then - $HOME/bin/xorg_lock + if [ "$(xssstate -i)" -ge $lockafter ] && [ -x "$lock_cmd" ]; then + $lock_cmd fi else echo "xssstate is note installed!" -- cgit v1.2.3-70-g09d2 From 80a498c77c62d184731740b94ee5a6188e79726c Mon Sep 17 00:00:00 2001 From: David Runge Date: Sat, 17 Nov 2018 00:52:59 +0100 Subject: bin/setup_screens: Fixing and simplifying various things with the help of shellcheck. Using a separate get_display function to retrieve DISPLAY. --- bin/setup_screens | 66 ++++++++++++++++++++++++++++++------------------------- 1 file changed, 36 insertions(+), 30 deletions(-) diff --git a/bin/setup_screens b/bin/setup_screens index 1a84bba..7cd0b17 100755 --- a/bin/setup_screens +++ b/bin/setup_screens @@ -2,23 +2,29 @@ # Script to setup screens on login and lid-switch-action # Uses autorandr to determine which screens are connected and which to setup. # -# Per default a configuration named "internal" will be used, if the computer is +# Per default a configuration named "default" will be used, if the computer is # a laptop and not docked. # A configuration named "docked-closed" will be used during login, when the lid # is closed and docked. -# A configuration named "docked-open" will be used during login, when the lid +# A configuration named "docked-all" will be used during login, when the lid # is open and docked. set -e -u lid_state="" -docking_state="" fingerprint="" action="" x_user="" +display="" current_user="" path="" +# get DISPLAY number +get_display() +{ + display=$(pgrep -a Xorg|cut -d':' -f2| cut -d' ' -f1) +} + # get current user running X get_x_user() { @@ -41,15 +47,17 @@ get_path() function get_lid_state() { if [ -r "/proc/acpi/button/lid/LID/state" ]; then - lid_state="$(cat /proc/acpi/button/lid/LID/state|awk '{print $2}')" + lid_state="$(awk '{print $2}' /proc/acpi/button/lid/LID/state)" fi } # Get current docking state ("true" or "false") -function get_docking_state() +function is_docked() { - if [ -x "/usr/bin/busctl" ]; then - docking_state="$(busctl introspect org.freedesktop.login1 /org/freedesktop/login1|grep "\.Docked"|awk '{print $4}')" + if command -v busctl > /dev/null; then + busctl introspect org.freedesktop.login1 /org/freedesktop/login1| grep -E '^.Docked'| awk '{print $4}' + else + echo false fi } @@ -63,8 +71,8 @@ function get_setup_fingerprint() function get_configuration_fingerprint() { local fingerprint="" - if [ -r $HOME/.config/autorandr/$1/setup ]; then - fingerprint="$(md5sum $HOME/.config/autorandr/$1/setup| cut -d ' ' -f 1)" + if [ -r "$HOME/.config/autorandr/$1/setup" ]; then + fingerprint="$(md5sum "$HOME/.config/autorandr/$1/setup"| cut -d ' ' -f 1)" fi echo "$fingerprint" } @@ -73,19 +81,19 @@ function set_configuration() { local state=0 # if the computer is docked - if [ "$docking_state" = "true" ]; then + if is_docked ; then # if there's a lid-switch action if [ -n "$action" ]; then case "$action" in "open") - if [ $(get_configuration_fingerprint "docked-open") == "$fingerprint" ]; then - echo "Loading docked-open." + if [ "$(get_configuration_fingerprint 'docked-all')" == "$fingerprint" ]; then + echo "Loading docked-all." state=1 - autorandr -l docked-open + autorandr -l docked-all fi ;; "close") - if [ $(get_configuration_fingerprint "docked-closed") == "$fingerprint" ]; then + if [ "$(get_configuration_fingerprint 'docked-closed')" == "$fingerprint" ]; then echo "Loading docked-closed." state=1 autorandr -l docked-closed @@ -96,10 +104,10 @@ function set_configuration() # check the lid state case "$lid_state" in "open") - if [[ $(get_configuration_fingerprint "docked-open") == "$fingerprint" ]]; then - echo "Loading docked-open." + if [[ $(get_configuration_fingerprint "docked-all") == "$fingerprint" ]]; then + echo "Loading docked-all." state=1 - autorandr -l docked-open + autorandr -l docked-all fi ;; "closed") @@ -125,11 +133,11 @@ function set_configuration() fi fi fi - # if the screen still has not been setup, try using internal + # if the screen still has not been setup, try using default if [ $state -ne 1 ]; then - if [[ $(get_configuration_fingerprint "internal") == "$fingerprint" ]]; then - echo "Loading internal." - autorandr -l internal + if [[ $(get_configuration_fingerprint "default") == "$fingerprint" ]]; then + echo "Loading default." + autorandr -l default fi fi } @@ -147,27 +155,25 @@ fi logger "Calling 'setup_screens'" get_x_user +get_display get_current_user get_path # Export Xorg DISPLAY and XAUTHORITY -export DISPLAY=$(ls /tmp/.X*|grep "lock"|cut -d '.' -f2| cut -d '-' -f1|sed -e 's/X/:/') -export XAUTHORITY="$(eval echo ~$x_user/.Xauthority)" +export DISPLAY=":$display" +export XAUTHORITY="/home/$x_user/.Xauthority" # if the script caller is the current X user or root (and lightdm is the current X user) -if [ "$current_user" = "$x_user" ] || [ $current_user = "root" -a $x_user = "lightdm" ]; then +if [ "$current_user" == "$x_user" ]; then get_lid_state - get_docking_state get_setup_fingerprint set_configuration -else - if [ $current_user = "root" ]; then +elif [ "$current_user" == "root" ]; then logger "Running $path as user $x_user now." - runuser -l $x_user -c $path - else + runuser -l "$x_user" -c "$path" +else echo "$current_user is not currently running X and is not allowed to let the current X user run this script." exit 1 - fi fi exit 0 -- cgit v1.2.3-70-g09d2 From 836e1ac848e412f0ea8d5564f625a796c2b9a85f Mon Sep 17 00:00:00 2001 From: David Runge Date: Sat, 17 Nov 2018 01:08:18 +0100 Subject: .zsh.after/aliases.zsh: Removing useless pacsearch overloading. --- .zsh.after/aliases.zsh | 1 - 1 file changed, 1 deletion(-) diff --git a/.zsh.after/aliases.zsh b/.zsh.after/aliases.zsh index 8a86938..413dd3b 100644 --- a/.zsh.after/aliases.zsh +++ b/.zsh.after/aliases.zsh @@ -162,7 +162,6 @@ alias pac='sudo pacman -S' #Install specific package(s) from the repositories alias pacu='sudo pacman -U' #Install specific package not from the repositories but from a file alias pacre='sudo pacman -R' #Remove the specified package(s), retaining its configuration(s) and required dependencies alias pacrem='sudo pacman -Rns' #Remove specified package(s), its configuration(s) and unneeded depends -alias pacsearch="pacman -Sl | cut -d' ' -f2 | grep " #Search through all available packages in repo alias pacname="sudo pacman -Qi|grep Name|grep " #Search through names of packages by string alias pacri='pacman -Si' #Display information about a given package in the repositories alias pacrs='pacman -Ss' #Search for package(s) in the repositories -- cgit v1.2.3-70-g09d2 From 06dd2ed2aed46803fea0148e9db212314d9174ba Mon Sep 17 00:00:00 2001 From: David Runge Date: Sun, 18 Nov 2018 15:04:26 +0100 Subject: .ncmpcpp/config: Switching to local visualizer fifo. Using visualizer_type ellipse. --- .ncmpcpp/config | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.ncmpcpp/config b/.ncmpcpp/config index 705487d..de64f92 100644 --- a/.ncmpcpp/config +++ b/.ncmpcpp/config @@ -53,10 +53,10 @@ empty_tag_marker = "" lastfm_preferred_language = "en" -visualizer_in_stereo = "yes" -visualizer_fifo_path = "/run/user/1000/mpd/fifo" +visualizer_fifo_path = "~/.config/mpd/fifo" visualizer_output_name = "mpd_fifo" +visualizer_in_stereo = "yes" visualizer_sync_interval = 10 -visualizer_type = "spectrum" # spectrum/wave +visualizer_type = "ellipse" visualizer_color = "blue" visualizer_look = ●▮ -- cgit v1.2.3-70-g09d2 From 332961ab4e61629770ff4cbdcd714628d52a2d08 Mon Sep 17 00:00:00 2001 From: David Runge Date: Mon, 19 Nov 2018 22:39:52 +0100 Subject: .config/packages-community.txt: Adding dragonfly-reverb, libmusicxml, ssr and wolf-shaper. --- .config/packages-community.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.config/packages-community.txt b/.config/packages-community.txt index ed459d4..f99b47c 100644 --- a/.config/packages-community.txt +++ b/.config/packages-community.txt @@ -34,6 +34,7 @@ dbus-c++ din dnscrypt-proxy dpf-plugins +dragonfly-reverb drumgizmo drumkv1 drumstick @@ -84,6 +85,7 @@ liblo liblrdf liblscp libltc +libmusicxml liboggz libsmf lilv @@ -200,6 +202,7 @@ sord sox spectmorph sratom +ssr stk subdownloader suil @@ -223,6 +226,7 @@ vim-csound vm.lv2 vmpk wah-plugins +wolf-shaper x42-plugins xjadeo yoshimi -- cgit v1.2.3-70-g09d2 From 58ecfc4281811b5bae6b68780276f153d3fc735f Mon Sep 17 00:00:00 2001 From: David Runge Date: Mon, 19 Nov 2018 22:43:11 +0100 Subject: .config/systemd/user/jack@.service: Adding a local jack@ user service, so no package is required. --- .config/systemd/user/jack@.service | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .config/systemd/user/jack@.service diff --git a/.config/systemd/user/jack@.service b/.config/systemd/user/jack@.service new file mode 100644 index 0000000..1a77e5a --- /dev/null +++ b/.config/systemd/user/jack@.service @@ -0,0 +1,13 @@ +[Unit] +Description=JACK server using %i configuration +After=sound.target local-fs.target + +[Service] +EnvironmentFile=-/etc/jack/%i +EnvironmentFile=-%h/.config/jack/%i +ExecStart=/usr/bin/jackd $JACK_OPTIONS -d $DRIVER -d $DEVICE $DRIVER_SETTINGS +LimitRTPRIO=95 +LimitRTTIME=infinity + +[Install] +WantedBy=default.target -- cgit v1.2.3-70-g09d2 From eaa7c331e8aa1f9331cbc8e17b8b60cf546473e6 Mon Sep 17 00:00:00 2001 From: David Runge Date: Mon, 19 Nov 2018 22:56:29 +0100 Subject: .config/packages-aur.txt: Removing ssr (now in [community]). --- .config/packages-aur.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/.config/packages-aur.txt b/.config/packages-aur.txt index aa0f9d1..17a9aaf 100644 --- a/.config/packages-aur.txt +++ b/.config/packages-aur.txt @@ -21,7 +21,6 @@ prosody-mod-admin-web-hg python-osc roundcube-rcmcarddav rts-git -ssr ssr-git supercollider-git ttf-cmu-typewriter -- cgit v1.2.3-70-g09d2 From 3ac01ad58982dfe46fea4908c2388b39ba4795c0 Mon Sep 17 00:00:00 2001 From: David Runge Date: Mon, 19 Nov 2018 22:58:05 +0100 Subject: .gitignore: Removing ignore of .config/systemd (time to add some local overrides). --- .gitignore | 1 - 1 file changed, 1 deletion(-) diff --git a/.gitignore b/.gitignore index a8f7e3b..1564036 100644 --- a/.gitignore +++ b/.gitignore @@ -156,7 +156,6 @@ packages/ .config/smplayer .config/sound-juicer/ .config/synergy-dvzrv.conf -.config/systemd/ .config/tint2/ .config/user-dirs.locale .config/vlc/ -- cgit v1.2.3-70-g09d2 From 09df56b2408730e79dbbd4f49d862008e9bd02ac Mon Sep 17 00:00:00 2001 From: David Runge Date: Mon, 19 Nov 2018 22:59:22 +0100 Subject: .config/jack/*: Changing all configurations for jack@ user service (as its layout has changed). --- .config/jack/fw-fireface800-44100 | 18 ++++++------------ .config/jack/fw-fireface800-48000 | 18 ++++++------------ .config/jack/internal-44100 | 15 +++++---------- .config/jack/internal-48000 | 15 +++++---------- .config/jack/rpi-internal-44100 | 14 +++++--------- .config/jack/rpi-internal-48000 | 15 +++++---------- .config/jack/rpi-usb-44100 | 14 +++++--------- .config/jack/rpi-usb-48000 | 14 +++++--------- .config/jack/usb-babyface-44100 | 15 +++++---------- .config/jack/usb-babyface-48000 | 15 +++++---------- .config/jack/usb-fireface-ufx-ak-44100 | 15 +++++---------- .config/jack/usb-fireface-ufx-ak-48000 | 15 +++++---------- .config/jack/usb-fireface-ufx-en324-44100 | 15 +++++---------- .config/jack/usb-fireface-ufx-en324-48000 | 15 +++++---------- .config/jack/usb-scarlett-18i20-44100 | 15 +++++---------- .config/jack/usb-scarlett-18i20-48000 | 15 +++++---------- 16 files changed, 82 insertions(+), 161 deletions(-) diff --git a/.config/jack/fw-fireface800-44100 b/.config/jack/fw-fireface800-44100 index 4d28bed..e9b9887 100644 --- a/.config/jack/fw-fireface800-44100 +++ b/.config/jack/fw-fireface800-44100 @@ -1,13 +1,7 @@ -# Sample configuration file for a JACK systemd --user service, using a firewire device -NAME="default" +# JACK setup (see man 1 jackd) +JACK_DEFAULT_SERVER="default" +# options (e.g. -m, -n, -p, -r, -P, -t, -C, -u, -v) +JACK_OPTIONS="-P80 -p 512" DRIVER="firewire" -DEVICE="/dev/fw1" -NOMLOCK="" -REALTIME="-R" -PORTMAX=512 -UNLOCK="-u" -VERBOSE="-v" -DRIVER_SETTINGS="\ - -n 3 \ - -p 64\ - -r 44100" +DEVICE="guid:0x000a3500ada83262" +DRIVER_SETTINGS="-n 3 -p 64 -r 44100" diff --git a/.config/jack/fw-fireface800-48000 b/.config/jack/fw-fireface800-48000 index 9f2efa5..3de0b3e 100644 --- a/.config/jack/fw-fireface800-48000 +++ b/.config/jack/fw-fireface800-48000 @@ -1,13 +1,7 @@ -# Sample configuration file for a JACK systemd --user service, using a firewire device -NAME="default" +# JACK setup (see man 1 jackd) +JACK_DEFAULT_SERVER="default" +# options (e.g. -m, -n, -p, -r, -P, -t, -C, -u, -v) +JACK_OPTIONS="-P80 -p 512" DRIVER="firewire" -DEVICE="/dev/fw1" -NOMLOCK="" -REALTIME="-R" -PORTMAX=512 -UNLOCK="-u" -VERBOSE="-v" -DRIVER_SETTINGS="\ - -n 3 \ - -p 512\ - -r 48000" +DEVICE="guid:0x000a3500ada83262" +DRIVER_SETTINGS="-n 3 -p 64 -r 48000" diff --git a/.config/jack/internal-44100 b/.config/jack/internal-44100 index 6440aca..8b4cb57 100644 --- a/.config/jack/internal-44100 +++ b/.config/jack/internal-44100 @@ -1,12 +1,7 @@ -NAME="default" +# JACK setup (see man 1 jackd) +JACK_DEFAULT_SERVER="default" +# options (e.g. -m, -n, -p, -r, -P, -t, -C, -u, -v) +JACK_OPTIONS="-P80 -p 512" DRIVER="alsa" DEVICE="hw:PCH,0" -NOMLOCK="" -REALTIME="-R" -PORTMAX=512 -UNLOCK="-u" -VERBOSE="-v" -DRIVER_SETTINGS="\ - -n 2 \ - -p 256\ - -r 44100" +DRIVER_SETTINGS="-n 2 -p 512 -r 44100" diff --git a/.config/jack/internal-48000 b/.config/jack/internal-48000 index b210426..175e780 100644 --- a/.config/jack/internal-48000 +++ b/.config/jack/internal-48000 @@ -1,12 +1,7 @@ -NAME="default" +# JACK setup (see man 1 jackd) +JACK_DEFAULT_SERVER="default" +# options (e.g. -m, -n, -p, -r, -P, -t, -C, -u, -v) +JACK_OPTIONS="-P80 -p 512" DRIVER="alsa" DEVICE="hw:PCH,0" -NOMLOCK="" -REALTIME="-R" -PORTMAX=512 -UNLOCK="-u" -VERBOSE="-v" -DRIVER_SETTINGS="\ - -n 2 \ - -p 256\ - -r 48000" +DRIVER_SETTINGS="-n 2 -p 512 -r 48000" diff --git a/.config/jack/rpi-internal-44100 b/.config/jack/rpi-internal-44100 index 8415d9c..ec1eafb 100644 --- a/.config/jack/rpi-internal-44100 +++ b/.config/jack/rpi-internal-44100 @@ -1,11 +1,7 @@ +# JACK setup (see man 1 jackd) +JACK_DEFAULT_SERVER="default" +# options (e.g. -m, -n, -p, -r, -P, -t, -C, -u, -v) +JACK_OPTIONS="-P80 -p 512" DRIVER="alsa" DEVICE="hw:ALSA" -NOMLOCK="" -REALTIME="-R" -PORTMAX=512 -UNLOCK="" -VERBOSE="-v" -DRIVER_SETTINGS="\ - -n 2 \ - -p 1024\ - -r 44100" +DRIVER_SETTINGS="-n 2 -p 512 -r 44100" diff --git a/.config/jack/rpi-internal-48000 b/.config/jack/rpi-internal-48000 index 47cfa15..f7000c9 100644 --- a/.config/jack/rpi-internal-48000 +++ b/.config/jack/rpi-internal-48000 @@ -1,12 +1,7 @@ -NAME="default" +# JACK setup (see man 1 jackd) +JACK_DEFAULT_SERVER="default" +# options (e.g. -m, -n, -p, -r, -P, -t, -C, -u, -v) +JACK_OPTIONS="-P80 -p 512" DRIVER="alsa" DEVICE="hw:ALSA" -NOMLOCK="" -REALTIME="-R" -PORTMAX=512 -UNLOCK="" -VERBOSE="-v" -DRIVER_SETTINGS="\ - -n 2 \ - -p 2048\ - -r 48000" +DRIVER_SETTINGS="-n 2 -p 512 -r 48000" diff --git a/.config/jack/rpi-usb-44100 b/.config/jack/rpi-usb-44100 index 40cc305..0a5c66b 100644 --- a/.config/jack/rpi-usb-44100 +++ b/.config/jack/rpi-usb-44100 @@ -1,11 +1,7 @@ +# JACK setup (see man 1 jackd) +JACK_DEFAULT_SERVER="default" +# options (e.g. -m, -n, -p, -r, -P, -t, -C, -u, -v) +JACK_OPTIONS="-P80 -p 512" DRIVER="alsa" DEVICE="hw:Device" -NOMLOCK="" -REALTIME="-R" -PORTMAX=512 -UNLOCK="" -VERBOSE="-v" -DRIVER_SETTINGS="\ - -n 2 \ - -p 64\ - -r 44100" +DRIVER_SETTINGS="-n 2 -p 64 -r 44100" diff --git a/.config/jack/rpi-usb-48000 b/.config/jack/rpi-usb-48000 index a5c35b0..7ec28be 100644 --- a/.config/jack/rpi-usb-48000 +++ b/.config/jack/rpi-usb-48000 @@ -1,11 +1,7 @@ +# JACK setup (see man 1 jackd) +JACK_DEFAULT_SERVER="default" +# options (e.g. -m, -n, -p, -r, -P, -t, -C, -u, -v) +JACK_OPTIONS="-P80 -p 512" DRIVER="alsa" DEVICE="hw:Device" -NOMLOCK="" -REALTIME="-R" -PORTMAX=512 -UNLOCK="" -VERBOSE="-v" -DRIVER_SETTINGS="\ - -n 2 \ - -p 128\ - -r 48000" +DRIVER_SETTINGS="-n 2 -p 128 -r 48000" diff --git a/.config/jack/usb-babyface-44100 b/.config/jack/usb-babyface-44100 index 90bb056..493d912 100644 --- a/.config/jack/usb-babyface-44100 +++ b/.config/jack/usb-babyface-44100 @@ -1,12 +1,7 @@ -NAME="default" +# JACK setup (see man 1 jackd) +JACK_DEFAULT_SERVER="default" +# options (e.g. -m, -n, -p, -r, -P, -t, -C, -u, -v) +JACK_OPTIONS="-P80 -p 512" DRIVER="alsa" DEVICE="hw:Babyface2338447" -NOMLOCK="" -REALTIME="-R" -PORTMAX=512 -UNLOCK="-u" -VERBOSE="-v" -DRIVER_SETTINGS="\ - -n 2 \ - -p 128\ - -r 44100" +DRIVER_SETTINGS="-n 2 -p 128 -r 44100" diff --git a/.config/jack/usb-babyface-48000 b/.config/jack/usb-babyface-48000 index 2635762..fa770a8 100644 --- a/.config/jack/usb-babyface-48000 +++ b/.config/jack/usb-babyface-48000 @@ -1,12 +1,7 @@ -NAME="default" +# JACK setup (see man 1 jackd) +JACK_DEFAULT_SERVER="default" +# options (e.g. -m, -n, -p, -r, -P, -t, -C, -u, -v) +JACK_OPTIONS="-P80 -p 512" DRIVER="alsa" DEVICE="hw:Babyface2338447" -NOMLOCK="" -REALTIME="-R" -PORTMAX=512 -UNLOCK="-u" -VERBOSE="-v" -DRIVER_SETTINGS="\ - -n 2 \ - -p 128\ - -r 48000" +DRIVER_SETTINGS="-n 2 -p 128 -r 48000" diff --git a/.config/jack/usb-fireface-ufx-ak-44100 b/.config/jack/usb-fireface-ufx-ak-44100 index bac22f8..e53a148 100644 --- a/.config/jack/usb-fireface-ufx-ak-44100 +++ b/.config/jack/usb-fireface-ufx-ak-44100 @@ -1,12 +1,7 @@ -NAME="default" +# JACK setup (see man 1 jackd) +JACK_DEFAULT_SERVER="default" +# options (e.g. -m, -n, -p, -r, -P, -t, -C, -u, -v) +JACK_OPTIONS="-P80 -p 512" DRIVER="alsa" DEVICE="hw:UFX23208936" -NOMLOCK="" -REALTIME="-R" -PORTMAX=512 -UNLOCK="-u" -VERBOSE="-v" -DRIVER_SETTINGS="\ - -n 2 \ - -p 64 \ - -r 44100" +DRIVER_SETTINGS="-n 2 -p 64 -r 44100" diff --git a/.config/jack/usb-fireface-ufx-ak-48000 b/.config/jack/usb-fireface-ufx-ak-48000 index 5769970..3c3502b 100644 --- a/.config/jack/usb-fireface-ufx-ak-48000 +++ b/.config/jack/usb-fireface-ufx-ak-48000 @@ -1,12 +1,7 @@ -NAME="default" +# JACK setup (see man 1 jackd) +JACK_DEFAULT_SERVER="default" +# options (e.g. -m, -n, -p, -r, -P, -t, -C, -u, -v) +JACK_OPTIONS="-P80 -p 512" DRIVER="alsa" DEVICE="hw:UFX23208936" -NOMLOCK="" -REALTIME="-R" -PORTMAX=512 -UNLOCK="-u" -VERBOSE="-v" -DRIVER_SETTINGS="\ - -n 2 \ - -p 128\ - -r 48000" +DRIVER_SETTINGS="-n 2 -p 128 -r 48000" diff --git a/.config/jack/usb-fireface-ufx-en324-44100 b/.config/jack/usb-fireface-ufx-en324-44100 index 6e4e3d6..3ce1369 100644 --- a/.config/jack/usb-fireface-ufx-en324-44100 +++ b/.config/jack/usb-fireface-ufx-en324-44100 @@ -1,12 +1,7 @@ -NAME="default" +# JACK setup (see man 1 jackd) +JACK_DEFAULT_SERVER="default" +# options (e.g. -m, -n, -p, -r, -P, -t, -C, -u, -v) +JACK_OPTIONS="-P80 -p 512" DRIVER="alsa" DEVICE="hw:UFX23643007" -NOMLOCK="" -REALTIME="-R" -PORTMAX=512 -UNLOCK="-u" -VERBOSE="-v" -DRIVER_SETTINGS="\ - -n 2 \ - -p 128\ - -r 44100" +DRIVER_SETTINGS="-n 2 -p 64 -r 44100" diff --git a/.config/jack/usb-fireface-ufx-en324-48000 b/.config/jack/usb-fireface-ufx-en324-48000 index 7ffbc81..82590eb 100644 --- a/.config/jack/usb-fireface-ufx-en324-48000 +++ b/.config/jack/usb-fireface-ufx-en324-48000 @@ -1,12 +1,7 @@ -NAME="default" +# JACK setup (see man 1 jackd) +JACK_DEFAULT_SERVER="default" +# options (e.g. -m, -n, -p, -r, -P, -t, -C, -u, -v) +JACK_OPTIONS="-P80 -p 512" DRIVER="alsa" DEVICE="hw:UFX23643007" -NOMLOCK="" -REALTIME="-R" -PORTMAX=512 -UNLOCK="-u" -VERBOSE="-v" -DRIVER_SETTINGS="\ - -n 2 \ - -p 128\ - -r 48000" +DRIVER_SETTINGS="-n 2 -p 128 -r 48000" diff --git a/.config/jack/usb-scarlett-18i20-44100 b/.config/jack/usb-scarlett-18i20-44100 index ef2537c..75a7e0b 100644 --- a/.config/jack/usb-scarlett-18i20-44100 +++ b/.config/jack/usb-scarlett-18i20-44100 @@ -1,12 +1,7 @@ -NAME="default" +# JACK setup (see man 1 jackd) +JACK_DEFAULT_SERVER="default" +# options (e.g. -m, -n, -p, -r, -P, -t, -C, -u, -v) +JACK_OPTIONS="-P80 -p 512" DRIVER="alsa" DEVICE="hw:USB" -NOMLOCK="" -REALTIME="-R" -PORTMAX=512 -UNLOCK="-u" -VERBOSE="-v" -DRIVER_SETTINGS="\ - -n 2 \ - -p 128\ - -r 44100" +DRIVER_SETTINGS="-n 2 -p 128 -r 44100" diff --git a/.config/jack/usb-scarlett-18i20-48000 b/.config/jack/usb-scarlett-18i20-48000 index 17aad87..e510beb 100644 --- a/.config/jack/usb-scarlett-18i20-48000 +++ b/.config/jack/usb-scarlett-18i20-48000 @@ -1,12 +1,7 @@ -NAME="default" +# JACK setup (see man 1 jackd) +JACK_DEFAULT_SERVER="default" +# options (e.g. -m, -n, -p, -r, -P, -t, -C, -u, -v) +JACK_OPTIONS="-P80 -p 512" DRIVER="alsa" DEVICE="hw:USB" -NOMLOCK="" -REALTIME="-R" -PORTMAX=512 -UNLOCK="-u" -VERBOSE="-v" -DRIVER_SETTINGS="\ - -n 2 \ - -p 256\ - -r 48000" +DRIVER_SETTINGS="-n 2 -p 128 -r 48000" -- cgit v1.2.3-70-g09d2 From e55a4e7e5577e6759596315b0a2b4a9c34e96945 Mon Sep 17 00:00:00 2001 From: David Runge Date: Mon, 19 Nov 2018 23:00:45 +0100 Subject: .config/systemd/user/mpd@.service: Adding local override for mpd@ user service. Raising LimitRTPrio to 75, as some threads in mpd apparently require it. --- .config/systemd/user/mpd@.service | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .config/systemd/user/mpd@.service diff --git a/.config/systemd/user/mpd@.service b/.config/systemd/user/mpd@.service new file mode 100644 index 0000000..6bde606 --- /dev/null +++ b/.config/systemd/user/mpd@.service @@ -0,0 +1,12 @@ +[Unit] +Description=Music Player Daemon +After=network.target sound.target +Conflicts=mpd.service + +[Service] +ExecStart=/usr/bin/mpd --no-daemon %h/.config/mpd/mpd-%i.conf +LimitRTPRIO=75 +LimitRTTIME=infinity + +[Install] +WantedBy=default.target -- cgit v1.2.3-70-g09d2 From de1f86528b58faa0844f24b9edb63e5837dd7444 Mon Sep 17 00:00:00 2001 From: David Runge Date: Wed, 21 Nov 2018 22:19:25 +0100 Subject: .config/packages-community.txt: Adding pd-lua. --- .config/packages-community.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/.config/packages-community.txt b/.config/packages-community.txt index f99b47c..0667244 100644 --- a/.config/packages-community.txt +++ b/.config/packages-community.txt @@ -117,6 +117,7 @@ patchage patchmatrix paulstretch pd +pd-lua plowshare pound pvoc -- cgit v1.2.3-70-g09d2