diff options
Diffstat (limited to 'dots')
-rw-r--r-- | dots/.bashrc | 36 | ||||
-rw-r--r-- | dots/90-touchpad.conf | 8 | ||||
-rw-r--r-- | dots/default-screenlayout.sh | 2 | ||||
-rw-r--r-- | dots/doom-emacs/config.el | 94 | ||||
-rw-r--r-- | dots/doom-emacs/custom.el | 14 | ||||
-rw-r--r-- | dots/doom-emacs/init.el | 193 | ||||
-rw-r--r-- | dots/doom-emacs/packages.el | 51 | ||||
-rw-r--r-- | dots/i3-config | 299 | ||||
-rw-r--r-- | dots/nitrogen/bg-saved.cfg | 9 | ||||
-rw-r--r-- | dots/nitrogen/wallpaper.png | bin | 0 -> 2409827 bytes | |||
-rw-r--r-- | dots/rofi-config.rasi | 1 |
11 files changed, 707 insertions, 0 deletions
diff --git a/dots/.bashrc b/dots/.bashrc new file mode 100644 index 0000000..eb63c13 --- /dev/null +++ b/dots/.bashrc @@ -0,0 +1,36 @@ +# .bashrc + +# Source global definitions +if [ -f /etc/bashrc ]; then + . /etc/bashrc +fi + +# User specific environment +if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:" ]] +then + PATH="$HOME/.local/bin:$HOME/bin:$PATH" +fi +export PATH + +# Uncomment the following line if you don't like systemctl's auto-paging feature: +# export SYSTEMD_PAGER= + +# User specific aliases and functions + +alias rm='rm -i' +alias cp='cp -i' +alias mv='mv -i' + +alias qinst='sudo qubes-dom0-update' +alias qctl='sudo qubesctl' +alias qctla='sudo qubesctl state.apply' +alias qctlas='sudo qubesctl state.sls' +alias qctlaa='sudo qubesctl --all state.apply' +qctlat () +{ + sudo qubesctl --targets="$1" state.apply +} + +set -o vi +export VISUAL=vim +export EDITOR="$VISUAL" diff --git a/dots/90-touchpad.conf b/dots/90-touchpad.conf new file mode 100644 index 0000000..4cdbb23 --- /dev/null +++ b/dots/90-touchpad.conf @@ -0,0 +1,8 @@ +Section "InputClass" + Identifier "touchpad" + MatchIsTouchpad "on" + Driver "libinput" + Option "Tapping" "on" + Option "NaturalScrolling" "on" + Option "TappingButtonMap" "lrm" +EndSection diff --git a/dots/default-screenlayout.sh b/dots/default-screenlayout.sh new file mode 100644 index 0000000..c397c21 --- /dev/null +++ b/dots/default-screenlayout.sh @@ -0,0 +1,2 @@ +#!/bin/sh +xrandr --output eDP-1 --mode 1920x1080 --pos 1920x0 --rotate normal --output HDMI-1 --primary --mode 1920x1080 --pos 0x0 --rotate normal --output DP-1 --off --output DP-2 --off --output DP-3 --off --output DP-4 --off diff --git a/dots/doom-emacs/config.el b/dots/doom-emacs/config.el new file mode 100644 index 0000000..3879b4b --- /dev/null +++ b/dots/doom-emacs/config.el @@ -0,0 +1,94 @@ +;;; $DOOMDIR/config.el -*- lexical-binding: t; -*- + +;; Place your private configuration here! Remember, you do not need to run 'doom +;; sync' after modifying this file! + + +;; Some functionality uses this to identify you, e.g. GPG configuration, email +;; clients, file templates and snippets. It is optional. +;; (setq user-full-name "John Doe" +;; user-mail-address "john@doe.com") + +;; Doom exposes five (optional) variables for controlling fonts in Doom: +;; +;; - `doom-font' -- the primary font to use +;; - `doom-variable-pitch-font' -- a non-monospace font (where applicable) +;; - `doom-big-font' -- used for `doom-big-font-mode'; use this for +;; presentations or streaming. +;; - `doom-symbol-font' -- for symbols +;; - `doom-serif-font' -- for the `fixed-pitch-serif' face +;; +;; See 'C-h v doom-font' for documentation and more examples of what they +;; accept. For example: +;; +;;(setq doom-font (font-spec :family "Fira Code" :size 12 :weight 'semi-light) +;; doom-variable-pitch-font (font-spec :family "Fira Sans" :size 13)) +;; +;; If you or Emacs can't find your font, use 'M-x describe-font' to look them +;; up, `M-x eval-region' to execute elisp code, and 'M-x doom/reload-font' to +;; refresh your font settings. If Emacs still can't find your font, it likely +;; wasn't installed correctly. Font issues are rarely Doom issues! + +;; There are two ways to load a theme. Both assume the theme is installed and +;; available. You can either set `doom-theme' or manually load a theme with the +;; `load-theme' function. This is the default: +(setq doom-theme 'doom-gruvbox) + +;; This determines the style of line numbers in effect. If set to `nil', line +;; numbers are disabled. For relative line numbers, set this to `relative'. +(setq display-line-numbers-type 'relative) + +;; If you use `org' and don't want your org files in the default location below, +;; change `org-directory'. It must be set before org loads! +(setq org-directory "~/Documents/org/") + +;; Whenever you reconfigure a package, make sure to wrap your config in an +;; `after!' block, otherwise Doom's defaults may override your settings. E.g. +;; +;; (after! PACKAGE +;; (setq x y)) +;; +;; The exceptions to this rule: +;; +;; - Setting file/directory variables (like `org-directory') +;; - Setting variables which explicitly tell you to set them before their +;; package is loaded (see 'C-h v VARIABLE' to look up their documentation). +;; - Setting doom variables (which start with 'doom-' or '+'). +;; +;; Here are some additional functions/macros that will help you configure Doom. +;; +;; - `load!' for loading external *.el files relative to this one +;; - `use-package!' for configuring packages +;; - `after!' for running code after a package has loaded +;; - `add-load-path!' for adding directories to the `load-path', relative to +;; this file. Emacs searches the `load-path' when you load packages with +;; `require' or `use-package'. +;; - `map!' for binding new keys +;; +(use-package osm + :bind ("C-c m" . osm-prefix-map) ;; Alternatives: `osm-home' or `osm' + + :custom + ;; Take a look at the customization group `osm' for more options. + (osm-server 'default) ;; Configure the tile server + (osm-copyright t) ;; Display the copyright information + + :config + + ;; Add custom servers, see also https://github.com/minad/osm/wiki + ;; (osm-add-server 'myserver + ;; :name "My tile server" + ;; :group "Custom" + ;; :description "Tiles based on aerial images" + ;; :url "https://myserver/tiles/%z/%x/%y.png?apikey=%k") +) + +;; +;; To get information about any of these functions/macros, move the cursor over +;; the highlighted symbol at press 'K' (non-evil users must press 'C-c c k'). +;; This will open documentation for it, including demos of how they are used. +;; Alternatively, use `C-h o' to look up a symbol (functions, variables, faces, +;; etc). +;; +;; You can also try 'gd' (or 'C-c c d') to jump to their definition and see how +;; they are implemented. diff --git a/dots/doom-emacs/custom.el b/dots/doom-emacs/custom.el new file mode 100644 index 0000000..6965532 --- /dev/null +++ b/dots/doom-emacs/custom.el @@ -0,0 +1,14 @@ +(custom-set-variables + ;; custom-set-variables was added by Custom. + ;; If you edit it by hand, you could mess it up, so be careful. + ;; Your init file should contain only one such instance. + ;; If there is more than one, they won't work right. + '(auth-source-save-behavior nil) + '(org-agenda-files '("~/Documents/org/todo.org")) + '(package-selected-packages '(osm))) +(custom-set-faces + ;; custom-set-faces was added by Custom. + ;; If you edit it by hand, you could mess it up, so be careful. + ;; Your init file should contain only one such instance. + ;; If there is more than one, they won't work right. + ) diff --git a/dots/doom-emacs/init.el b/dots/doom-emacs/init.el new file mode 100644 index 0000000..40b62c0 --- /dev/null +++ b/dots/doom-emacs/init.el @@ -0,0 +1,193 @@ +;;; init.el -*- lexical-binding: t; -*- + +;; This file controls what Doom modules are enabled and what order they load +;; in. Remember to run 'doom sync' after modifying it! + +;; NOTE Press 'SPC h d h' (or 'C-h d h' for non-vim users) to access Doom's +;; documentation. There you'll find a link to Doom's Module Index where all +;; of our modules are listed, including what flags they support. + +;; NOTE Move your cursor over a module's name (or its flags) and press 'K' (or +;; 'C-c c k' for non-vim users) to view its documentation. This works on +;; flags as well (those symbols that start with a plus). +;; +;; Alternatively, press 'gd' (or 'C-c c d') on a module to browse its +;; directory (for easy access to its source code). + +(doom! :input + ;;bidi ; (tfel ot) thgir etirw uoy gnipleh + ;;chinese + ;;japanese + ;;layout ; auie,ctsrnm is the superior home row + + :completion + ;;company ; the ultimate code completion backend + (corfu +orderless) ; complete with cap(f), cape and a flying feather! + ;;helm ; the *other* search engine for love and life + ;;ido ; the other *other* search engine... + ;;ivy ; a search engine for love and life + vertico ; the search engine of the future + + :ui + ;;deft ; notational velocity for Emacs + doom ; what makes DOOM look the way it does + doom-dashboard ; a nifty splash screen for Emacs + ;;doom-quit ; DOOM quit-message prompts when you quit Emacs + (emoji +unicode) ; 🙂 + hl-todo ; highlight TODO/FIXME/NOTE/DEPRECATED/HACK/REVIEW + ;;indent-guides ; highlighted indent columns + ;;ligatures ; ligatures and symbols to make your code pretty again + ;;minimap ; show a map of the code on the side + modeline ; snazzy, Atom-inspired modeline, plus API + ;;nav-flash ; blink cursor line after big motions + ;;neotree ; a project drawer, like NERDTree for vim + ophints ; highlight the region an operation acts on + (popup +defaults) ; tame sudden yet inevitable temporary windows + ;;tabs ; a tab bar for Emacs + ;;treemacs ; a project drawer, like neotree but cooler + ;;unicode ; extended unicode support for various languages + (vc-gutter +pretty) ; vcs diff in the fringe + vi-tilde-fringe ; fringe tildes to mark beyond EOB + ;;window-select ; visually switch windows + workspaces ; tab emulation, persistence & separate workspaces + zen ; distraction-free coding or writing + + :editor + (evil +everywhere); come to the dark side, we have cookies + file-templates ; auto-snippets for empty files + fold ; (nigh) universal code folding + ;;(format +onsave) ; automated prettiness + ;;god ; run Emacs commands without modifier keys + ;;lispy ; vim for lisp, for people who don't like vim + ;;multiple-cursors ; editing in many places at once + ;;objed ; text object editing for the innocent + ;;parinfer ; turn lisp into python, sort of + ;;rotate-text ; cycle region at point between text candidates + snippets ; my elves. They type so I don't have to + word-wrap ; soft wrapping with language-aware indent + + :emacs + dired ; making dired pretty [functional] + electric ; smarter, keyword-based electric-indent + ;;eww ; the internet is gross + ;;ibuffer ; interactive buffer management + undo ; persistent, smarter undo for your inevitable mistakes + vc ; version-control and Emacs, sitting in a tree + + :term + eshell ; the elisp shell that works everywhere + ;;shell ; simple shell REPL for Emacs + ;;term ; basic terminal emulator for Emacs + vterm ; the best terminal emulation in Emacs + + :checkers + syntax ; tasing you for every semicolon you forget + (spell +flyspell) ; tasing you for misspelling mispelling + ;;grammar ; tasing grammar mistake every you make + + :tools + ;;ansible + ;;biblio ; Writes a PhD for you (citation needed) + ;;collab ; buffers with friends + ;;debugger ; FIXME stepping through code, to help you add bugs + ;;direnv + ;;docker + ;;editorconfig ; let someone else argue about tabs vs spaces + ;;ein ; tame Jupyter notebooks with emacs + (eval +overlay) ; run code, run (also, repls) + lookup ; navigate your code and its documentation + ;;lsp ; M-x vscode + magit ; a git porcelain for Emacs + ;;make ; run make tasks from Emacs + ;;pass ; password manager for nerds + pdf ; pdf enhancements + ;;prodigy ; FIXME managing external services & code builders + ;;terraform ; infrastructure as code + ;;tmux ; an API for interacting with tmux + ;;tree-sitter ; syntax and parsing, sitting in a tree... + ;;upload ; map local to remote projects via ssh/ftp + + :os + (:if (featurep :system 'macos) macos) ; improve compatibility with macOS + ;;tty ; improve the terminal Emacs experience + + :lang + ;;agda ; types of types of types of types... + ;;beancount ; mind the GAAP + ;;(cc +lsp) ; C > C++ == 1 + ;;clojure ; java with a lisp + ;;common-lisp ; if you've seen one lisp, you've seen them all + ;;coq ; proofs-as-programs + ;;crystal ; ruby at the speed of c + ;;csharp ; unity, .NET, and mono shenanigans + ;;data ; config/data formats + ;;(dart +flutter) ; paint ui and not much else + ;;dhall + ;;elixir ; erlang done right + ;;elm ; care for a cup of TEA? + emacs-lisp ; drown in parentheses + ;;erlang ; an elegant language for a more civilized age + ;;ess ; emacs speaks statistics + ;;factor + ;;faust ; dsp, but you get to keep your soul + ;;fortran ; in FORTRAN, GOD is REAL (unless declared INTEGER) + ;;fsharp ; ML stands for Microsoft's Language + ;;fstar ; (dependent) types and (monadic) effects and Z3 + ;;gdscript ; the language you waited for + ;;(go +lsp) ; the hipster dialect + ;;(graphql +lsp) ; Give queries a REST + ;;(haskell +lsp) ; a language that's lazier than I am + ;;hy ; readability of scheme w/ speed of python + ;;idris ; a language you can depend on + json ; At least it ain't XML + ;;(java +lsp) ; the poster child for carpal tunnel syndrome + ;;javascript ; all(hope(abandon(ye(who(enter(here)))))) + ;;julia ; a better, faster MATLAB + ;;kotlin ; a better, slicker Java(Script) + latex ; writing papers in Emacs has never been so fun + ;;lean ; for folks with too much to prove + ;;ledger ; be audit you can be + ;;lua ; one-based indices? one-based indices + markdown ; writing docs for people to ignore + ;;nim ; python + lisp at the speed of c + ;;nix ; I hereby declare "nix geht mehr!" + ;;ocaml ; an objective camel + org ; organize your plain life in plain text + ;;php ; perl's insecure younger brother + ;;plantuml ; diagrams for confusing people more + ;;graphviz ; diagrams for confusing yourself even more + ;;purescript ; javascript, but functional + ;;python ; beautiful is better than ugly + ;;qt ; the 'cutest' gui framework ever + ;;racket ; a DSL for DSLs + ;;raku ; the artist formerly known as perl6 + ;;rest ; Emacs as a REST client + ;;rst ; ReST in peace + ;;(ruby +rails) ; 1.step {|i| p "Ruby is #{i.even? ? 'love' : 'life'}"} + ;;(rust +lsp) ; Fe2O3.unwrap().unwrap().unwrap().unwrap() + ;;scala ; java, but good + ;;(scheme +guile) ; a fully conniving family of lisps + sh ; she sells {ba,z,fi}sh shells on the C xor + ;;sml + ;;solidity ; do you need a blockchain? No. + ;;swift ; who asked for emoji variables? + ;;terra ; Earth and Moon in alignment for performance. + ;;web ; the tubes + ;;yaml ; JSON, but readable + ;;zig ; C, but simpler + + :email + ;;(mu4e +org +gmail) + ;;notmuch + ;;(wanderlust +gmail) + + :app + ;;calendar + ;;emms + ;;everywhere ; *leave* Emacs!? You must be joking + ;;irc ; how neckbeards socialize + ;;(rss +org) ; emacs as an RSS reader + + :config + ;;literate + (default +bindings +smartparens)) diff --git a/dots/doom-emacs/packages.el b/dots/doom-emacs/packages.el new file mode 100644 index 0000000..d754109 --- /dev/null +++ b/dots/doom-emacs/packages.el @@ -0,0 +1,51 @@ +;; -*- no-byte-compile: t; -*- +;;; $DOOMDIR/packages.el + +;; To install a package with Doom you must declare them here and run 'doom sync' +;; on the command line, then restart Emacs for the changes to take effect -- or +;; use 'M-x doom/reload'. + + +;; To install SOME-PACKAGE from MELPA, ELPA or emacsmirror: +(package! salt-mode) +(package! i3wm-config-mode) + +;; To install a package directly from a remote git repo, you must specify a +;; `:recipe'. You'll find documentation on what `:recipe' accepts here: +;; https://github.com/radian-software/straight.el#the-recipe-format +;; (package! another-package +;; :recipe (:host github :repo "username/repo")) + +;; If the package you are trying to install does not contain a PACKAGENAME.el +;; file, or is located in a subdirectory of the repo, you'll need to specify +;; `:files' in the `:recipe': +;; (package! this-package +;; :recipe (:host github :repo "username/repo" +;; :files ("some-file.el" "src/lisp/*.el"))) + +;; If you'd like to disable a package included with Doom, you can do so here +;; with the `:disable' property: +;; (package! builtin-package :disable t) + +;; You can override the recipe of a built in package without having to specify +;; all the properties for `:recipe'. These will inherit the rest of its recipe +;; from Doom or MELPA/ELPA/Emacsmirror: +;; (package! builtin-package :recipe (:nonrecursive t)) +;; (package! builtin-package-2 :recipe (:repo "myfork/package")) + +;; Specify a `:branch' to install a package from a particular branch or tag. +;; This is required for some packages whose default branch isn't 'master' (which +;; our package manager can't deal with; see radian-software/straight.el#279) +;; (package! builtin-package :recipe (:branch "develop")) + +;; Use `:pin' to specify a particular commit to install. +;; (package! builtin-package :pin "1a2b3c4d5e") + + +;; Doom's packages are pinned to a specific commit and updated from release to +;; release. The `unpin!' macro allows you to unpin single packages... +;; (unpin! pinned-package) +;; ...or multiple packages +;; (unpin! pinned-package another-pinned-package) +;; ...Or *all* packages (NOT RECOMMENDED; will likely break things) +;; (unpin! t) diff --git a/dots/i3-config b/dots/i3-config new file mode 100644 index 0000000..6d49f0c --- /dev/null +++ b/dots/i3-config @@ -0,0 +1,299 @@ +# 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. +# 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 16 + +# The combination of xss-lock, nm-applet and pactl is a popular choice, so +# they are included here as an example. Modify as you see fit. + +# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the +# screen before suspend. Use loginctl lock-session to lock your screen. +exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork + +bindsym XF86AudioRaiseVolume exec --no-startup-id amixer -q sset Master 4%+ unmute +bindsym XF86AudioLowerVolume exec --no-startup-id amixer -q sset Master 4%- unmute +# amixer doesn't unmute properly +bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle +bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle + +# use these keys for focus, movement, and resize directions when reaching for +# the arrows is not convenient +set $up k +set $down j +set $left h +set $right l + +client.background dom0 #32302f +client.focused dom0 #522702 #643002 #ffffff #a6907d +client.focused_inactive dom0 #522702 #361a01 #ffffff #a6907d +client.unfocused dom0 #522702 #361a01 #999999 #a6907d +client.urgent dom0 #666666 #a6907d #ce0000 #a6907d + +client.background red #cc241d +client.focused red #e53b27 #e53b27 #ffffff #f19b90 +client.focused_inactive red #e53b27 #902519 #ffffff #f19b90 +client.unfocused red #e53b27 #902519 #999999 #f19b90 +client.urgent red #e53b27 #f19b90 #ce0000 #f19b90 + + +client.background orange #d79921 +client.focused orange #d05f03 #d05f03 #ffffff #daa67e +client.focused_inactive orange #d05f03 #7b3702 #ffffff #daa67e +client.unfocused orange #d05f03 #7b3702 #999999 #daa67e +client.urgent orange #d05f03 #daa67e #ce0000 #daa67e + +client.background yellow #fabd2f +client.focused yellow #999b00 #999b00 #ffffff #cacb7c +client.focused_inactive yellow #999b00 #666700 #ffffff #cacb7c +client.unfocused yellow #999b00 #666700 #999999 #cacb7c +client.urgent yellow #999b00 #cacb7c #ce0000 #cacb7c + +client.background green #98971a +client.focused green #04af5b #04af5b #ffffff #7dd5aa +client.focused_inactive green #04af5b #02713b #ffffff #7dd5aa +client.unfocused green #04af5b #02713b #999999 #7dd5aa +client.urgent green #04af5b #7dd5aa #ce0000 #7dd5aa + +client.background gray #92837a +client.focused gray #8c959f #8c959f #ffffff #c3c8cd +client.focused_inactive gray #8c959f #676d75 #ffffff #c3c8cd +client.unfocused gray #8c959f #676d75 #999999 #c3c8cd +client.urgent gray #8c959f #c3c8cd #ce0000 #c3c8cd + +client.background blue #458588 +client.focused blue #3384d6 #3384d6 #ffffff #95bee8 +client.focused_inactive blue #3384d6 #1f5082 #ffffff #95bee8 +client.unfocused blue #3384d6 #1f5082 #999999 #95bee8 +client.urgent blue #3384d6 #95bee8 #ce0000 #95bee8 + +client.background purple #b16286 +client.focused purple #8f5cbe #8f5cbe #ffffff #c6abdd +client.focused_inactive purple #8f5cbe #5c3e78 #ffffff #c6abdd +client.unfocused purple #8f5cbe #5c3e78 #999999 #c6abdd +client.urgent purple #8f5cbe #c6abdd #ce0000 #c6abdd + +client.background black #282828 +client.focused black #595959 #595959 #ffffff #a3a3a3 +client.focused_inactive black #595959 #3a3a3a #ffffff #a3a3a3 +client.unfocused black #595959 #3a3a3a #999999 #a3a3a3 +client.urgent black #595959 #a3a3a3 #ce0000 #a3a3a3 + +gaps inner 20 +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" +} + +# Use Mouse+$mod to drag floating windows to their wanted position +floating_modifier $mod + +# start a terminal in the domain of the currently active window +bindsym $mod+Return exec qubes-i3-sensible-terminal +bindsym $mod+Shift+Return exec xfce4-terminal + +# kill focused window +bindsym $mod+q kill + +# start dmenu (a program launcher) +bindsym $mod+d exec --no-startup-id i3-dmenu-desktop --dmenu="dmenu -i -nb #d2d2d2 -nf #000000 -sb #63a0ff" + +bindsym $mod+Shift+d exec rofi -show + +# change focus +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+$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+period 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+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 next window (cycle) right +bindsym $mod+Tab focus right + +# focus next window (cycle) down +bindsym $mod+Shift+Tab focus down + +# Disable scratchpad shortcuts +# 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 + +# 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 $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 + +bindsym $mod+Shift+1 move container to workspace $ws1 +bindsym $mod+Shift+2 move container to workspace $ws2 +bindsym $mod+Shift+3 move container to workspace $ws3 +bindsym $mod+Shift+4 move container to workspace $ws4 +bindsym $mod+Shift+5 move container to workspace $ws5 +bindsym $mod+Shift+6 move container to workspace $ws6 +bindsym $mod+Shift+7 move container to workspace $ws7 +bindsym $mod+Shift+8 move container to workspace $ws8 +bindsym $mod+Shift+9 move container to workspace $ws9 +bindsym $mod+Shift+10 move container to workspace $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'" + +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 + + # back to normal: Enter or Escape or Mod1+r + bindsym Return mode "default" + bindsym Escape mode "default" + bindsym Mod1+r mode "default" +} + +bindsym $mod+r mode "resize" + +exec ~/.screenlayout/home.sh +exec nitrogen --restore + +# Start i3bar to display a workspace bar (plus the system information i3status +# finds out, if available) +bar { + status_command qubes-i3status + colors { + background #3c3836 + statusline #fbf1c7 + + #class #border #backgr #text + focused_workspace #d79921 #d79921 #fbf1c7 + active_workspace #333333 #888888 #f5f5f5 + inactive_workspace #d79921 #3c3836 #fbf1c7 + urgent_workspace #bd2727 #e79e27 #333333 + } +} + +# Avoids screen size fingerprinting +for_window [title="Tor Browser"] floating enable + +# Make sure all xdg autostart entries are started, this is (among other things) +# necessary to make sure transient vm's come up +exec --no-startup-id qubes-i3-xdg-autostart + +# Switch capslock to escape +exec xmodmap -e "clear lock" #disable caps lock switch +exec xmodmap -e "keysym Caps_Lock = Escape" #set caps_lock as escape + +# Focus to urgent window +bindsym $mod+x [urgent=latest] focus + +# Move back and forth to last workspace +bindsym $mod+z workspace back_and_forth + +# Enable connected but disable outputs +bindsym XF86Display exec --no-startup-id xrandr --auto + +# Lock screen shortcut +bindsym Control+Mod1+l exec --no-startup-id i3lock -f -c ff0000 + +# Execute org-capture in 'emacs-org' +bindsym $mod+c exec qvm-run emacs-org 'emacsclient --eval '(+org-capture/open-frame INITIAL-INPUT-KEY)' diff --git a/dots/nitrogen/bg-saved.cfg b/dots/nitrogen/bg-saved.cfg new file mode 100644 index 0000000..4c05aef --- /dev/null +++ b/dots/nitrogen/bg-saved.cfg @@ -0,0 +1,9 @@ +[xin_0] +file=/home/skylar/Pictures/wallpaper.png +mode=3 +bgcolor=#000000 + +[xin_1] +file=/home/skylar/Pictures/wallpaper.png +mode=3 +bgcolor=#000000 diff --git a/dots/nitrogen/wallpaper.png b/dots/nitrogen/wallpaper.png Binary files differnew file mode 100644 index 0000000..c3e4d98 --- /dev/null +++ b/dots/nitrogen/wallpaper.png diff --git a/dots/rofi-config.rasi b/dots/rofi-config.rasi new file mode 100644 index 0000000..bc422c9 --- /dev/null +++ b/dots/rofi-config.rasi @@ -0,0 +1 @@ +@theme "/usr/share/rofi/themes/gruvbox-dark-soft.rasi" |