Add dotfiles from newest setup

Signed-off-by: Severin Kaderli <severin.kaderli@gmail.com>
This commit is contained in:
Severin Kaderli 2018-12-09 03:01:07 +01:00
parent 6555cc80cd
commit 3711ac3ea6
9 changed files with 120 additions and 55 deletions

View file

@ -51,9 +51,10 @@ export XMODIFIERS=@im=ibus
export VISUAL=vim
export EDITOR="$VISUAL"
export TERMINAL=termite
export QT_QPA_PLATFORMTHEME=qt5ct
source /usr/share/git/completion/git-prompt.sh
# Enable autocompletion features
if [ -f /etc/bash_completion ]; then
/etc/bash_completion

View file

@ -11,7 +11,7 @@ new_window none
# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below.
font pango:Roboto, FontAwesome 15px
font pango:Roboto, Font Awesome 5 Free 15px
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
@ -65,14 +65,14 @@ bindsym $mod+a focus parent
# Set monitor names
set $output1 VGA-1
set $output2 HDMI-1
set $output2 eDP-1
# Set workspace titles
set $workspace1 "1: "
set $workspace2 "2: "
set $workspace3 "3: "
set $workspace4 "4: "
set $workspace5 "5: Messaging"
set $workspace5 "5: "
set $workspace6 "6: "
set $workspace7 "7: "
set $workspace8 "8: "
@ -145,16 +145,16 @@ bindsym $mod+Shift+r restart
# resize window (you can also use the mouse for that)
mode "resize" {
# These bindings trigger as soon as you enter the resize mode
# These bindings trigger as soon as you enter the resize mode
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
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"
# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+x mode "resize"
@ -175,19 +175,24 @@ bindsym $mod+x mode "resize"
exec_always --no-startup-id $HOME/.config/polybar/launch.sh
# Custom key bindings
###
# Lock the screen
bindsym $mod+l exec ~/bin/screenlock.sh
bindsym XF86Sleep exec --no-startup-id ~/bin/screenlock.sh
#######################################
# Custom keybinding
#######################################
# Screen lock controls
bindsym $mod+l exec --no-startup-id $HOME/bin/screenlock.sh
bindsym XF86Sleep exec --no-startup-id $HOME/bin/screenlock.sh
# Volume changing
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle
bindsym $mod+m exec --no-startup-id pactl set-sink-mute 0 toggle
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5%
bindsym $mod+KP_Add exec --no-startup-id pactl set-sink-volume 0 +5%
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5%
bindsym $mod+KP_Subtract exec --no-startup-id pactl set-sink-volume 0 -5%
# Volume controls
bindsym XF86AudioMute exec --no-startup-id pamixer -t
bindsym $mod+m exec --no-startup-id pamixer -t
bindsym XF86AudioRaiseVolume exec --no-startup-id $HOME/bin/increase_volume.sh
bindsym $mod+KP_Add exec --no-startup-id $HOME/bin/increase_volume.sh
bindsym XF86AudioLowerVolume exec --no-startup-id pamixer -d 5 --allow-boost
bindsym $mod+KP_Subtract exec --no-startup-id pamixer -d 5 --allow-boost
# Brightness controls
bindsym XF86MonBrightnessUp exec --no-startup-id light -A 5
bindsym XF86MonBrightnessDown exec --no-startup-id light -U 5
# Music controls
bindsym XF86AudioPlay exec --no-startup-id cmus-remote -u
@ -201,8 +206,11 @@ bindsym $mod+Control+Left exec --no-startup-id cmus-remote -r
bindsym $mod+$alt+Left move workspace to output left
bindsym $mod+$alt+Right move workspace to output right
# Run specific applications on start
###
#######################################
# Startup applications
#######################################
#
exec wicd-client --tray
# Merge .Xresources on boot
exec xrdb -merge $HOME/.Xresources
@ -211,23 +219,27 @@ exec xrdb -merge $HOME/.Xresources
exec --no-startup-id compton
# Background-Image
exec_always --no-startup-id feh --bg-fill /home/severin/GoogleDrive/02_Media/01_Images/01_Wallpaper/Adapta_Tealized.jpg
exec_always --no-startup-id feh --bg-fill $HOME/GoogleDrive/02_Media/Images/01_Wallpaper/Desktop/Fearsome_Awakening.png
# Monitor settings
exec_always --no-startup-id xrandr --output $output2 --mode 1280x1024 --pos 1280x0 --rotate normal --output $output1 --mode 1280x1024 --pos 0x0 --rotate normal
exec_always --no-startup-id xrandr --output $output2 --mode 1920x1080 --pos 1920x0 --rotate normal --output $output1 --mode 1280x1024 --pos 0x0 --rotate normal
# Other applications
exec google-chrome-beta
exec termite
exec discord
exec nemo
exec keepassxc
#exec termite -e cmus --name cmus
# Assign programs to specific workspaces
###
assign [class="Google-chrome-beta"] $workspace1
assign [instance="termite"] $workspace2
assign [instance="cmus"] $workspace10
assign [class="Hyper"] $workspace2
assign [class="Atom"] $workspace3
assign [class="Code"] $workspace3
assign [class="Nemo"] $workspace4
assign [class="discord"] $workspace5
assign [class="Steam"] $workspace6
assign [class="keepassxc"] $workspace8
assign [class="Vlc"] $workspace9

View file

@ -15,22 +15,25 @@ foreground = ${colors.foreground}
padding-right = 2
module-margin = 2
font-0 = Roboto:pixelsize=12;2
font-1 = FontAwesome:size=11;2
font-2 = siji:pixelsize=10;0
font-0 = Roboto:pixelsize=12;3
font-1 = Font Awesome 5 Free:style=Solid::pixelsize=12;3
font-2 = Font Awesome 5 Brands:pixelsize=12;3
font-3 = siji:pixelsize=12;3
modules-left = i3
modules-center = xwindow
modules-right = volume wlan date
modules-right = battery volume backlight wlan date
#wm-restack = i3
scroll-up = i3wm-desknext
scroll-down = i3wm-deskprev
tray-position = right
[bar/top2]
inherit = bar/top
monitor = HDMI-1
monitor = eDP-1
[module/i3]
@ -65,7 +68,7 @@ label-urgent-padding = 4
[module/xwindow]
type = internal/xwindow
label = %title:0:40:...%
label = %title:0:50:...%
label-padding = 4
[module/date]
@ -76,15 +79,49 @@ time = %H:%M:%S
label =  %date% %time%
format = <label>
[module/padding]
type = custom/text
content =
content-foreground = #00000000
content-background = #55000000
[module/battery]
type = internal/battery
; This is useful in case the battery never reports 100% charge
full-at = 99
; Use the following command to list batteries and adapters:
; $ ls -1 /sys/class/power_supply/
battery = BAT0
adapter = AC
; If an inotify event haven't been reported in this many
; seconds, manually poll for new values.
;
; Needed as a fallback for systems that don't report events
; on sysfs/procfs.
;
; Disable polling by setting the interval to 0.
;
; Default: 5
poll-interval = 5
time-format = %Hh%Mm
label-full =  %percentage%%
label-charging = %percentage%% %time%
format-charging = <animation-charging> <label-charging>
label-discharging = %percentage%% %time%
format-discharging = <ramp-capacity> <label-discharging>
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-3 = 
animation-charging-4 = 
animation-charging-framerate = 500
[module/wlan]
type = internal/network
interface = wifi0
interface = wlp3s0
interval = 3.0
format-connected = <ramp-signal> <label-connected>
@ -105,15 +142,25 @@ ramp-signal-4 = 
ramp-signal-foreground = ${colors.foreground}
[module/volume]
type = internal/volume
type = internal/pulseaudio
use-ui-max = true
interval = 5
format-volume = <ramp-volume> <label-volume>
format-muted = <label-muted>
label-volume = %percentage%
label-muted =  Muted
label-volume = %percentage%%
label-muted =  %percentage%%
label-muted-foreground = #aaa
ramp-volume-0 = 
ramp-volume-1 = 
ramp-volume-2 = 
ramp-headphones-0 = 
[module/backlight]
type = custom/script
exec = light -G | cut -d. -f1
format =  <label>
label = %output%%
scroll-up = light -A 5
scroll-down = light -U 5
interval = 0.1

View file

@ -1 +0,0 @@
/home/severin/.config/polybar

2
.config/screen_layout.sh Executable file
View file

@ -0,0 +1,2 @@
#!/bin/sh
xrandr --output eDP-1 --primary --mode 1920x1080 --pos 0x0 --rotate normal --output HDMI-3 --off --output HDMI-2 --off --output HDMI-1 --off --output DP-3 --off --output DP-2 --off --output DP-1 --off

View file

@ -9,7 +9,7 @@ allow_bold = true
dynamic_title = true
urgent_on_bell = false
clickable_url = true
font = Hack 10
font = Hack 12
scrollback_lines = 1000
search_wrap = true

4
bin/increase_volume.sh Executable file
View file

@ -0,0 +1,4 @@
#!/bin/bash
if [[ $(pamixer --get-volume) -lt 150 ]]; then
pamixer -i 5 --allow-boost
fi

View file

@ -1,4 +1,2 @@
#!/bin/bash
scrot /tmp/screenshot.png
convert /tmp/screenshot.png -blur 0x5 /tmp/screenshotblur.png
i3lock -i /tmp/screenshotblur.png
i3lock-fancy -pf Roboto -- scrot -z

View file

@ -30,6 +30,8 @@ ln -s "$DIR/.aliases" "$HOME/.aliases"
ln -s "$DIR/.xinitrc" "$HOME/.xinitrc"
ln -s "$DIR/.Xresources" "$HOME/.Xresources"
ln -s "$DIR/.config/i3" "$HOME/.config/i3"
ln -s "$DIR/.config/termite" "$HOME/.config/termite"
ln -s "$DIR/.config/polybar" "$HOME/.config/polybar"
ln -s "$DIR/.dircolors" "$HOME/.dircolors"
ln -s "$DIR/.config/compton.conf" "$HOME/.config/compton.conf"
ln -s "$DIR/.hyper.js" "$HOME/.hyper.js"