mirror of
https://github.com/dnlbauer/dotfiles.git
synced 2026-09-10 21:45:30 +00:00
update from laptop
This commit is contained in:
40
.zshrc
40
.zshrc
@@ -1,40 +0,0 @@
|
||||
# Source zim
|
||||
if [[ -s ${ZDOTDIR:-${HOME}}/.zim/init.zsh ]]; then
|
||||
source ${ZDOTDIR:-${HOME}}/.zim/init.zsh
|
||||
fi
|
||||
export PATH=$PATH:/
|
||||
|
||||
# source my utility functions
|
||||
source .zshrc_functions
|
||||
|
||||
|
||||
# alter path
|
||||
export PATH="$HOME/bin:${PATH}" # binaries
|
||||
export PATH="$HOME/scripts:${PATH}" # scripts
|
||||
export PATH="$HOME/.local/bin:${PATH}" # python executeables
|
||||
|
||||
# fasd autocompletion
|
||||
eval "$(fasd --init auto)"
|
||||
|
||||
# marker
|
||||
[[ -s "$HOME/.local/share/marker/marker.sh" ]] && source "$HOME/.local/share/marker/marker.sh"
|
||||
|
||||
# the fuck?
|
||||
eval $(thefuck --alias)
|
||||
|
||||
# gromacs
|
||||
if [ -z "$GMXRC" ]; then
|
||||
GMXRC="/opt/gromacs-cuda/bin/GMXRC"
|
||||
fi
|
||||
source $GMXRC
|
||||
|
||||
|
||||
# python
|
||||
PYTHONPATH="$PYTHONPATH:/opt/modeller/modlib:/opt/modeller/lib/x86_64-intel8/python3.3"
|
||||
export PYTHONPATH
|
||||
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/opt/modeller/lib/x86_64-intel8"
|
||||
|
||||
export CUDA_HOME=/opt/cuda;
|
||||
export TERMINAL="terminator"
|
||||
export BROWSER="firefox"
|
||||
export EDITOR="vim"
|
||||
BIN
i3/.config.swp
Normal file
BIN
i3/.config.swp
Normal file
Binary file not shown.
@@ -174,6 +174,10 @@ bindsym $mod+r mode "resize"
|
||||
# status_command i3blocks -c ~/.i3/i3blocks.conf
|
||||
#}
|
||||
|
||||
|
||||
# hide window border
|
||||
new_window 1pixel
|
||||
|
||||
exec_always --no-startup-id ~/.config/polybar/polybar.sh
|
||||
|
||||
workspace $workspace1 output DVI-D-0
|
||||
@@ -197,9 +201,9 @@ assign [class="Mendeley"] → $workspace7
|
||||
#assign [class="Spotify"] → $workspace8
|
||||
assign [title="Buddy List"] → $workspace9
|
||||
exec --no-startup-id thunderbird
|
||||
exec --no-startup-id mendeleydesktop
|
||||
exec --no-startup-id spotify
|
||||
exec --no-startup-id pidgin
|
||||
#exec --no-startup-id mendeleydesktop
|
||||
#exec --no-startup-id spotify
|
||||
#exec --no-startup-id pidgin
|
||||
|
||||
|
||||
|
||||
@@ -209,9 +213,9 @@ exec thunar --daemon
|
||||
exec --no-startup-id xautolock -time 5 -locker 'i3lock -i ~/.lockscreen/`ls /home/bauer/lockscreens | shuf -n 1` -t -f'
|
||||
|
||||
# Pulse Audio controls
|
||||
bindsym XF86AudioLowerVolume exec --no-startup-id amixer -D pulse sset Master 5%- #decrease sound volume
|
||||
bindsym XF86AudioRaiseVolume exec --no-startup-id amixer -D pulse sset Master 5%+ #increase sound volume
|
||||
bindsym XF86AudioMute exec --no-startup-id amixer -D pulse sset Master toggle # mute sound
|
||||
bindsym --release XF86AudioLowerVolume exec --no-startup-id amixer -D pulse sset Master 5%- #decrease sound volume
|
||||
bindsym --release XF86AudioRaiseVolume exec --no-startup-id amixer -D pulse sset Master 5%+ #increase sound volume
|
||||
bindsym --release XF86AudioMute exec --no-startup-id amixer -D pulse sset Master toggle # mute sound
|
||||
|
||||
# Sreen brightness controls
|
||||
bindsym XF86MonBrightnessUp exec xbacklight -inc 20 # increase screen brightness
|
||||
@@ -226,5 +230,10 @@ bindsym XF86AudioNext exec playerctl next
|
||||
bindsym XF86AudioPrev exec playerctl previous
|
||||
bindsym XF86HomePage exec "i3lock -i ~/lockscreens/`ls ~/lockscreens | shuf -n 1` -t -f"
|
||||
|
||||
# change ouput
|
||||
bindsym $mod+Shift+s exec --no-startup-id ~/.config/i3/scripts/change_monitor.sh
|
||||
|
||||
# reload workspace layouts
|
||||
exec --no-startup-id "i3-msg 'workspace 9; append_layout /home/bauer/.i3/workspace-9.json'"
|
||||
|
||||
exec --no-startup-id nm-applet
|
||||
239
i3/config_laptop
Normal file
239
i3/config_laptop
Normal file
@@ -0,0 +1,239 @@
|
||||
# This file has been auto-generated by i3-config-wizard(1).
|
||||
# It will not be overwritten, so edit it as you like.
|
||||
#
|
||||
# Should you change your keyboard layout somewhen, delete
|
||||
# this file and re-run i3-config-wizard(1).
|
||||
#
|
||||
|
||||
# i3 config file (v4)
|
||||
#
|
||||
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
|
||||
exec xrandr --auto --output DVI-D-0 --left-of HDMI-0 --primary
|
||||
|
||||
set $mod Mod4
|
||||
|
||||
# Font for window titles. Will also be used by the bar unless a different font
|
||||
# is used in the bar {} block below. ISO 10646 = Unicode
|
||||
font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
|
||||
# The font above is very space-efficient, that is, it looks good, sharp and
|
||||
# clear in small sizes. However, if you need a lot of unicode glyphs or
|
||||
# right-to-left text rendering, you should instead use pango for rendering and
|
||||
# chose a FreeType font, such as:
|
||||
font pango:Source Code Pro for Powerline, FontAwesome Regular, Icons 12.5
|
||||
|
||||
new_window 1pixel
|
||||
|
||||
# Use Mouse+$mod to drag floating windows to their wanted position
|
||||
floating_modifier $mod
|
||||
|
||||
# start a terminal
|
||||
bindsym $mod+Return exec i3-sensible-terminal
|
||||
|
||||
# kill focused window
|
||||
bindsym $mod+Shift+q kill
|
||||
|
||||
# start dmenu (a program launcher)
|
||||
#bindsym $mod+d exec dmenu_run
|
||||
|
||||
# rofi
|
||||
bindsym $mod+Tab exec rofi -show window
|
||||
bindsym $mod+d exec "rofi -show combi -combi-modi window,drun"
|
||||
|
||||
|
||||
# There also is the (new) i3-dmenu-desktop which only displays applications
|
||||
# shipping a .desktop file. It is a wrapper around dmenu, so you need that
|
||||
# installed.
|
||||
# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
|
||||
|
||||
# change focus
|
||||
bindsym $mod+j focus left
|
||||
bindsym $mod+k focus down
|
||||
bindsym $mod+l focus up
|
||||
bindsym $mod+semicolon focus right
|
||||
|
||||
# alternatively, you can use the cursor keys:
|
||||
bindsym $mod+Left focus left
|
||||
bindsym $mod+Down focus down
|
||||
bindsym $mod+Up focus up
|
||||
bindsym $mod+Right focus right
|
||||
|
||||
# move focused window
|
||||
bindsym $mod+Shift+j move left
|
||||
bindsym $mod+Shift+k move down
|
||||
bindsym $mod+Shift+l move up
|
||||
bindsym $mod+Shift+colon move right
|
||||
|
||||
# alternatively, you can use the cursor keys:
|
||||
bindsym $mod+Shift+Left move left
|
||||
bindsym $mod+Shift+Down move down
|
||||
bindsym $mod+Shift+Up move up
|
||||
bindsym $mod+Shift+Right move right
|
||||
|
||||
# move workspace left/right
|
||||
bindsym $mod+Shift+greater move workspace to output left
|
||||
bindsym $mod+Shift+less move workspace to output right
|
||||
|
||||
# split in horizontal orientation
|
||||
bindsym $mod+h split h
|
||||
|
||||
# split in vertical orientation
|
||||
bindsym $mod+v split v
|
||||
|
||||
# enter fullscreen mode for the focused container
|
||||
bindsym $mod+f fullscreen
|
||||
|
||||
# change container layout (stacked, tabbed, toggle split)
|
||||
bindsym $mod+s layout stacking
|
||||
bindsym $mod+w layout tabbed
|
||||
bindsym $mod+e layout toggle split
|
||||
|
||||
# toggle tiling / floating
|
||||
bindsym $mod+Shift+space floating toggle
|
||||
|
||||
# change focus between tiling / floating windows
|
||||
bindsym $mod+space focus mode_toggle
|
||||
|
||||
# focus the parent container
|
||||
bindsym $mod+a focus parent
|
||||
|
||||
# focus the child container
|
||||
#bindsym $mod+d focus child
|
||||
|
||||
set $workspace1 1
|
||||
set $workspace2 2
|
||||
set $workspace3 3
|
||||
set $workspace4 4
|
||||
set $workspace5 5
|
||||
set $workspace6 6
|
||||
set $workspace7 7
|
||||
#
|
||||
set $workspace8 8
|
||||
#
|
||||
set $workspace9 9
|
||||
#
|
||||
|
||||
# switch to workspace
|
||||
bindsym $mod+1 workspace $workspace1
|
||||
bindsym $mod+2 workspace $workspace2
|
||||
bindsym $mod+3 workspace $workspace3
|
||||
bindsym $mod+4 workspace $workspace4
|
||||
bindsym $mod+5 workspace $workspace5
|
||||
bindsym $mod+6 workspace $workspace6
|
||||
bindsym $mod+7 workspace $workspace7
|
||||
bindsym $mod+8 workspace $workspace8
|
||||
bindsym $mod+9 workspace $workspace9
|
||||
|
||||
# move focused container to workspace
|
||||
bindsym $mod+Shift+1 move container to workspace $workspace1
|
||||
bindsym $mod+Shift+2 move container to workspace $workspace2
|
||||
bindsym $mod+Shift+3 move container to workspace $workspace3
|
||||
bindsym $mod+Shift+4 move container to workspace $workspace4
|
||||
bindsym $mod+Shift+5 move container to workspace $workspace5
|
||||
bindsym $mod+Shift+6 move container to workspace $workspace6
|
||||
bindsym $mod+Shift+7 move container to workspace $workspace7
|
||||
bindsym $mod+Shift+8 move container to workspace $workspace8
|
||||
bindsym $mod+Shift+9 move container to workspace $workspace9
|
||||
|
||||
# reload the configuration file
|
||||
bindsym $mod+Shift+c reload
|
||||
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
|
||||
bindsym $mod+Shift+r restart
|
||||
# exit i3 (logs you out of your X session)
|
||||
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'"
|
||||
|
||||
# resize window (you can also use the mouse for that)
|
||||
mode "resize" {
|
||||
# These bindings trigger as soon as you enter the resize mode
|
||||
|
||||
# Pressing left will shrink the window’s width.
|
||||
# Pressing right will grow the window’s width.
|
||||
# Pressing up will shrink the window’s height.
|
||||
# Pressing down will grow the window’s height.
|
||||
bindsym j resize shrink width 10 px or 10 ppt
|
||||
bindsym k resize grow height 10 px or 10 ppt
|
||||
bindsym l resize shrink height 10 px or 10 ppt
|
||||
bindsym semicolon resize grow width 10 px or 10 ppt
|
||||
|
||||
# same bindings, but for the 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
|
||||
|
||||
# back to normal: Enter or Escape
|
||||
bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
}
|
||||
|
||||
bindsym $mod+r mode "resize"
|
||||
|
||||
# Start i3bar to display a workspace bar (plus the system information i3status
|
||||
# finds out, if available)
|
||||
#bar {
|
||||
# position top
|
||||
# status_command i3blocks -c ~/.i3/i3blocks.conf
|
||||
#}
|
||||
|
||||
|
||||
# hide window border
|
||||
new_window 1pixel
|
||||
|
||||
exec_always --no-startup-id ~/.config/polybar/polybar.sh
|
||||
|
||||
workspace $workspace1 output DVI-D-0
|
||||
workspace $workspace7 output HDMI-0
|
||||
workspace $workspace8 output HDMI-0
|
||||
workspace $workspace9 output HDMI-0
|
||||
|
||||
|
||||
for_window [window_role="pop-up"] floating enable
|
||||
for_window [class="Tk"] floating enable
|
||||
for_window [title="PyMOL Viewer"] floating enable
|
||||
for_window [class="Toplevel"] floating enable
|
||||
for_window [title="VMD*"] floating enable
|
||||
for_window [title="Area per Lipid*"] floating enable
|
||||
for_window [title="MEMBPLUGIN"] floating enable
|
||||
for_window [title="Figure*"] floating enable
|
||||
for_window [window_role="conversation" class="Pidgin"] floating enable
|
||||
for_window [class="Spotify"] move to workspace $workspace8
|
||||
assign [class="Thunderbird"] → $workspace9
|
||||
assign [class="Mendeley"] → $workspace7
|
||||
#assign [class="Spotify"] → $workspace8
|
||||
assign [title="Buddy List"] → $workspace9
|
||||
exec --no-startup-id thunderbird
|
||||
#exec --no-startup-id mendeleydesktop
|
||||
#exec --no-startup-id spotify
|
||||
#exec --no-startup-id pidgin
|
||||
|
||||
|
||||
|
||||
exec feh --bg-scale ~/wallpaper.jpg
|
||||
#exec volumeicon
|
||||
exec thunar --daemon
|
||||
exec --no-startup-id xautolock -time 5 -locker 'i3lock -i ~/.lockscreen/`ls /home/bauer/lockscreens | shuf -n 1` -t -f'
|
||||
|
||||
# Pulse Audio controls
|
||||
bindsym --release XF86AudioLowerVolume exec --no-startup-id amixer sset Master 5%- #decrease sound volume
|
||||
bindsym --release XF86AudioRaiseVolume exec --no-startup-id amixer sset Master 5%+ #increase sound volume
|
||||
bindsym --release XF86AudioMute exec --no-startup-id amixer sset Master toggle # mute sound
|
||||
|
||||
# Sreen brightness controls
|
||||
bindsym XF86MonBrightnessUp exec xbacklight -inc 20 # increase screen brightness
|
||||
bindsym XF86MonBrightnessDown exec xbacklight -dec 20 # decrease screen brightness
|
||||
|
||||
# Touchpad controls
|
||||
bindsym XF86TouchpadToggle exec /some/path/toggletouchpad.sh # toggle touchpad
|
||||
|
||||
# Media player controls
|
||||
bindsym XF86AudioPlay exec playerctl play-pause
|
||||
bindsym XF86AudioNext exec playerctl next
|
||||
bindsym XF86AudioPrev exec playerctl previous
|
||||
bindsym XF86HomePage exec "i3lock -i ~/lockscreens/`ls ~/lockscreens | shuf -n 1` -t -f"
|
||||
|
||||
# change ouput
|
||||
bindsym $mod+Shift+s exec --no-startup-id ~/.config/i3/scripts/change_monitor.sh
|
||||
|
||||
# reload workspace layouts
|
||||
exec --no-startup-id "i3-msg 'workspace 9; append_layout /home/bauer/.i3/workspace-9.json'"
|
||||
|
||||
exec --no-startup-id nm-applet
|
||||
27
i3/scripts/change_monitor.sh
Executable file
27
i3/scripts/change_monitor.sh
Executable file
@@ -0,0 +1,27 @@
|
||||
#!/bin/bash
|
||||
EXTERNAL_OUTPUT="HDMI2"
|
||||
INTERNAL_OUTPUT="eDP1"
|
||||
|
||||
# if we don't have a file, start at zero
|
||||
if [ ! -f "/tmp/monitor_mode.dat" ] ; then
|
||||
monitor_mode="all"
|
||||
|
||||
# otherwise read the value from the file
|
||||
else
|
||||
monitor_mode=`cat /tmp/monitor_mode.dat`
|
||||
fi
|
||||
|
||||
if [ $monitor_mode = "all" ]; then
|
||||
monitor_mode="EXTERNAL"
|
||||
xrandr --output $INTERNAL_OUTPUT --off --output $EXTERNAL_OUTPUT --auto
|
||||
elif [ $monitor_mode = "EXTERNAL" ]; then
|
||||
monitor_mode="INTERNAL"
|
||||
xrandr --output $INTERNAL_OUTPUT --auto --output $EXTERNAL_OUTPUT --off
|
||||
elif [ $monitor_mode = "INTERNAL" ]; then
|
||||
monitor_mode="CLONES"
|
||||
xrandr --output $INTERNAL_OUTPUT --auto --output $EXTERNAL_OUTPUT --auto --same-as $INTERNAL_OUTPUT
|
||||
else
|
||||
monitor_mode="all"
|
||||
xrandr --output $INTERNAL_OUTPUT --auto --output $EXTERNAL_OUTPUT --auto --right-of $INTERNAL_OUTPUT
|
||||
fi
|
||||
echo "${monitor_mode}" > /tmp/monitor_mode.dat
|
||||
@@ -67,9 +67,17 @@ monitor = ${env:MONITOR:HDMI-0}
|
||||
modules-left = i3
|
||||
modules-right = date
|
||||
|
||||
[bar/example_laptop]
|
||||
inherit = bar/example
|
||||
modules-left = i3
|
||||
tray-position = right
|
||||
tray-padding = 2
|
||||
modules-right = spotify volume filesystemroot memory cpu battery battery2 date
|
||||
modules-center = xwindow
|
||||
|
||||
[module/xwindow]
|
||||
type = internal/xwindow
|
||||
label = %title:0:30:...%
|
||||
label = %title:0::...%
|
||||
|
||||
|
||||
[module/xkeyboard]
|
||||
@@ -88,7 +96,15 @@ label-indicator-margin = 1
|
||||
label-indicator-background = ${colors.secondary}
|
||||
label-indicator-underline = ${colors.secondary}
|
||||
|
||||
[module/filesystem]
|
||||
[module/filesystemroot]
|
||||
type=internal/fs
|
||||
interval = 25
|
||||
mount-0 = /
|
||||
label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%%
|
||||
label-unmounted = %mountpoint% not mounted
|
||||
label-unmounted-foreground = ${colors.foreground-alt}
|
||||
|
||||
[module/filesystemrootscratch]
|
||||
type = internal/fs
|
||||
interval = 25
|
||||
|
||||
@@ -219,7 +235,7 @@ label = %percentage_used%%
|
||||
|
||||
[module/wlan]
|
||||
type = internal/network
|
||||
interface =
|
||||
interface = wlp4s0
|
||||
interval = 3.0
|
||||
|
||||
format-connected = <ramp-signal> <label-connected>
|
||||
@@ -232,11 +248,11 @@ format-disconnected =
|
||||
;label-disconnected = %ifname% disconnected
|
||||
;label-disconnected-foreground = ${colors.foreground-alt}
|
||||
|
||||
ramp-signal-0 =
|
||||
ramp-signal-1 =
|
||||
ramp-signal-2 =
|
||||
ramp-signal-3 =
|
||||
ramp-signal-4 =
|
||||
ramp-signal-0 = :
|
||||
ramp-signal-1 = ::
|
||||
ramp-signal-2 = :::
|
||||
ramp-signal-3 = ::::
|
||||
ramp-signal-4 = :::::
|
||||
ramp-signal-foreground = ${colors.foreground-alt}
|
||||
|
||||
[module/eth]
|
||||
@@ -299,7 +315,7 @@ bar-volume-empty-foreground = ${colors.foreground-alt}
|
||||
|
||||
[module/battery]
|
||||
type = internal/battery
|
||||
battery = BAT0
|
||||
battery0 = BAT0
|
||||
adapter = ADP1
|
||||
full-at = 98
|
||||
|
||||
@@ -313,17 +329,23 @@ format-full-prefix = " "
|
||||
format-full-prefix-foreground = ${colors.foreground-alt}
|
||||
format-full-underline = ${self.format-charging-underline}
|
||||
|
||||
ramp-capacity-0 =
|
||||
ramp-capacity-1 =
|
||||
ramp-capacity-2 =
|
||||
ramp-capacity-foreground = ${colors.foreground-alt}
|
||||
ramp-capacity-0 =
|
||||
ramp-capacity-1 =
|
||||
ramp-capacity-2 =
|
||||
ramp-capacity-3 =
|
||||
ramp-capacity-4 =
|
||||
ramp-capacity-foreground = ${colors.foreground}
|
||||
|
||||
animation-charging-0 =
|
||||
animation-charging-1 =
|
||||
animation-charging-2 =
|
||||
animation-charging-foreground = ${colors.foreground-alt}
|
||||
animation-charging-0 =
|
||||
animation-charging-1 =
|
||||
animation-charging-2 =
|
||||
animation-charging-foreground = ${colors.foreground}
|
||||
animation-charging-framerate = 750
|
||||
|
||||
[module/battery2]
|
||||
inherit = module/battery
|
||||
battery = BAT1
|
||||
|
||||
[module/temperature]
|
||||
type = internal/temperature
|
||||
thermal-zone = 0
|
||||
|
||||
402
polybar/config_laptop
Normal file
402
polybar/config_laptop
Normal file
@@ -0,0 +1,402 @@
|
||||
;=====================================================
|
||||
;
|
||||
; To learn more about how to configure Polybar
|
||||
; go to https://github.com/jaagr/polybar
|
||||
;
|
||||
; The README contains alot of information
|
||||
;
|
||||
;=====================================================
|
||||
|
||||
[colors]
|
||||
;background = ${xrdb:color0:#222}
|
||||
background = #222
|
||||
background-alt = #444
|
||||
;foreground = ${xrdb:color7:#222}
|
||||
foreground = #dfdfdf
|
||||
foreground-alt = #555
|
||||
primary = #ffb52a
|
||||
secondary = #e60053
|
||||
alert = #bd2c40
|
||||
|
||||
[bar/example]
|
||||
width = 900 ;100%
|
||||
height = 27
|
||||
;offset-x = 1%
|
||||
;offset-y = 1%
|
||||
radius = 6.0
|
||||
fixed-center = false
|
||||
background = ${colors.background}
|
||||
foreground = ${colors.foreground}
|
||||
|
||||
line-size = 3
|
||||
line-color = #f00
|
||||
|
||||
border-size = 0
|
||||
border-color = #00000000
|
||||
|
||||
padding-left = 0
|
||||
padding-right = 2
|
||||
|
||||
module-margin-left = 1
|
||||
module-margin-right = 2
|
||||
|
||||
font-0 = FontAwesome:size=11;1
|
||||
font-1 = Noto Mono:fontformat=truetype:size=11:antialias=true;1
|
||||
font-2 = unifont:size=11;0
|
||||
|
||||
wm-restack = i3
|
||||
;override-redirect = true
|
||||
scroll-up = i3wm-wsnext
|
||||
scroll-down = i3wm-wsprev
|
||||
|
||||
[bar/example_laptop]
|
||||
inherit = bar/example
|
||||
modules-left = i3
|
||||
tray-position = right
|
||||
tray-padding = 2
|
||||
modules-right = spotify volume filesystemroot memory cpu battery battery2 date
|
||||
modules-center = xwindow
|
||||
|
||||
[module/xwindow]
|
||||
type = internal/xwindow
|
||||
label = %title:0::...%
|
||||
|
||||
|
||||
[module/xkeyboard]
|
||||
type = internal/xkeyboard
|
||||
blacklist-0 = num lock
|
||||
|
||||
format-prefix = " "
|
||||
format-prefix-foreground = ${colors.foreground-alt}
|
||||
format-prefix-underline = ${colors.secondary}
|
||||
|
||||
label-layout = %layout%
|
||||
label-layout-underline = ${colors.secondary}
|
||||
|
||||
label-indicator-padding = 2
|
||||
label-indicator-margin = 1
|
||||
label-indicator-background = ${colors.secondary}
|
||||
label-indicator-underline = ${colors.secondary}
|
||||
|
||||
[module/filesystemroot]
|
||||
type=internal/fs
|
||||
interval = 25
|
||||
mount-0 = /
|
||||
label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%%
|
||||
label-unmounted = %mountpoint% not mounted
|
||||
label-unmounted-foreground = ${colors.foreground-alt}
|
||||
|
||||
[module/filesystemrootscratch]
|
||||
type = internal/fs
|
||||
interval = 25
|
||||
|
||||
mount-0 = /
|
||||
mount-1 = /scratch
|
||||
|
||||
label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%%
|
||||
label-unmounted = %mountpoint% not mounted
|
||||
label-unmounted-foreground = ${colors.foreground-alt}
|
||||
|
||||
[module/bspwm]
|
||||
type = internal/bspwm
|
||||
|
||||
label-focused = %index%
|
||||
label-focused-background = ${colors.background-alt}
|
||||
label-focused-underline= ${colors.primary}
|
||||
label-focused-padding = 2
|
||||
|
||||
label-occupied = %index%
|
||||
label-occupied-padding = 2
|
||||
|
||||
label-urgent = %index%!
|
||||
label-urgent-background = ${colors.alert}
|
||||
label-urgent-padding = 2
|
||||
|
||||
label-empty = %index%
|
||||
label-empty-foreground = ${colors.foreground-alt}
|
||||
label-empty-padding = 2
|
||||
|
||||
[module/i3]
|
||||
type = internal/i3
|
||||
format = <label-state> <label-mode>
|
||||
index-sort = true
|
||||
wrapping-scroll = false
|
||||
strip-wsnumbers = true
|
||||
pin-workspaces = true
|
||||
|
||||
label-mode-padding = 2
|
||||
label-mode-foreground = #000
|
||||
label-mode-background = ${colors.primary}
|
||||
|
||||
label-focused = %icon%
|
||||
label-focused-background = ${module/bspwm.label-focused-background}
|
||||
label-focused-underline = ${module/bspwm.label-focused-underline}
|
||||
label-focused-padding = ${module/bspwm.label-focused-padding}
|
||||
|
||||
label-unfocused = %icon%
|
||||
label-unfocused-padding = ${module/bspwm.label-occupied-padding}
|
||||
|
||||
label-urgent = %icon%
|
||||
label-urgent-background = ${module/bspwm.label-urgent-background}
|
||||
label-urgent-padding = ${module/bspwm.label-urgent-padding}
|
||||
|
||||
label-visible = %icon%
|
||||
label-visible-background = ${self.label-focused-background}
|
||||
label-visible-underline = ${self.label-focused-underline}
|
||||
label-visible-padding = ${self.label-focused-padding}
|
||||
ws-icon-0 = 1;1
|
||||
ws-icon-1 = 2;2
|
||||
ws-icon-2 = 3;3
|
||||
ws-icon-3 = 4;4
|
||||
ws-icon-4 = 5;5
|
||||
ws-icon-5 = 6;6
|
||||
ws-icon-6 = 7;
|
||||
ws-icon-7 = 8;
|
||||
ws-icon-8 = 9;
|
||||
ws-icon-9 = 10;9
|
||||
|
||||
[module/mpd]
|
||||
type = internal/mpd
|
||||
format-online = <label-song> <icon-prev> <icon-stop> <toggle> <icon-next>
|
||||
|
||||
icon-prev =
|
||||
icon-stop =
|
||||
icon-play =
|
||||
icon-pause =
|
||||
icon-next =
|
||||
|
||||
label-song-maxlen = 25
|
||||
label-song-ellipsis = true
|
||||
|
||||
[module/xbacklight]
|
||||
type = internal/xbacklight
|
||||
|
||||
format = <label> <bar>
|
||||
label = BL
|
||||
|
||||
bar-width = 10
|
||||
bar-indicator = |
|
||||
bar-indicator-foreground = #ff
|
||||
bar-indicator-font = 2
|
||||
bar-fill = ─
|
||||
bar-fill-font = 2
|
||||
bar-fill-foreground = #9f78e1
|
||||
bar-empty = ─
|
||||
bar-empty-font = 2
|
||||
bar-empty-foreground = ${colors.foreground-alt}
|
||||
|
||||
[module/backlight-acpi]
|
||||
inherit = module/xbacklight
|
||||
type = internal/backlight
|
||||
card = intel_backlight
|
||||
|
||||
[module/cpu]
|
||||
type = internal/cpu
|
||||
interval = 2
|
||||
format-prefix-foreground = ${colors.foreground-alt}
|
||||
format-underline = #f90000
|
||||
label = %percentage%%
|
||||
format = <label> <ramp-coreload>
|
||||
|
||||
ramp-coreload-0 = ▁
|
||||
ramp-coreload-1 = ▂
|
||||
ramp-coreload-2 = ▃
|
||||
ramp-coreload-3 = ▄
|
||||
ramp-coreload-4 = ▅
|
||||
ramp-coreload-5 = ▆
|
||||
ramp-coreload-6 = ▇
|
||||
ramp-coreload-7 = █
|
||||
|
||||
[module/memory]
|
||||
type = internal/memory
|
||||
interval = 2
|
||||
format-prefix-foreground = ${colors.foreground-alt}
|
||||
format-underline = #4bffdc
|
||||
label = %percentage_used%%
|
||||
|
||||
|
||||
[module/wlan]
|
||||
type = internal/network
|
||||
interface = wlp4s0
|
||||
interval = 3.0
|
||||
|
||||
format-connected = <ramp-signal> <label-connected>
|
||||
format-connected-underline = #9f78e1
|
||||
label-connected = %essid%
|
||||
|
||||
format-disconnected =
|
||||
;format-disconnected = <label-disconnected>
|
||||
;format-disconnected-underline = ${self.format-connected-underline}
|
||||
;label-disconnected = %ifname% disconnected
|
||||
;label-disconnected-foreground = ${colors.foreground-alt}
|
||||
|
||||
ramp-signal-0 = :
|
||||
ramp-signal-1 = ::
|
||||
ramp-signal-2 = :::
|
||||
ramp-signal-3 = ::::
|
||||
ramp-signal-4 = :::::
|
||||
ramp-signal-foreground = ${colors.foreground-alt}
|
||||
|
||||
[module/eth]
|
||||
type = internal/network
|
||||
interface =
|
||||
interval = 3.0
|
||||
|
||||
format-connected-underline = #55aa55
|
||||
format-connected-prefix = " "
|
||||
format-connected-prefix-foreground = ${colors.foreground-alt}
|
||||
label-connected = %local_ip%
|
||||
|
||||
format-disconnected =
|
||||
;format-disconnected = <label-disconnected>
|
||||
;format-disconnected-underline = ${self.format-connected-underline}
|
||||
;label-disconnected = %ifname% disconnected
|
||||
;label-disconnected-foreground = ${colors.foreground-alt}
|
||||
|
||||
[module/date]
|
||||
type = internal/date
|
||||
interval = 1
|
||||
|
||||
date = " %d/%m/%y"
|
||||
date-alt = " %d/%m/%Y"
|
||||
|
||||
time = %H:%M
|
||||
time-alt = %H:%M:%S
|
||||
|
||||
format-prefix-foreground = ${colors.foreground-alt}
|
||||
format-underline = #0a6cf5
|
||||
|
||||
label = %time% %date%
|
||||
format = <label>
|
||||
|
||||
[module/volume]
|
||||
type = internal/alsa
|
||||
format-volume = <label-volume> <bar-volume>
|
||||
label-volume =
|
||||
label-volume-foreground = ${root.foreground}
|
||||
interval=5
|
||||
|
||||
format-muted-foreground = ${colors.foreground-alt}
|
||||
label-muted = sound muted
|
||||
|
||||
bar-volume-width = 20
|
||||
bar-volume-foreground-0 = #55aa55
|
||||
bar-volume-foreground-1 = #55aa55
|
||||
bar-volume-foreground-2 = #55aa55
|
||||
bar-volume-foreground-3 = #55aa55
|
||||
bar-volume-foreground-4 = #55aa55
|
||||
bar-volume-foreground-5 = #f5a70a
|
||||
bar-volume-foreground-6 = #ff5555
|
||||
bar-volume-gradient = false
|
||||
bar-volume-indicator = X
|
||||
bar-volume-indicator-font = 2
|
||||
bar-volume-fill = -
|
||||
bar-volume-fill-font = 2
|
||||
bar-volume-empty = -
|
||||
bar-volume-empty-font = 2
|
||||
|
||||
[module/battery]
|
||||
type = internal/battery
|
||||
battery0 = BAT0
|
||||
adapter = ADP1
|
||||
full-at = 98
|
||||
|
||||
format-charging = <animation-charging> <label-charging>
|
||||
format-charging-underline = #ffb52a
|
||||
|
||||
format-discharging = <ramp-capacity> <label-discharging>
|
||||
format-discharging-underline = ${self.format-charging-underline}
|
||||
|
||||
format-full-prefix = " "
|
||||
format-full-prefix-foreground = ${colors.foreground-alt}
|
||||
format-full-underline = ${self.format-charging-underline}
|
||||
|
||||
ramp-capacity-0 =
|
||||
ramp-capacity-1 =
|
||||
ramp-capacity-2 =
|
||||
ramp-capacity-3 =
|
||||
ramp-capacity-4 =
|
||||
ramp-capacity-foreground = ${colors.foreground}
|
||||
|
||||
animation-charging-0 =
|
||||
animation-charging-1 =
|
||||
animation-charging-2 =
|
||||
animation-charging-foreground = ${colors.foreground}
|
||||
animation-charging-framerate = 750
|
||||
|
||||
[module/battery2]
|
||||
inherit = module/battery
|
||||
battery = BAT1
|
||||
|
||||
[module/temperature]
|
||||
type = internal/temperature
|
||||
thermal-zone = 0
|
||||
warn-temperature = 60
|
||||
|
||||
format = <ramp> <label>
|
||||
format-underline = #f50a4d
|
||||
format-warn = <ramp> <label-warn>
|
||||
format-warn-underline = ${self.format-underline}
|
||||
|
||||
label = %temperature%
|
||||
label-warn = %temperature%
|
||||
label-warn-foreground = ${colors.secondary}
|
||||
|
||||
ramp-0 =
|
||||
ramp-1 =
|
||||
ramp-2 =
|
||||
ramp-foreground = ${colors.foreground-alt}
|
||||
|
||||
[module/powermenu]
|
||||
type = custom/menu
|
||||
|
||||
format-spacing = 1
|
||||
|
||||
label-open =
|
||||
label-open-foreground = ${colors.secondary}
|
||||
label-close = cancel
|
||||
label-close-foreground = ${colors.secondary}
|
||||
label-separator = |
|
||||
label-separator-foreground = ${colors.foreground-alt}
|
||||
|
||||
menu-0-0 = reboot
|
||||
menu-0-0-exec = menu-open-1
|
||||
menu-0-1 = power off
|
||||
menu-0-1-exec = menu-open-2
|
||||
|
||||
menu-1-0 = cancel
|
||||
menu-1-0-exec = menu-open-0
|
||||
menu-1-1 = reboot
|
||||
menu-1-1-exec = sudo reboot
|
||||
|
||||
menu-2-0 = power off
|
||||
menu-2-0-exec = sudo poweroff
|
||||
menu-2-1 = cancel
|
||||
menu-2-1-exec = menu-open-0
|
||||
|
||||
[settings]
|
||||
screenchange-reload = true
|
||||
;compositing-background = xor
|
||||
;compositing-background = screen
|
||||
;compositing-foreground = source
|
||||
;compositing-border = over
|
||||
|
||||
[global/wm]
|
||||
margin-top = 5
|
||||
margin-bottom = 5
|
||||
|
||||
[module/gpu]
|
||||
type=custom/script
|
||||
exec = /bin/bash ~/.config/polybar/gpu.sh
|
||||
interval = 1
|
||||
tail = false
|
||||
format = <label>
|
||||
format-underline = #268bd2
|
||||
|
||||
[module/spotify]
|
||||
type=custom/script
|
||||
exec = python ~/.config/polybar/spotify.py
|
||||
interval = 1
|
||||
tail = false
|
||||
format = <label>
|
||||
; vim:ft=dosini
|
||||
@@ -8,5 +8,6 @@ while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
|
||||
# Launch bar1 and bar2
|
||||
polybar -c ~/.config/polybar/config example_left &
|
||||
polybar -c ~/.config/polybar/config example_right &
|
||||
polybar -c ~/.config/polybar/config example_laptop &
|
||||
|
||||
echo "Bars launched..."
|
||||
|
||||
11
polybar/polybar_laptop.sh
Executable file
11
polybar/polybar_laptop.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
killall -q polybar
|
||||
|
||||
# Wait until the processes have been shut down
|
||||
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
|
||||
|
||||
# Launch bar1 and bar2
|
||||
polybar -c ~/.config/polybar/config example_laptop &
|
||||
|
||||
echo "Bars launched..."
|
||||
@@ -11,7 +11,7 @@
|
||||
# Select what modules you would like enabled.
|
||||
# The second line of modules may depend on options set by modules in the first
|
||||
# line. These dependencies are noted on the respective module's README.md.
|
||||
zmodules=(directory environment git git-info history input utility meta custom \
|
||||
zmodules=(directory environment git history input utility custom \
|
||||
syntax-highlighting history-substring-search prompt completion)
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ zmodules=(directory environment git git-info history input utility meta custom \
|
||||
#
|
||||
|
||||
# Set your desired prompt here
|
||||
zprompt_theme='lean'
|
||||
zprompt_theme='eriner'
|
||||
|
||||
#
|
||||
# Completion
|
||||
@@ -70,7 +70,7 @@ ztermtitle='%n@%m:%~'
|
||||
# https://github.com/zsh-users/zsh-syntax-highlighting/blob/master/docs/highlighters.md
|
||||
# For (u)rxvt, termite and gnome-terminal users,
|
||||
# removing the 'cursor' highlighter will fix the disappearing cursor problem
|
||||
zhighlighters=(main brackets) # cursor)
|
||||
zhighlighters=(main brackets)
|
||||
|
||||
|
||||
#
|
||||
@@ -90,3 +90,4 @@ zhighlighters=(main brackets) # cursor)
|
||||
|
||||
# Load any helper scripts as defined here
|
||||
#zpacman_helper=(aur)
|
||||
|
||||
34
shell/.zshrc
Normal file
34
shell/.zshrc
Normal file
@@ -0,0 +1,34 @@
|
||||
|
||||
|
||||
#
|
||||
# User configuration sourced by interactive shells
|
||||
#
|
||||
|
||||
# Change default zim location
|
||||
export ZIM_HOME=${ZDOTDIR:-${HOME}}/.zim
|
||||
|
||||
# Start zim
|
||||
[[ -s ${ZIM_HOME}/init.zsh ]] && source ${ZIM_HOME}/init.zsh
|
||||
|
||||
export LANG=en_US.UTF-8
|
||||
export EDITOR='vim'
|
||||
export SSH_KEY_PATH="~/.ssh/rsa_id"
|
||||
export TERMINAL="terminator"
|
||||
export BROWSER="firefox"
|
||||
|
||||
source ~/.zshrc_functions
|
||||
source ~/.zshrc_local
|
||||
|
||||
# alter path
|
||||
export PATH="$HOME/bin:${PATH}" # binaries
|
||||
export PATH="$HOME/scripts:${PATH}" # scripts
|
||||
export PATH="$HOME/.local/bin:${PATH}" # python executeables
|
||||
|
||||
# fasd autocompletion
|
||||
eval "$(fasd --init auto)"
|
||||
|
||||
# marker
|
||||
[[ -s "$HOME/.local/share/marker/marker.sh" ]] && source "$HOME/.local/share/marker/marker.sh"
|
||||
|
||||
# the fuck?
|
||||
eval $(thefuck --alias)
|
||||
@@ -35,5 +35,9 @@ pdb() {
|
||||
gunzip $2/$1.pdb.gz
|
||||
}
|
||||
|
||||
# clipboard
|
||||
alias clip='xsel --clipboard'
|
||||
|
||||
alias groclean='rm \#*'
|
||||
alias sm='snakemake'
|
||||
alias ls='ls -lh'
|
||||
20
shell/.zshrc_local_t460s
Normal file
20
shell/.zshrc_local_t460s
Normal file
@@ -0,0 +1,20 @@
|
||||
source /opt/gromacs-2018.30/bin/GMXRC
|
||||
|
||||
# wham
|
||||
export PATH="/opt/wham/wham:/opt/wham/wham-2d:${PATH}" # binaries
|
||||
|
||||
# python
|
||||
#PYTHONPATH="$PYTHONPATH:/opt/modeller/modlib:/opt/modeller/lib/x86_64-intel8/python3.3"
|
||||
#export PYTHONPATH
|
||||
#export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/opt/modeller/lib/x86_64-intel8"
|
||||
|
||||
alias mountscratch="sshfs bauer@bioinfo4:/scratch ~/scratch"
|
||||
|
||||
function cd {
|
||||
builtin cd "$@"
|
||||
if [ -d "venv" ] ; then
|
||||
source venv/bin/activate
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
28
shell/.zshrc_t460s
Normal file
28
shell/.zshrc_t460s
Normal file
@@ -0,0 +1,28 @@
|
||||
|
||||
# Change default zim location
|
||||
export ZIM_HOME=${ZDOTDIR:-${HOME}}/.zim
|
||||
|
||||
# Start zim
|
||||
[[ -s ${ZIM_HOME}/init.zsh ]] && source ${ZIM_HOME}/init.zsh
|
||||
|
||||
export LANG=en_US.UTF-8
|
||||
export EDITOR='vim'
|
||||
export SSH_KEY_PATH="~/.ssh/rsa_id"
|
||||
export TERMINAL="terminator"
|
||||
export BROWSER="firefox"
|
||||
export PAGER=most
|
||||
|
||||
# source other szh stuff
|
||||
source ~/.zshrc_functions
|
||||
source ~/.zshrc_local
|
||||
|
||||
# alter path
|
||||
export PATH="$HOME/bin:${PATH}" # binaries
|
||||
export PATH="$HOME/scripts:${PATH}" # scripts
|
||||
export PATH="$HOME/.local/bin:${PATH}" # local executeables
|
||||
|
||||
# fasd autocompletion
|
||||
eval "$(fasd --init auto)"
|
||||
|
||||
# marker
|
||||
[[ -s "$HOME/.local/share/marker/marker.sh" ]] && source "$HOME/.local/share/marker/marker.sh"
|
||||
Reference in New Issue
Block a user