diff --git a/.bash_aliases b/.bash_aliases new file mode 100644 index 00000000..d78c3bda --- /dev/null +++ b/.bash_aliases @@ -0,0 +1,15 @@ +# some more ls aliases +alias ll='ls -alF' +alias la='ls -A' +alias l='ls -CF' + +# Add an "alert" alias for long running commands. Use like so: +# sleep 10; alert +alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"' + +function gpg-reload { + gpg-connect-agent reloadagent /bye + gpg-agent --daemon +} + +alias gccxml='gccxml.real' diff --git a/.bashrc b/.bashrc new file mode 100644 index 00000000..637cf385 --- /dev/null +++ b/.bashrc @@ -0,0 +1,25 @@ +# ~/.bashrc: executed by bash(1) for non-login shells. +# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) +# for examples + +# Alias definitions. +# You may want to put all your additions into a separate file like +# ~/.bash_aliases, instead of adding them here directly. +# See /usr/share/doc/bash-doc/examples in the bash-doc package. + +if [ -f ~/.bash_aliases ]; then + . ~/.bash_aliases +fi + +gpg-agent --daemon +export SSH_AUTH_SOCK=~/.gnupg/S.gpg-agent.ssh + +export EDITOR=nvim +export TERMINAL=gnome-terminal + +export PATH=~/JUCE:$PATH + +export LD_LIBRARY_PATH=$LD_LIBRARY_PATH +export CXXFLAGS='-std=c++14' + +export LIBGL_ALWAYS_INDIRECT=1 diff --git a/.config/.compton.conf b/.config/.compton.conf new file mode 100644 index 00000000..f0631bdc --- /dev/null +++ b/.config/.compton.conf @@ -0,0 +1,6 @@ +# Fading +fading = true; # Fade windows during opacity changes. +fade-delta = 12; # The time between steps in a fade in milliseconds. (default 10). +fade-in-step = 0.15; # Opacity change between steps while fading in. (default 0.028). +fade-out-step = 0.15; # Opacity change between steps while fading out. (default 0.03). +no-fading-openclose = false; # Fade windows in/out when opening/closing. diff --git a/.config/i3/config b/.config/i3/config new file mode 100644 index 00000000..000f148b --- /dev/null +++ b/.config/i3/config @@ -0,0 +1,301 @@ +set $mod Mod1 +#set $mod Mod4 + +#new_window none +#new_float normal + +exec --no-startup-id xsetroot -solid "#333333" + +default_border normal +default_floating_border normal + +focus_wrapping no + +hide_edge_borders none + +bindsym $mod+u border none +bindsym $mod+i border pixel 1 +bindsym $mod+o border normal + +font xft:URWGothic-Book 11 +#font Hack 11 + +floating_modifier $mod + +bindsym $mod+Return exec gnome-terminal + +# Window kill command +bindsym $mod+Shift+q kill + +# start program launcher +#bindsym $mod+d exec dmenu_run +bindsym $mod+d exec --no-startup-id rofi -show run +#bindsym $mod+d exec --no-startup-id rofi -show run -lines 3 -eh 2 -width 100 -padding 800 -opacity "85" -bw 0 -bc "$bg-color" -bg "$bg-color" -fg "$text-color" -hlbg "$bg-color" -hlfg "#9575cd" +bindsym $mod+Shift+d exec --no-startup-id rofi -show run -run-command 'sudo {cmd}' +#bindsym $mod+d exec SUDO_ASKPASS=~/bin/askpass-rofi --no-startup-id rofi -show drun -run-command 'sudo -A {cmd}' + +# change focus +bindsym $mod+h focus left +bindsym $mod+j focus down +bindsym $mod+k focus up +bindsym $mod+l 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 + +# move workspace +bindsym $mod+Shift+Ctrl+h move workspace to output left +bindsym $mod+Shift+Ctrl+l move workspace to output right + +# workspace back and forth (with/without active container) +workspace_auto_back_and_forth no +bindsym $mod+b workspace back_and_forth +bindsym $mod+Shift+b move container to workspace back_and_forth; workspace back_and_forth + +# split orientation +bindsym $mod+n split h;exec notify-send 'tile horizontally' +bindsym $mod+v split v;exec notify-send 'tile vertically' +bindsym $mod+q split toggle;exec notify-send 'tile toggle' + +# toggle fullscreen mode for the focused container +bindsym $mod+f fullscreen toggle + +# change container layout (stacked, tabbed, toggle split) +bindsym $mod+s layout stacking;exec notify-send 'layout stacking' +bindsym $mod+w layout tabbed;exec notify-send 'layout tabbed' +bindsym $mod+e layout toggle split;exec notify-send 'layout split' + +# toggle tiling / floating +bindsym $mod+Shift+space floating toggle + +# change focus between tiling / floating windows +bindsym $mod+space focus mode_toggle + +# toggle sticky +bindsym $mod+Shift+s sticky toggle + +# focus the parent container +bindsym $mod+a focus parent + +# move the currently focused window to the scratchpad +bindsym $mod+Shift+minus move scratchpad + +# Show the next scratchpad window or hide the focused scratchpad window. +# If there are multiple scratchpad windows, this command cycles through them. +bindsym $mod+minus scratchpad show + +# navigate workspaces next / previous +bindsym $mod+Ctrl+l workspace next +bindsym $mod+Ctrl+h workspace prev + +# workspaces +set $ws1 1 +set $ws2 2 +set $ws3 3 +set $ws4 4 +set $ws5 5 +set $ws6 6 +set $ws7 7 +set $ws8 8 +set $ws9 9 + +# switch to workspace +bindsym $mod+1 workspace $ws1 +bindsym $mod+2 workspace $ws2 +bindsym $mod+3 workspace $ws3 +bindsym $mod+4 workspace $ws4 +bindsym $mod+5 workspace $ws5 +bindsym $mod+6 workspace $ws6 +bindsym $mod+7 workspace $ws7 +bindsym $mod+8 workspace $ws8 +bindsym $mod+9 workspace $ws9 + +# Move focused container to workspace +bindsym $mod+Ctrl+1 move container to workspace $ws1 +bindsym $mod+Ctrl+2 move container to workspace $ws2 +bindsym $mod+Ctrl+3 move container to workspace $ws3 +bindsym $mod+Ctrl+4 move container to workspace $ws4 +bindsym $mod+Ctrl+5 move container to workspace $ws5 +bindsym $mod+Ctrl+6 move container to workspace $ws6 +bindsym $mod+Ctrl+7 move container to workspace $ws7 +bindsym $mod+Ctrl+8 move container to workspace $ws8 +bindsym $mod+Ctrl+9 move container to workspace $ws9 + +# Move to workspace with focused container +bindsym $mod+Shift+1 move container to workspace $ws1; workspace $ws1 +bindsym $mod+Shift+2 move container to workspace $ws2; workspace $ws2 +bindsym $mod+Shift+3 move container to workspace $ws3; workspace $ws3 +bindsym $mod+Shift+4 move container to workspace $ws4; workspace $ws4 +bindsym $mod+Shift+5 move container to workspace $ws5; workspace $ws5 +bindsym $mod+Shift+6 move container to workspace $ws6; workspace $ws6 +bindsym $mod+Shift+7 move container to workspace $ws7; workspace $ws7 +bindsym $mod+Shift+8 move container to workspace $ws8; workspace $ws8 +bindsym $mod+Shift+9 move container to workspace $ws9; workspace $ws9 + +# Open specific applications in floating mode +for_window [title="alsamixer"] floating enable border pixel 1 +for_window [class="Calamares"] floating enable border normal +for_window [class="Clipgrab"] floating enable +for_window [title="File Transfer*"] floating enable +for_window [class="Galculator"] floating enable border pixel 1 +for_window [class="GParted"] floating enable border normal +for_window [title="i3_help"] floating enable sticky enable border normal +for_window [class="Lightdm-gtk-greeter-settings"] floating enable +for_window [class="Lxappearance"] floating enable sticky enable border normal +for_window [class="Manjaro-hello"] floating enable +for_window [class="Manjaro Settings Manager"] floating enable border normal +for_window [title="MuseScore: Play Panel"] floating enable +for_window [class="Nitrogen"] floating enable sticky enable border normal +for_window [class="Oblogout"] fullscreen enable +for_window [class="octopi"] floating enable +for_window [title="About Pale Moon"] floating enable +for_window [class="Pamac-manager"] floating enable +for_window [class="Pavucontrol"] floating enable +for_window [class="qt5ct"] floating enable sticky enable border normal +for_window [class="Qtconfig-qt4"] floating enable sticky enable border normal +for_window [class="Simple-scan"] floating enable border normal +for_window [class="(?i)System-config-printer.py"] floating enable border normal +for_window [class="Skype"] floating enable border normal +for_window [class="Thus"] floating enable border normal +for_window [class="Timeset-gui"] floating enable border normal +for_window [class="(?i)virtualbox"] floating enable border normal +for_window [class="Xfburn"] floating enable + +# switch to workspace with urgent window automatically +for_window [urgent=latest] focus + +# 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'" +bindsym $mod+Shift+e exec i3-msg exit + +# Set shut down, restart and locking features +bindsym $mod+0 mode "$mode_system" +set $mode_system (l)ock, (e)xit, switch_(u)ser, (s)uspend, (h)ibernate, (r)eboot, (Shift+s)hutdown +mode "$mode_system" { + bindsym l exec --no-startup-id i3exit lock, mode "default" + bindsym s exec --no-startup-id i3exit suspend, mode "default" + bindsym u exec --no-startup-id i3exit switch_user, mode "default" + bindsym e exec --no-startup-id i3exit logout, mode "default" + bindsym h exec --no-startup-id i3exit hibernate, mode "default" + bindsym r exec --no-startup-id i3exit reboot, mode "default" + bindsym Shift+s exec --no-startup-id i3exit shutdown, mode "default" + + # exit system mode: "Enter" or "Escape" + bindsym Return mode "default" + bindsym Escape mode "default" +} + +# Resize window (you can also use the mouse for that) +bindsym $mod+r mode "resize" +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 5 px or 5 ppt + bindsym j resize grow height 5 px or 5 ppt + bindsym k resize shrink height 5 px or 5 ppt + bindsym l resize grow width 5 px or 5 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 + + # exit resize mode: Enter or Escape + bindsym Return mode "default" + bindsym Escape mode "default" + bindsym $mod+r mode "default" +} + +# Autostart applications +# exec --no-startup-id nitrogen --restore; sleep 1; compton -b +# exec --no-startup-id nm-applet +# exec --no-startup-id xfce4-power-manager +# exec --no-startup-id pamac-tray +# exec --no-startup-id clipit +# exec_always --no-startup-id ff-theme-util +# exec_always --no-startup-id fix_xcursor +# exec_always --no-startup-id ~/.config/polybar/i3wmthemer_bar_launch.sh + +bar { + position top + status_command i3status + binding_mode_indicator yes +} + +# Theme colors +client.focused #a6f6c6 #3f453f #e6e6e6 #0099ff #8abeb7 +client.focused_inactive #c6c6c6 #1f1f1f #c6c6c6 #1f1f1f #8abeb7 +client.unfocused #c6c6c6 #1f1f1f #c6c6c6 #1f1f1f #8abeb7 +client.urgent #f6a6a6 #3f1f1f #e6c6c6 #3f1f1f #8abeb7 +client.placeholder #c6c6c6 #1f1f1f #c6c6c6 #1f1f1f #8abeb7 + +client.background #1f1f1f + +# Gaps +#gaps inner 10 +#gaps outer -4 +# +#smart_gaps on + +# Press $mod+Shift+g to enter the gap mode. Choose o or i for modifying outer/inner gaps. Press one of + / - (in-/decrement for current workspace) or 0 (remove gaps for current workspace). If you also press Shift with these keys, the change will be global for all workspaces. +set $mode_gaps Gaps: (o) outer, (i) inner +set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global) +set $mode_gaps_inner Inner Gaps: +|-|0 (local), Shift + +|-|0 (global) +bindsym $mod+Shift+g mode "$mode_gaps" + +mode "$mode_gaps" { + bindsym o mode "$mode_gaps_outer" + bindsym i mode "$mode_gaps_inner" + bindsym Return mode "default" + bindsym Escape mode "default" +} +mode "$mode_gaps_inner" { + bindsym plus gaps inner current plus 5 + bindsym minus gaps inner current minus 5 + bindsym 0 gaps inner current set 0 + + bindsym Shift+plus gaps inner all plus 5 + bindsym Shift+minus gaps inner all minus 5 + bindsym Shift+0 gaps inner all set 0 + + bindsym Return mode "default" + bindsym Escape mode "default" +} +mode "$mode_gaps_outer" { + bindsym plus gaps outer current plus 5 + bindsym minus gaps outer current minus 5 + bindsym 0 gaps outer current set 0 + + bindsym Shift+plus gaps outer all plus 5 + bindsym Shift+minus gaps outer all minus 5 + bindsym Shift+0 gaps outer all set 0 + + bindsym Return mode "default" + bindsym Escape mode "default" +} + +# set power-manager and volume control +# exec --no-startup-id mate-power-manager + +# bindsym XF86AudioRaiseVolume exec --no-startup-id amixer -c 0 -q set Master 2dB+ unmute +# bindsym XF86AudioLowerVolume exec --no-startup-id amixer -c 0 -q set Master 2db- unmute +# bindsym XF86AudioMute exec --no-startup-id amixer -q set Master toggle +# +# touchpad on and off controller on laptop with Fn+ +# bindsym XF86TouchpadOn exec --no-startup-id synclient Touchpadoff=0 +# bindsym XF86TouchpadOff exec --no-startup-id synclient Touchpadoff=1 + +# exec compton diff --git a/.config/nitrogen/007.png b/.config/nitrogen/007.png new file mode 100644 index 00000000..3d0c67ed Binary files /dev/null and b/.config/nitrogen/007.png differ diff --git a/.config/nitrogen/bg-saved.cfg b/.config/nitrogen/bg-saved.cfg new file mode 100644 index 00000000..90b9a528 --- /dev/null +++ b/.config/nitrogen/bg-saved.cfg @@ -0,0 +1,4 @@ +[xin_-1] +file= /home/dustvoice/.config/nitrogen/007.png +mode=5 +bgcolor=#000000 diff --git a/.config/polybar/config b/.config/polybar/config new file mode 100644 index 00000000..da586609 --- /dev/null +++ b/.config/polybar/config @@ -0,0 +1,157 @@ +[bar/i3wmthemer_bar] +width = 100% +height = 27 +radius = 0 +fixed-center = false + +background = #1f1f1f +foreground = #c6c6c6 + +line-size = 3 +line-color = + +border-size = 0 +border-color = + +padding-left = 0 +padding-right = 2 + +module-margin-left = 1 +module-margin-right = 2 + +font-0 = "Source Code Pro Semibold:size=10;1" +font-1 = "Font Awesome 5 Free:style=Solid:size=10;1" +font-2 = "Font Awesome 5 Brands:size=10;1" + +modules-left = wlan eth +modules-center = i3 +modules-right = date powermenu + +tray-position = +;tray-padding = + +cursor-click = pointer +cursor-scroll = ns-resize + +[module/i3] +type = internal/i3 +format = +index-sort = true +wrapping-scroll = false + +label-mode-padding = 2 +label-mode-foreground = #828282 +label-mode-background = #1f1f1f + +label-focused = %index% +label-focused-background = #8abeb7 +label-focused-foreground = #1f1f1f +label-focused-padding = 2 + +label-unfocused = %index% +label-unfocused-background = #8abeb7 +label-unfocused-foreground = #1f1f1f +label-unfocused-padding = 2 + +label-visible = %index% +label-visible-background = #8abeb7 +label-visible-foreground = #1f1f1f +label-visible-padding = 2 + +label-urgent = %index% +label-urgent-background = #BA2922 +label-urgent-padding = 2 + +[module/wlan] +type = internal/network +interface = net1 +interval = 3.0 + +format-connected = +format-connected-foreground = #1f1f1f +format-connected-background = #8abeb7 +format-connected-padding = 2 +label-connected = %essid% + +format-disconnected = + +ramp-signal-0 =  +ramp-signal-1 =  +ramp-signal-2 =  +ramp-signal-3 =  +ramp-signal-4 =  +ramp-signal-foreground = #1f1f1f + +[module/eth] +type = internal/network +interface = enp0s3 +interval = 3.0 + +format-connected-padding = 2 +format-connected-foreground = #1f1f1f +format-connected-background = #8abeb7 +format-connected-prefix = " " +format-connected-prefix-foreground = #1f1f1f +label-connected = %local_ip% + +format-disconnected = + +[module/date] +type = internal/date +interval = 5 + +date = +date-alt = " %Y-%m-%d" + +time = %H:%M +time-alt = %H:%M:%S + +format-prefix =  +format-foreground = #1f1f1f +format-background = #8abeb7 +format-padding = 2 + +label = %date% %time% + +[module/powermenu] +type = custom/menu + +expand-right = true + +format-spacing = 1 + +label-open =  +label-open-foreground = #8abeb7 +label-close =  cancel +label-close-foreground = #8abeb7 +label-separator = | +label-separator-foreground = #8abeb7 + +menu-0-0 = reboot +menu-0-0-exec = menu-open-1 +menu-0-1 = power off +menu-0-1-exec = menu-open-2 +menu-0-2 = log off +menu-0-2-exec = menu-open-3 + +menu-1-0 = cancel +menu-1-0-exec = menu-open-0 +menu-1-1 = reboot +menu-1-1-exec = reboot + +menu-2-0 = power off +menu-2-0-exec = poweroff +menu-2-1 = cancel +menu-2-1-exec = menu-open-0 + +menu-3-0 = log off +menu-3-0-exec = pkill -KILL -u $USER +menu-3-1 = cancel +menu-3-1-exec = menu-open-0 + +[settings] +screenchange-reload = true + +[global/wm] +margin-top = 0 +margin-bottom = 0 diff --git a/.config/polybar/i3wmthemer_bar_launch.sh b/.config/polybar/i3wmthemer_bar_launch.sh new file mode 100755 index 00000000..9a4928f2 --- /dev/null +++ b/.config/polybar/i3wmthemer_bar_launch.sh @@ -0,0 +1,7 @@ +#!/bin/env sh + +pkill polybar + +sleep 1; + +polybar i3wmthemer_bar & diff --git a/.gitconfig b/.gitconfig new file mode 100644 index 00000000..4641d796 --- /dev/null +++ b/.gitconfig @@ -0,0 +1,10 @@ +[user] + email = info@dustvoice.de + name = DustVoice + signingkey = 7A9CA430D426100E +[core] + editor = nvim +[push] + default = simple +[commit] + gpgsign = true diff --git a/.inputrc b/.inputrc new file mode 100644 index 00000000..9bae6511 --- /dev/null +++ b/.inputrc @@ -0,0 +1,4 @@ +set editing-mode vi +set show-mode-in-prompt on +set vi-cmd-mode-string "(normal) " +set vi-ins-mode-string "(insert) "