diff --git a/.config/Code - OSS/User/settings.json b/.config/Code - OSS/User/settings.json index 3810ab7..c1def2c 100644 --- a/.config/Code - OSS/User/settings.json +++ b/.config/Code - OSS/User/settings.json @@ -1,7 +1,11 @@ { "workbench.colorTheme": "Atom One Dark", "editor.fontFamily": "Fira Code", - "editor.fontSize": 13, "editor.minimap.enabled": false, - "editor.fontLigatures": true + "editor.fontLigatures": true, + "editor.renderControlCharacters": false, + "editor.rulers": [ + 80, + 120 + ] } \ No newline at end of file diff --git a/.config/i3/config b/.config/i3/config index e8b4756..ccfbb1e 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -274,7 +274,6 @@ exec --no-startup-id feh --bg-fill /usr/share/backgrounds/custom/mountain.jpg # applets exec --no-startup-id nm-applet -exec --no-startup-id cbatticon # ------------------------------------------------------------------------------ # Workspace bar diff --git a/.config/i3blocks/scripts/battery b/.config/i3blocks/scripts/battery deleted file mode 100755 index 69ca3d6..0000000 --- a/.config/i3blocks/scripts/battery +++ /dev/null @@ -1,72 +0,0 @@ -#!/usr/bin/perl -# -# Copyright 2014 Pierre Mavro -# Copyright 2014 Vivien Didelot -# -# Licensed under the terms of the GNU GPL v3, or any later version. -# -# This script is meant to use with i3blocks. It parses the output of the "acpi" -# command (often provided by a package of the same name) to read the status of -# the battery, and eventually its remaining time (to full charge or discharge). -# -# The color will gradually change for a percentage below 85%, and the urgency -# (exit code 33) is set if there is less that 5% remaining. - -use strict; -use warnings; -use utf8; - -my $acpi; -my $status; -my $percent; -my $full_text; -my $short_text; -my $bat_number = $ENV{BLOCK_INSTANCE} || 0; - -# read the first line of the "acpi" command output -open (ACPI, "acpi -b | grep 'Battery $bat_number' |") or die; -$acpi = ; -close(ACPI); - -# fail on unexpected output -if ($acpi !~ /: (\w+), (\d+)%/) { - die "$acpi\n"; -} - -$status = $1; -$percent = $2; -$full_text = "$percent%"; - -if ($status eq 'Discharging') { - $full_text .= ' DIS'; -} elsif ($status eq 'Charging') { - $full_text .= ' CHR'; -} - -$short_text = $full_text; - -if ($acpi =~ /(\d\d:\d\d):/) { - $full_text .= " ($1)"; -} - -# print text -print "$full_text\n"; -print "$short_text\n"; - -# consider color and urgent flag only on discharge -if ($status eq 'Discharging') { - - if ($percent < 33) { - print "#ff5400\n"; - } elsif ($percent < 66) { - print "#ffd400\n"; - } else { - print "#a8ff00\n"; - } - - if ($percent < 5) { - exit(33); - } -} - -exit(0); diff --git a/.config/i3blocks/scripts/cpu_usage b/.config/i3blocks/scripts/cpu_usage deleted file mode 100755 index a520458..0000000 --- a/.config/i3blocks/scripts/cpu_usage +++ /dev/null @@ -1,55 +0,0 @@ -#!/usr/bin/perl -# -# Copyright 2014 Pierre Mavro -# Copyright 2014 Vivien Didelot -# Copyright 2014 Andreas Guldstrand -# -# Licensed under the terms of the GNU GPL v3, or any later version. - -use strict; -use warnings; -use utf8; -use Getopt::Long; - -# default values -my $t_warn = 50; -my $t_crit = 80; -my $cpu_usage = -1; - -sub help { - print "Usage: cpu_usage [-w ] [-c ]\n"; - print "-w : warning threshold to become yellow\n"; - print "-c : critical threshold to become red\n"; - exit 0; -} - -GetOptions("help|h" => \&help, - "w=i" => \$t_warn, - "c=i" => \$t_crit); - -# Get CPU usage -$ENV{LC_ALL}="en_US"; # if mpstat is not run under en_US locale, things may break, so make sure it is -open (MPSTAT, 'mpstat 1 1 |') or die; -while () { - if (/^.*\s+(\d+\.\d+)\s+$/) { - $cpu_usage = 100 - $1; # 100% - %idle - last; - } -} -close(MPSTAT); - -$cpu_usage eq -1 and die 'Can\'t find CPU information'; - -# Print short_text, full_text -printf "%.2f%%\n", $cpu_usage; -printf "%.2f%%\n", $cpu_usage; - -# Print color, if needed -if ($cpu_usage >= $t_crit) { - print "#ff5400\n"; - #exit 33; -} elsif ($cpu_usage >= $t_warn) { - print "#ffd400\n"; -} - -exit 0; diff --git a/.config/i3blocks/scripts/iface b/.config/i3blocks/scripts/iface deleted file mode 100755 index 09f6d13..0000000 --- a/.config/i3blocks/scripts/iface +++ /dev/null @@ -1,67 +0,0 @@ -#!/bin/bash -# Copyright (C) 2014 Julien Bonjean -# Copyright (C) 2014 Alexander Keller - -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. - -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . - -#------------------------------------------------------------------------ - -# Use the provided interface, otherwise the device used for the default route. -if [[ -n $BLOCK_INSTANCE ]]; then - IF=$BLOCK_INSTANCE -else - IF=$(ip route | awk '/^default/ { print $5 ; exit }') -fi - -#------------------------------------------------------------------------ - -# As per #36 -- It is transparent: e.g. if the machine has no battery or wireless -# connection (think desktop), the corresponding block should not be displayed. -[[ ! -d /sys/class/net/${IF} ]] && exit - -#------------------------------------------------------------------------ - -if [[ "$(cat /sys/class/net/$IF/operstate)" = 'down' ]]; then - echo down # full text - echo down # short text - echo \#ff5400 # color - exit -fi - -case $1 in - -4) - AF=inet ;; - -6) - AF=inet6 ;; - *) - AF=inet6? ;; -esac - -# if no interface is found, use the first device with a global scope -IPADDR=$(ip addr show $IF | perl -n -e "/$AF ([^\/]+).* scope global/ && print \$1 and exit") -BSSID=$(iwgetid -r $IF) -if [[ $? -eq 0 ]]; then - OUTPUT="$BSSID ($IPADDR)" -else - OUTPUT="$IPADDR" -fi - -case $BLOCK_BUTTON in - 3) echo -n "$IPADDR" | xclip -q -se c ;; -esac - -#------------------------------------------------------------------------ - -echo "$OUTPUT" # full text -echo "$OUTPUT" # short text diff --git a/.config/i3blocks/scripts/keyboard_layout b/.config/i3blocks/scripts/keyboard_layout deleted file mode 100755 index d364b93..0000000 --- a/.config/i3blocks/scripts/keyboard_layout +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/bash -# Copyright (C) 2016 Johannes Loher - -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. - -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . - -#------------------------------------------------------------------------ - -OUTPUT=`xkb-switch` - -#------------------------------------------------------------------------ - -echo "$OUTPUT" # full text -echo "$OUTPUT" # short text diff --git a/.config/i3blocks/scripts/wifi b/.config/i3blocks/scripts/wifi deleted file mode 100755 index bf36eb1..0000000 --- a/.config/i3blocks/scripts/wifi +++ /dev/null @@ -1,44 +0,0 @@ -#!/bin/bash -# Copyright (C) 2014 Alexander Keller - -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. - -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . - -#------------------------------------------------------------------------ - -INTERFACE="${BLOCK_INSTANCE:-wlan0}" - -#------------------------------------------------------------------------ - -# As per #36 -- It is transparent: e.g. if the machine has no battery or wireless -# connection (think desktop), the corresponding block should not be displayed. -[[ ! -d /sys/class/net/${INTERFACE}/wireless ]] || - [[ "$(cat /sys/class/net/$INTERFACE/operstate)" = 'down' ]] && exit - -#------------------------------------------------------------------------ - -QUALITY=$(grep $INTERFACE /proc/net/wireless | awk '{ print int($3 * 100 / 70) }') - -#------------------------------------------------------------------------ - -echo $QUALITY% # full text -echo $QUALITY% # short text - -# color -if [[ $QUALITY -ge 70 ]]; then - echo "#a8ff00" -elif [[ $QUALITY -lt 70 ]]; then - echo "#ffd400" -elif [[ $QUALITY -lt 40 ]]; then - echo "#ff5400" -fi diff --git a/.config/rofi/config b/.config/rofi/config index c8b3bf0..6e03166 100644 --- a/.config/rofi/config +++ b/.config/rofi/config @@ -11,7 +11,7 @@ rofi.color-window: #1f222d, #1f222d, #7780a1 ! ------------------------------------------------------------------------------ rofi.location: 0 rofi.lines: 7 -rofi.font: Roboto Regular 30 +rofi.font: Roboto Regular 14 rofi.bw: 0 rofi.separator-style: none rofi.width: 25 diff --git a/.config/sway/config b/.config/sway/config index e01cf55..5bc35ce 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -16,13 +16,23 @@ set $color_blue #5ac8fa set $font Roboto Regular 14 +# ------------------------------------------------------------------------------ +# Inputs +# ------------------------------------------------------------------------------ input * { - xkb_layout "de" - xkb_variant "nodeadkeys" - xkb_model "pc105" + xkb_layout "de,us" + xkb_variant "nodeadkeys," + xkb_options grp:win_space_toggle } -output "*" bg /usr/share/backgrounds/custom/mountain.jpg fill +input 9456:311:Metadot_-_Das_Keyboard_Das_Keyboard_Model_S xkb_model "pc105" + +# ------------------------------------------------------------------------------ +# Outputs +# ------------------------------------------------------------------------------ +output eDP-1 pos 0 0 res 3840x2400 scale 2 +output DP-3 pos 1920 0 res 1920x120 +output * bg /usr/share/backgrounds/custom/mountain.jpg fill # ------------------------------------------------------------------------------ # Font @@ -181,8 +191,8 @@ bindsym XF86Explorer exec --no-startup-id thunar # ------------------------------------------------------------------------------ # Audio shortcuts # ------------------------------------------------------------------------------ -set $audio_out alsa_output.pci-0000_00_1b.0.analog-stereo -set $audio_in alsa_input.pci-0000_00_1b.0.analog-stereo +set $audio_out alsa_output.pci-0000_00_1f.3.analog-stereo +set $audio_in alsa_input.pci-0000_00_1f.3.analog-stereo bindsym XF86AudioRaiseVolume exec --no-startup-id "pactl set-sink-volume $audio_out +5%; pkill -RTMIN+10 i3blocks" bindsym XF86AudioLowerVolume exec --no-startup-id "pactl set-sink-volume $audio_out -5%; pkill -RTMIN+10 i3blocks" @@ -274,15 +284,8 @@ default_border pixel 2 gaps inner 10 # gaps outer -5 -# compositor -exec --no-startup-id compton - -# backgorund -exec --no-startup-id feh --bg-fill /usr/share/backgrounds/custom/mountain.jpg - # applets -exec --no-startup-id nm-applet -exec --no-startup-id cbatticon +exec --no-startup-id nm-applet --indicator # ------------------------------------------------------------------------------ # Workspace bar diff --git a/.config/termite/config b/.config/termite/config index 9a5bea3..4339c69 100644 --- a/.config/termite/config +++ b/.config/termite/config @@ -1,5 +1,5 @@ [options] -font = Fira Code 13 +font = Fira Code 14 cursor_blink = off scrollback_lines = 4096 urgent_on_bell = true diff --git a/.i3blocks.conf b/.i3blocks.conf index 2077b3c..7e790eb 100644 --- a/.i3blocks.conf +++ b/.i3blocks.conf @@ -26,16 +26,6 @@ signal=10 [separator] full_text= -[keyboard_layout] -label= -command=~/.config/i3blocks/scripts/keyboard_layout -color=#d1d4e0 -interval=once -signal=12 - -[separator] -full_text= - [datetime] label= command=date "+%d.%m.%Y"