From 6b730ce23070c787b512561691dce1da2b904afc Mon Sep 17 00:00:00 2001 From: Felix Steghofer Date: Sun, 16 Dec 2018 13:06:16 +0100 Subject: [PATCH] random --- .config/greenclip.cfg | 7 ++-- .config/i3/config | 30 +++++++++------- .config/polybar/config | 53 ++++++++++++++++++++-------- .config/polybar/launch.sh | 13 +++++-- .config/polybar/openvpn-indicator.sh | 6 ++-- .zshrc | 16 +++++---- 6 files changed, 83 insertions(+), 42 deletions(-) diff --git a/.config/greenclip.cfg b/.config/greenclip.cfg index 995591c..130fe16 100644 --- a/.config/greenclip.cfg +++ b/.config/greenclip.cfg @@ -1,8 +1,9 @@ Config { - maxHistoryLength = 10000, + maxHistoryLength = 100000, historyPath = "~/.cache/greenclip.history", staticHistoryPath = "~/.cache/greenclip.staticHistory", imageCachePath = "/tmp/", usePrimarySelectionAsInput = False, - blacklistedApps = [] -} \ No newline at end of file + blacklistedApps = [], + trimSpaceFromSelection = True +} diff --git a/.config/i3/config b/.config/i3/config index 65c8b4d..392542f 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -29,7 +29,7 @@ client.urgent $urgent-bg-color $urgent-bg-color $text-color # is used in the bar {} block below. #font pango:monospace 8 #font pango:Liberation Sans 10 -font pango:System San Francisco Display 8 +font pango:System San Francisco Display 10 # This font is widely installed, provides lots of unicode glyphs, right-to-left # text rendering and scalability on retina/hidpi displays (thanks to pango). @@ -124,7 +124,8 @@ set $ws10 "10" # Define monitor outputs set $internal eDP1 -set $external_1 DP2-1 +set $external_1 DP2-2 +set $external_tv DP2-1 # switch to workspace bindsym $mod+1 workspace $ws1 @@ -150,12 +151,13 @@ bindsym $mod+Shift+8 move container to workspace $ws8 bindsym $mod+Shift+9 move container to workspace $ws9 bindsym $mod+Shift+0 move container to workspace $ws10 -# asssign workspace to apps -assign [class="Google-chrome-unstable"] $ws1 -assign [class="Rambox"] $ws2 - +#assign workspaces to monitors workspace $ws1 output $external_1 workspace $ws2 output $internal +workspace $ws3 output $external_tv + +# asssign workspace to apps +assign [class="google-chrome"] $ws1 # reload the configuration file bindsym $mod+Shift+c reload @@ -202,9 +204,11 @@ bindsym $mod+r mode "resize" ## Manual management of external displays # Set the shortcuts and what they do +for_window [class="Yad"] floating enable -set $mode_display ext1->int (2), External (x), Internal (i) +set $mode_display ext1->int->tv (3), ext1->int (2), External (x), Internal (i) mode "$mode_display" { + bindsym 3 exec --no-startup-id xrandr --output $internal --mode 1920x1080 --pos 1920x0 --rotate normal --output $external_tv --mode 1920x1080 --pos 3840x0 --rotate normal -- output $external_1 --primary --mode 1920x1080 --pos 0x0 --rotate normal, mode "default" bindsym 2 exec --no-startup-id xrandr --output $external_1 --primary --auto --left-of $internal, mode "default" bindsym x exec --no-startup-id xrandr --output $external_1 --primary --auto, mode "default" bindsym i exec --no-startup-id xrandr --output $internal --primary --auto, mode "default" @@ -263,13 +267,15 @@ exec i3-msg workspace $ws1 # Start default applications exec_always --no-startup-id $HOME/.config/polybar/launch.sh -exec greenclip daemon -exec blueman-applet +exec_always --no-startup-id numlockx on +exec_always --no-startup-id sudo tlp start +exec --no-startup-id greenclip daemon +exec --no-startup-id blueman-applet +exec --no-startup-id nm-applet exec libinput-gestures-setup start -exec clipit +exec --no-startup-id clipit exec insync start # auto started by browser #exec keepassxc -exec rambox -exec google-chrome-unstable +exec google-chrome-stable exec synclient TouchpadOff=1 diff --git a/.config/polybar/config b/.config/polybar/config index 3dec538..a0936d0 100644 --- a/.config/polybar/config +++ b/.config/polybar/config @@ -1,5 +1,5 @@ [bar/top] -monitor = DP2-1 +monitor = ${env:MONITOR:} width = 100% height = 27 @@ -19,11 +19,11 @@ font-2 = "Symbola:style=Regular" # todo mpd? or spotify? modules-left = powermenu player-mpris -modules-center = date -modules-right = pulseaudio backlight touchpad-indicator openvpn-indicator wireless-network wired-network battery +modules-center = popup-calendar +modules-right = pulseaudio backlight touchpad-indicator openvpn-indicator tethering wireless-network wired-network battery-combined-udev [bar/bottom] -monitor = DP2-1 +monitor = ${env:MONITOR:} bottom = true width = 100% height = 27 @@ -45,7 +45,7 @@ font-2 = "Symbola:style=Regular" modules-left = modules-center = i3 -modules-right = cpu memory +modules-right = cpu system-cpu-temppercore memory tray-position = left tray-padding = 2 @@ -53,7 +53,6 @@ tray-transparent = true tray-background = #0063ff ;tray-detached = false - [module/pulseaudio] type = internal/pulseaudio @@ -201,7 +200,7 @@ ping-interval = 10 format-connected = label-connected = 直 %essid% -label-disconnected = 睊 not connected +label-disconnected = 睊 label-disconnected-foreground = #66 format-packetloss = @@ -218,12 +217,33 @@ animation-packetloss-1 =  animation-packetloss-1-foreground = ${bar/top.foreground} animation-packetloss-framerate = 500 +[module/wired-network] +type = internal/network +interface = enp0s31f6 +interval = 3.0 +label-connected =  %local_ip% +label-disconnected =  +label-disconnected-foreground = #66 +format-packetloss = +animation-packetloss-0 =  +animation-packetloss-0-foreground = #ffa64c +animation-packetloss-1 =  +animation-packetloss-1-foreground = ${bar/top.foreground} +animation-packetloss-framerate = 500 + + +[module/tethering] +type = internal/network +interface = enp0s20f0u4 +interval = 3.0 +label-connected =  %local_ip% +label-disconnected-foreground = #66 + [module/cpu] type = internal/cpu interval = 0.5 format =