diff --git a/gitconfig b/gitconfig new file mode 100644 index 0000000..0cf691b --- /dev/null +++ b/gitconfig @@ -0,0 +1,3 @@ +[user] + email = fox@foxiepa.ws + name = Rachel Fae Fox diff --git a/i3/config b/i3/config new file mode 100644 index 0000000..d45f9c2 --- /dev/null +++ b/i3/config @@ -0,0 +1,144 @@ +font pango:Dina TTF 9 + +exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork +set $refresh_i3status killall -SIGUSR1 i3status + +# keybindings +set $up l +set $down k +set $left j +set $right semicolon +floating_modifier Mod4 +bindsym Mod4+Shift+Return exec konsole +bindsym Mod4+Shift+c kill +bindsym Mod4+p exec rofi -show combi +bindsym Mod4+$left focus left +bindsym Mod4+$down focus down +bindsym Mod4+$up focus up +bindsym Mod4+$right focus right +bindsym Mod4+Left focus left +bindsym Mod4+Down focus down +bindsym Mod4+Up focus up +bindsym Mod4+Right focus right +bindsym Mod4+Shift+$left move left +bindsym Mod4+Shift+$down move down +bindsym Mod4+Shift+$up move up +bindsym Mod4+Shift+$right move right +bindsym Mod4+Shift+Left move left +bindsym Mod4+Shift+Down move down +bindsym Mod4+Shift+Up move up +bindsym Mod4+Shift+Right move right +bindsym Mod4+h split h +bindsym Mod4+v split v +bindsym Mod4+f fullscreen toggle +bindsym Mod4+s layout stacking +bindsym Mod4+w layout tabbed +bindsym Mod4+e layout toggle split +bindsym Mod4+Shift+space floating toggle + +# change focus between tiling / floating windows +bindsym Mod4+space focus mode_toggle + +# Focus the parent container +bindsym Mod4+a focus parent + +# focus the child container +#bindsym Mod4+d focus child + +# move the currently focused window to the scratchpad +bindsym Mod4+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 Mod4+minus scratchpad show + +# Define names for default workspaces for which we configure key bindings later on. +# We use variables to avoid repeating the names in multiple places. +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" +set $ws10 "10" + +# switch to workspace +bindsym Mod4+1 workspace number $ws1 +bindsym Mod4+2 workspace number $ws2 +bindsym Mod4+3 workspace number $ws3 +bindsym Mod4+4 workspace number $ws4 +bindsym Mod4+5 workspace number $ws5 +bindsym Mod4+6 workspace number $ws6 +bindsym Mod4+7 workspace number $ws7 +bindsym Mod4+8 workspace number $ws8 +bindsym Mod4+9 workspace number $ws9 +bindsym Mod4+0 workspace number $ws10 + +# move focused container to workspace +bindsym Mod4+Shift+1 move container to workspace number $ws1 +bindsym Mod4+Shift+2 move container to workspace number $ws2 +bindsym Mod4+Shift+3 move container to workspace number $ws3 +bindsym Mod4+Shift+4 move container to workspace number $ws4 +bindsym Mod4+Shift+5 move container to workspace number $ws5 +bindsym Mod4+Shift+6 move container to workspace number $ws6 +bindsym Mod4+Shift+7 move container to workspace number $ws7 +bindsym Mod4+Shift+8 move container to workspace number $ws8 +bindsym Mod4+Shift+9 move container to workspace number $ws9 +bindsym Mod4+Shift+0 move container to workspace number $ws10 + +bindsym Mod4+Shift+comma move workspace to output left +bindsym Mod4+Shift+period move workspace to output right +# reload the configuration file +bindsym Mod4+Mod1+q reload +# restart i3 inplace (preserves your layout/session, can be used to upgrade i3) +bindsym Mod4+Shift+r restart +# exit i3 (logs you out of your X session) +bindsym Mod4+Shift+q 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 $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 + + # 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 or Mod4+r + bindsym Return mode "default" + bindsym Escape mode "default" + bindsym Mod4+r mode "default" +} + +bindsym Mod4+r mode "resize" + +# Start i3bar to display a workspace bar (plus the system information i3status +# finds out, if available) +bar { + status_command i3status + tray_output primary +} + +####################################################################### +# automatically start i3-config-wizard to offer the user to create a +# keysym-based config which used their favorite modifier (alt or windows) +# +# i3-config-wizard will not launch if there already is a config file +# in ~/.config/i3/config (or $XDG_CONFIG_HOME/i3/config if set) or +# ~/.i3/config. +# +# Please remove the following exec line: +####################################################################### diff --git a/i3status/config b/i3status/config new file mode 100644 index 0000000..4a13cc6 --- /dev/null +++ b/i3status/config @@ -0,0 +1,45 @@ +# 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 = 5 +} + +order += "ethernet _first_" +order += "disk /" +order += "load" +order += "memory" +order += "tztime local" + +ethernet _first_ { + format_up = "E: %ip (%speed)" + format_down = "E: down" +} + +battery all { + format = "%status %percentage %remaining" +} + +disk "/" { + format = "/: avail: %avail" +} + +load { + format = "load: %1min" +} + +memory { + format = "mem: u: %used | a: %available" + threshold_degraded = "1G" + format_degraded = "MEMORY < %available" +} + +tztime local { + format = "%Y-%m-%d %H:%M" +} diff --git a/qt5ct/qss/aludel.qss b/qt5ct/qss/aludel.qss new file mode 100644 index 0000000..42b937b --- /dev/null +++ b/qt5ct/qss/aludel.qss @@ -0,0 +1,16 @@ +Notification * { + font-family: "Roboto", "JoyPixels"; +} + +Notification #container { + background: /**/palette(window)/**/ /*/qlineargradient(x1: 0.5, x2: 0.5, y1: 0, y2: 1, stop: 0 #a3cb60b3, stop: 0.5 #a3c146a1, stop: 0.51 #a3a80077, stop: 1.0 #a3db36a4)/**/; + border: 1px solid palette(mid); + border-radius: 1; +} + +Notification[urgency=critical] #container { /* just a bit of an indicator */ + border-color: qlineargradient(x1: 0.75, x2: 1, y1: 0, y2: 0, stop: 0.0 palette(mid), stop: 1.0 red); + border-left-color: palette(mid); + border-right-color: red; + border-radius: 0; +} diff --git a/qt5ct/qt5ct.conf b/qt5ct/qt5ct.conf new file mode 100644 index 0000000..0ff3aea --- /dev/null +++ b/qt5ct/qt5ct.conf @@ -0,0 +1,30 @@ +[Appearance] +color_scheme_path=/usr/share/qt5ct/colors/darker.conf +custom_palette=true +standard_dialogs=default +style=Breeze + +[Fonts] +fixed=@Variant(\0\0\0@\0\0\0\x1e\0\x44\0\x65\0j\0\x61\0V\0u\0 \0L\0G\0\x43\0 \0S\0\x61\0n\0s@(\0\0\0\0\0\0\xff\xff\xff\xff\x5\x1\0\x32\x10) +general=@Variant(\0\0\0@\0\0\0\x1e\0\x44\0\x65\0j\0\x61\0V\0u\0 \0L\0G\0\x43\0 \0S\0\x61\0n\0s@(\0\0\0\0\0\0\xff\xff\xff\xff\x5\x1\0\x32\x10) + +[Interface] +activate_item_on_single_click=1 +buttonbox_layout=0 +cursor_flash_time=1000 +dialog_buttons_have_icons=1 +double_click_interval=400 +gui_effects=@Invalid() +keyboard_scheme=2 +menus_have_icons=true +show_shortcuts_in_context_menus=true +stylesheets=/home/rachel/.config/qt5ct/qss/aludel.qss +toolbutton_style=4 +underline_shortcut=1 +wheel_scroll_lines=3 + +[QSSEditor] +geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\t\xf5\0\0\0\xf9\0\0\f{\0\0\x2\xed\0\0\t\xf7\0\0\0\xf9\0\0\fy\0\0\x2\xeb\0\0\0\0\0\0\0\0\a\x80\0\0\t\xf7\0\0\0\xf9\0\0\fy\0\0\x2\xeb) + +[SettingsWindow] +geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\v@\0\0\0\x12\0\0\xe\xff\0\0\x4#\0\0\vB\0\0\0\x12\0\0\xe\xfd\0\0\x4!\0\0\0\0\0\0\0\0\a\x80\0\0\vB\0\0\0\x12\0\0\xe\xfd\0\0\x4!) diff --git a/setup.sh b/setup.sh index e3fd780..1a4db72 100644 --- a/setup.sh +++ b/setup.sh @@ -1,8 +1,20 @@ #!/usr/bin/env sh -ln -s zlogin ~/.zlogin -ln -s zshrc ~/.zshrc -ln -s emacs.d ~/.emacs.d -ln -s vimrc .vimrc +IAM=`dirname $0` +mkdir -p ~/.config mkdir -p ~/.bin + +# ~ dotfiles +ln -s $IAM/zlogin ~/.zlogin +ln -s $IAM/zshrc ~/.zshrc +ln -s $IAM/emacs.d ~/.emacs.d +ln -s $IAM/vimrc ~/.vimrc +ln -s $IAM/gitconfig ~/.gitconfig + +# .config dotfiles +ln -s $IAM/i3 ~/.config/i3 +ln -s $IAM/i3status ~/.config/i3status +ln -s $IAM/qt5ct ~/.config/qt5ct + +# tasks emacs --script install-packages.el diff --git a/xinitrc b/xinitrc new file mode 100755 index 0000000..4a44441 --- /dev/null +++ b/xinitrc @@ -0,0 +1,9 @@ +#!/usr/bin/env bash +export QT_QPA_PLATFORMTHEME=qt5ct +fc-cache +~/.fehbg +setxkbmap dvorak +xmodmap ~/.xmodmap +compton & +aludel & +exec i3 diff --git a/zshrc b/zshrc index 232c46c..3b7d96b 100644 --- a/zshrc +++ b/zshrc @@ -9,17 +9,17 @@ autoload -Uz promptinit promptinit prompt clint -export PATH=$HOME/.bin:$PATH +export PATH=$HOME/.bin:$PATH EDITOR=emacs PAGER=most # Load additions case $OSTYPE in darwin*) - . ~/.dotfiles/zshrc_mac + . ~/dotfiles/zshrc_mac ;; freebsd*) - . ~/.dotfiles/zshrc_bsd + . ~/dotfiles/zshrc_bsd ;; linux-gnu) - . ~/.dotfiles/zshrc_linux + . ~/dotfiles/zshrc_linux ;; esac