diff --git a/.config/i3/config_vriska b/.config/i3/config_vriska new file mode 100644 index 0000000..09a1cf1 --- /dev/null +++ b/.config/i3/config_vriska @@ -0,0 +1,434 @@ +# 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 some time, 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! + +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. +#font pango:monospace 8 + +# This font is widely installed, provides lots of unicode glyphs, right-to-left +# text rendering and scalability on retina/hidpi displays (thanks to pango). +#font pango:DejaVu Sans Mono 9 +#font pango:Liberation Sans 9.5 +font pango:Liberation Sans 12 + +# Before i3 v4.8, we used to recommend this one as the default: +# 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, its unicode glyph coverage is limited, the old +# X core fonts rendering does not support right-to-left and this being a bitmap +# font, it doesn’t scale on retina/hidpi displays. + +# Use Mouse+$mod to drag floating windows to their wanted position +floating_modifier $mod + +# No auto focussing +focus_follows_mouse no + +# start a terminal +bindsym $mod+Return exec i3-sensible-terminal + +bindsym Mod5+Menu exec i3-sensible-terminal + +# kill focused window +bindsym $mod+Shift+q kill + +# start dmenu (a program launcher) +bindsym $mod+d exec dmenu_run +#bindsym $mod+d exec "rofi -combi-modi window,drun -show combi -modi combi" + +# 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+h focus left +bindsym $mod+j focus down +bindsym $mod+k focus up +bindsym $mod+l focus right +#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+h move left +bindsym $mod+Shift+j move down +bindsym $mod+Shift+k move up +bindsym $mod+Shift+l move right +#bindsym $mod+Shift+semicolon 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 + +# split in horizontal orientation +#bindsym $mod+h split h +bindsym $mod+s split h + +# split in vertical orientation +bindsym $mod+v split v + +# enter fullscreen mode for the focused container +bindsym $mod+f fullscreen toggle + +# change container layout (stacked, tabbed, toggle split) +#bindsym $mod+s layout stacking +bindsym $mod+t layout tabbed +bindsym $mod+Shift+t 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 +bindsym $mod+shift+a focus child + + +# define output names (primary, secondard monitor) +set $OUTPUT1 eDP1 +set $OUTPUT2 DP2-3 + +# hotkeys for switching between monitors +bindsym $mod+comma focus output left +bindsym $mod+period focus output right + +# hotkeys for moving windows between monitors +bindsym $mod+Shift+comma move output left +bindsym $mod+Shift+period move output right + + +# define workspace names +set $WS1 "1: www" +set $WS2 "2: dev" +set $WS3 3 +set $WS4 4 +set $WS5 5 +set $WS6 6 +set $WS7 7 +set $WS8 8 +set $WS9 "9: mail" + +# alternative workspaces for use on second monitor +set $WS10 "10: com" +set $WSalt1 "11" +set $WSalt2 "12" +set $WSalt3 "13" +set $WSalt4 "14" +set $WSalt5 "15" +set $WSalt6 "16" +set $WSalt7 "17" +set $WSalt8 "18" +set $WSalt9 "19" +#set $WSalt10 $WS10 + +workspace $WS1 output $OUTPUT1 +workspace $WS2 output $OUTPUT1 +workspace $WS3 output $OUTPUT1 +workspace $WS4 output $OUTPUT1 +workspace $WS5 output $OUTPUT1 +workspace $WS6 output $OUTPUT1 +workspace $WS7 output $OUTPUT1 +workspace $WS8 output $OUTPUT1 +workspace $WS9 output $OUTPUT1 +workspace $WS10 output $OUTPUT1 + +#workspace $WS10 output $OUTPUT2 +workspace $WSalt1 output $OUTPUT2 +workspace $WSalt2 output $OUTPUT2 +workspace $WSalt3 output $OUTPUT2 +workspace $WSalt4 output $OUTPUT2 +workspace $WSalt5 output $OUTPUT2 +workspace $WSalt6 output $OUTPUT2 +workspace $WSalt7 output $OUTPUT2 +workspace $WSalt8 output $OUTPUT2 +workspace $WSalt9 output $OUTPUT2 + +# make windows on workspace 10 (primary workspace on second monitor) floating by default +for_window [workspace=$WS10] floating enable + +# !! assign workspaces only on start in startup script + +# assign windows to workspaces +# - Waterfox -> Workspace 1, always tabbed +#assign [class="^(Water|Fire)fox$"] output $OUTPUT1 +#assign [class="^(Water|Fire)fox$"] workspace $WS1 +for_window [class="^(Water|Fire)fox$"] layout tabbed + +# - Thunderbird -> Workspace 9 +#assign [class="^Thunderbird$"] output $OUTPUT1 +#assign [class="^Thunderbird$"] workspace $WS9 +for_window [class="^Thunderbird$"] layout tabbed + +# - Telegram -> Workspace 10 +#assign [class="^TelegramDesktop$"] output $OUTPUT2 +#assign [class="^TelegramDesktop$"] number $WS10 +#for_window [class="^TelegramDesktop$" title="^Telegram"] floating enable +#for_window [class="^TelegramDesktop$" title="^Telegram"] resize set 900 600 + +# - Gajim -> Workspace 10 +#assign [class="^Gajim$"] workspace $WS10 +for_window [class="^Gajim$"] floating enable + +# - PhpStorm -> Workspace 2, tabbed +#assign [class="^jetbrains-phpstorm$"] workspace $WS2 +for_window [class="^jetbrains-phpstorm$"] layout tabbed +for_window [class="^jetbrains-phpstorm$" title="Commit Changes"] floating disable + +# TODO audacious + +# - pavucontrol -> floating +for_window [class="^Pavucontrol$"] floating enable + + +# window hotkeys +#bindsym $mod+Ctrl+t [class="^TelegramDesktop$"] focus + + +# switch to workspace +bindsym $mod+1 workspace number $WS1 +bindsym $mod+2 workspace number $WS2 +bindsym $mod+3 workspace number $WS3 +bindsym $mod+4 workspace number $WS4 +bindsym $mod+5 workspace number $WS5 +bindsym $mod+6 workspace number $WS6 +bindsym $mod+7 workspace number $WS7 +bindsym $mod+8 workspace number $WS8 +bindsym $mod+9 workspace number $WS9 +bindsym $mod+0 workspace number $WS10 + +# switch to alt workspaces (right display) +bindsym $mod+Ctrl+1 workspace number $WSalt1 +bindsym $mod+Ctrl+2 workspace number $WSalt2 +bindsym $mod+Ctrl+3 workspace number $WSalt3 +bindsym $mod+Ctrl+4 workspace number $WSalt4 +bindsym $mod+Ctrl+5 workspace number $WSalt5 +bindsym $mod+Ctrl+6 workspace number $WSalt6 +bindsym $mod+Ctrl+7 workspace number $WSalt7 +bindsym $mod+Ctrl+8 workspace number $WSalt8 +bindsym $mod+Ctrl+9 workspace number $WSalt9 +bindsym $mod+Ctrl+0 workspace number $WS10 + +# alt hotkeys to switch to alt workspaces (right display) +bindsym $mod+F1 workspace number $WSalt1 +bindsym $mod+F2 workspace number $WSalt2 +bindsym $mod+F3 workspace number $WSalt3 +bindsym $mod+F4 workspace number $WSalt4 +bindsym $mod+F5 workspace number $WSalt5 +bindsym $mod+F6 workspace number $WSalt6 +bindsym $mod+F7 workspace number $WSalt7 +bindsym $mod+F8 workspace number $WSalt8 +bindsym $mod+F9 workspace number $WSalt9 +bindsym $mod+F10 workspace number $WS10 + +# move focused container to workspace +bindsym $mod+Shift+1 move container to workspace number $WS1 +bindsym $mod+Shift+2 move container to workspace number $WS2 +bindsym $mod+Shift+3 move container to workspace number $WS3 +bindsym $mod+Shift+4 move container to workspace number $WS4 +bindsym $mod+Shift+5 move container to workspace number $WS5 +bindsym $mod+Shift+6 move container to workspace number $WS6 +bindsym $mod+Shift+7 move container to workspace number $WS7 +bindsym $mod+Shift+8 move container to workspace number $WS8 +bindsym $mod+Shift+9 move container to workspace number $WS9 +bindsym $mod+Shift+0 move container to workspace number $WS10 + +bindsym $mod+Shift+Ctrl+1 move container to workspace number $WSalt1 +bindsym $mod+Shift+Ctrl+2 move container to workspace number $WSalt2 +bindsym $mod+Shift+Ctrl+3 move container to workspace number $WSalt3 +bindsym $mod+Shift+Ctrl+4 move container to workspace number $WSalt4 +bindsym $mod+Shift+Ctrl+5 move container to workspace number $WSalt5 +bindsym $mod+Shift+Ctrl+6 move container to workspace number $WSalt6 +bindsym $mod+Shift+Ctrl+7 move container to workspace number $WSalt7 +bindsym $mod+Shift+Ctrl+8 move container to workspace number $WSalt8 +bindsym $mod+Shift+Ctrl+9 move container to workspace number $WSalt9 +bindsym $mod+Shift+Ctrl+0 move container to workspace number $WS10 + +bindsym $mod+Shift+F1 move container to workspace number $WSalt1 +bindsym $mod+Shift+F2 move container to workspace number $WSalt2 +bindsym $mod+Shift+F3 move container to workspace number $WSalt3 +bindsym $mod+Shift+F4 move container to workspace number $WSalt4 +bindsym $mod+Shift+F5 move container to workspace number $WSalt5 +bindsym $mod+Shift+F6 move container to workspace number $WSalt6 +bindsym $mod+Shift+F7 move container to workspace number $WSalt7 +bindsym $mod+Shift+F8 move container to workspace number $WSalt8 +bindsym $mod+Shift+F9 move container to workspace number $WSalt9 +bindsym $mod+Shift+F10 move container to workspace number $WS10 + +# 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'" + + +# open i3-input +bindsym $mod+Shift+grave exec i3-input + + +# 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 h resize shrink width 10 px or 10 ppt + bindsym j resize grow height 10 px or 10 ppt + bindsym k resize shrink height 10 px or 10 ppt + bindsym l resize grow width 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 "default" +} + +bindsym $mod+r mode "resize" + +# Start i3bar to display a workspace bar (plus the system information i3status +# finds out, if available) +bar { + status_command i3status + +# # gaps +# #i3bar_command i3bar -t +# height 24 +# #position top +# #separator_symbol "|" + + tray_output $OUTPUT1 +# tray_padding 0 + + colors { + background #000000 + statusline #ffffff + separator #666666 + + focused_workspace #880044 #bb0066 #ffffff + active_workspace #333333 #5f676a #ffffff + inactive_workspace #333333 #222222 #888888 + urgent_workspace #2f343a #900000 #ffffff + binding_mode #2f343a #900000 #ffffff + } +} + + +# Colors + +# class border backgr. text indicator child_border +client.focused #880044 #bb0066 #ffffff #9933dd #880044 +client.focused_inactive #333333 #5f676a #ffffff #484e50 #5f676a +client.unfocused #333333 #222222 #888888 #292d2e #222222 +client.urgent #2f343a #c00000 #ffffff #900000 #900000 +client.placeholder #000000 #0c0c0c #ffffff #000000 #0c0c0c + +client.background #ffffff + + +#---------------- +# sort this stuff +#---------------- + +exec --no-startup-id redshift-gtk +exec --no-startup-id volumeicon +exec --no-startup-id nextcloud +exec --no-startup-id dropbox + +# Script that auto clears X primary selection on window focus events +# (uses xdotool and xclip, effectively disables middle mouse paste) +#exec --no-startup-id /home/lexi/bin/xprimaryselection-autoclear.pl + +# Switch between PulseAudio profiles (analog/HDMI) using Shift + Mute key +#bindsym Shift+XF86AudioMute exec --no-startup-id "~/bin/paprofile -n toggle" + +# Lock screen +bindsym $mod+ctrl+l exec --no-startup-id "loginctl lock-session" +bindsym $mod+mod1+l exec --no-startup-id "systemctl suspend" + +# Display/projector key: auto detect displays +#bindsym XF86Display exec --no-startup-id "~/bin/xrandr-autodetect" + +# Window rules +for_window [instance="meowstuck"] floating enable + + +# Gaps +#for_window [class="^.*"] border pixel 1 +##for_window [class="^.*"] border normal +# +#set $gaps_default_outer 0 +#set $gaps_default_inner 8 +# +#gaps outer $gaps_default_outer +#gaps inner $gaps_default_inner +# +# +#set $mode_gaps Gaps: inner [i/j/9/n], outer [o/k/0/m], global [+Shift] +#bindsym $mod+Shift+g mode "$mode_gaps" +# +#mode "$mode_gaps" { +# bindsym i gaps inner current plus 2 +# bindsym j gaps inner current minus 2 +# bindsym 9 gaps inner current set 0 +# bindsym n gaps inner current set $gaps_default_inner +# +# bindsym Shift+i gaps inner all plus 2 +# bindsym Shift+j gaps inner all minus 2 +# bindsym Shift+9 gaps inner all set 0 +# bindsym Shift+n gaps inner current set $gaps_default_inner +# +# bindsym o gaps outer current plus 2 +# bindsym k gaps outer current minus 2 +# bindsym 0 gaps outer current set 0 +# bindsym m gaps outer current set $gaps_default_outer +# +# bindsym Shift+o gaps outer all plus 2 +# bindsym Shift+k gaps outer all minus 2 +# bindsym Shift+0 gaps outer all set 0 +# bindsym Shift+m gaps outer current set $gaps_default_outer +# +# bindsym Return mode "default" +# bindsym Escape mode "default" +#} + +# open empty container +bindsym $mod+o open + +# open passmenu +bindsym $mod+Shift+p exec --no-startup-id passmenu + +# screenshots +bindsym $mod+Print exec gnome-screenshot -i + diff --git a/.config/i3status/config_vriska b/.config/i3status/config_vriska new file mode 100644 index 0000000..a85cbc3 --- /dev/null +++ b/.config/i3status/config_vriska @@ -0,0 +1,74 @@ +# i3status configuration file. +# see "man i3status" for documentation. + +# It is important that this file is edited as UTF-8. +# The following line should contain a sharp s: +# ß +# If the above line is not correctly displayed, fix your editor first! + +general { + colors = true + interval = 1 +} + +#order += "ipv6" +#order += "disk /" +order += "ethernet tun0" +order += "wireless _first_" +order += "ethernet _first_" +order += "battery 0" +order += "battery 1" +order += "cpu_temperature 0" +order += "load" +order += "tztime local" + +wireless _first_ { + format_up = "W: (%quality at %essid) %ip" + format_down = "W: down" +} + +ethernet _first_ { + # if you use %speed, i3status requires root privileges + format_up = "E: %ip (%speed)" + format_down = "E: down" +} + +# VPN +ethernet tun0 { + format_up = "VPN: %ip" + format_down = "No VPN" + color_good = "#FF0000" + color_bad = "#666666" +} + +battery 0 { + format = "BAT0: %status %percentage %remaining" + last_full_capacity = true + integer_battery_capacity = true + low_threshold = 30 +} + +battery 1 { + format = "BAT1: %status %percentage %remaining" + last_full_capacity = true + integer_battery_capacity = true + low_threshold = 30 +} + + +tztime local { + format = "%Y-%m-%d %H:%M:%S" +} + +cpu_temperature 0 { + format = "%degrees °C" + max_threshold = 70 +} + +load { + format = "%1min" +} + +disk "/" { + format = "%avail" +} diff --git a/.gitconfig b/.gitconfig index 9b0447e..95620c7 100644 --- a/.gitconfig +++ b/.gitconfig @@ -14,3 +14,4 @@ [pager] branch = false config = false + stash = false diff --git a/.vimrc b/.vimrc index 10cb672..5a82bf8 100644 --- a/.vimrc +++ b/.vimrc @@ -43,10 +43,10 @@ map map <2-MiddleMouse> map <3-MiddleMouse> map <4-MiddleMouse> -imap -imap <2-MiddleMouse> -imap <3-MiddleMouse> -imap <4-MiddleMouse> +"imap +"imap <2-MiddleMouse> +"imap <3-MiddleMouse> +"imap <4-MiddleMouse> " Keyboard mappings diff --git a/.xprofile b/.xprofile index 2a39901..c5d54db 100644 --- a/.xprofile +++ b/.xprofile @@ -1,5 +1,10 @@ +# +# ~/.xprofile (includes ~/.xprofile.local) +# + # Load X resources [ -f ~/.Xresources ] && xrdb -merge ~/.Xresources +[ -f ~/.Xresources.local ] && xrdb -merge ~/.Xresources.local # Deactivate screen blanking xset -dpms s off @@ -13,3 +18,6 @@ setxkbmap us altgr-intl # Register screen locker xss-lock -- i3lock -n -eft -i ~/.wallpapers/lockscreen & +# Include host-specific .xprofile +[ -f ~/.xprofile.local ] && source ~/.xprofile.local + diff --git a/local/.Xresources.vriska b/local/.Xresources.vriska new file mode 100644 index 0000000..fc9bb40 --- /dev/null +++ b/local/.Xresources.vriska @@ -0,0 +1,7 @@ +Xft.dpi: 144 +Xft.autohint: 0 +Xft.lcdfilter: lcddefault +Xft.hintstyle: hintfull +Xft.hinting: 1 +Xft.antialias: 1 +Xft.rgba: rgb diff --git a/local/.xprofile.vriska b/local/.xprofile.vriska new file mode 100644 index 0000000..1dbcf35 --- /dev/null +++ b/local/.xprofile.vriska @@ -0,0 +1,19 @@ +# +# ~/.xprofile.local (included by ~/.xprofile) +# + +# Activate numlock +numlockx + +# Deactivate touchpad +xinput disable "SynPS/2 Synaptics TouchPad" + +# Swap mouse buttons 8 and 9 (forward/back) +xmodmap -e "pointer = 1 2 3 4 5 6 7 9 8 10" + +# Start notification server +/usr/lib/notification-daemon-1.0/notification-daemon & + +# Load screen layout +[ -f ~/.screenlayout/workplace.sh ] && sh ~/.screenlayout/workplace.sh + diff --git a/tmp/vriska/.gtkrc-2.0 b/tmp/vriska/.gtkrc-2.0 new file mode 100644 index 0000000..5ae049d --- /dev/null +++ b/tmp/vriska/.gtkrc-2.0 @@ -0,0 +1,19 @@ +# DO NOT EDIT! This file will be overwritten by LXAppearance. +# Any customization should be done in ~/.gtkrc-2.0.mine instead. + +include "/home/lexi/.gtkrc-2.0.mine" +gtk-theme-name="Adwaita" +gtk-icon-theme-name="Adwaita" +gtk-font-name="Cantarell 12" +gtk-cursor-theme-name="Adwaita" +gtk-cursor-theme-size=0 +gtk-toolbar-style=GTK_TOOLBAR_BOTH +gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR +gtk-button-images=1 +gtk-menu-images=1 +gtk-enable-event-sounds=1 +gtk-enable-input-feedback-sounds=1 +gtk-xft-antialias=1 +gtk-xft-hinting=1 +gtk-xft-hintstyle="hintfull" +gtk-xft-rgba="rgb"