From 68d054306340d2df24c8bccc89531b8778b93dbb Mon Sep 17 00:00:00 2001 From: Sadeep Madurange Date: Fri, 9 Feb 2024 22:02:40 +0800 Subject: OpenBSD dotfiles. --- .Xdefaults | 15 ++++ .Xresources | 14 ---- .bash_aliases | 3 - .bash_profile | 5 -- .bashrc | 16 ---- .config/i3/config | 33 ++++---- .config/i3status/config | 72 +++++++++++++++++ .config/picom/picom.conf | 5 ++ .cshrc | 32 ++++++++ .cvsrc | 6 ++ .fehbg | 2 - .mutt/.signature | 2 + .mutt/aliases | 1 + .mutt/colors | 23 ++++++ .mutt/gpg.rc | 114 +++++++++++++++++++++++++++ .mutt/mailcap | 1 + .mutt/muttrc | 45 +++++++---- .profile | 10 +++ .tmux.conf | 10 --- .vimrc | 9 +-- .xinitrc | 39 ---------- .xprofile | 2 - .xsession | 3 + i3/config | 197 ----------------------------------------------- img/screenshot.png | Bin 976155 -> 2171026 bytes 25 files changed, 332 insertions(+), 327 deletions(-) create mode 100644 .Xdefaults delete mode 100644 .Xresources delete mode 100644 .bash_aliases delete mode 100644 .bash_profile delete mode 100644 .bashrc create mode 100644 .config/i3status/config create mode 100644 .config/picom/picom.conf create mode 100644 .cshrc create mode 100644 .cvsrc delete mode 100755 .fehbg create mode 100644 .mutt/.signature create mode 100644 .mutt/aliases create mode 100644 .mutt/colors create mode 100644 .mutt/gpg.rc create mode 100644 .mutt/mailcap create mode 100644 .profile delete mode 100644 .tmux.conf delete mode 100644 .xinitrc delete mode 100644 .xprofile create mode 100755 .xsession delete mode 100644 i3/config diff --git a/.Xdefaults b/.Xdefaults new file mode 100644 index 0000000..9fef9d8 --- /dev/null +++ b/.Xdefaults @@ -0,0 +1,15 @@ +! $OpenBSD: dot.Xdefaults,v 1.3 2014/07/10 10:22:59 jasper Exp $ +XTerm*loginShell:true + +XTerm*locale: false +XTerm*utf-8: true + +XTerm*scrollBar: false +XTerm*internalBorder: 10 + +XTerm*background: rgb:0000/0000/0200 +XTerm*foreground: #25eb66 +XTerm*cursorColor: #25eb66 + +XTerm*faceName: DejaVu Sans Mono +XTerm*faceSize: 10 diff --git a/.Xresources b/.Xresources deleted file mode 100644 index 3043624..0000000 --- a/.Xresources +++ /dev/null @@ -1,14 +0,0 @@ -URxvt.depth: 32 -!URxvt.background: [92]#000000 -URxvt.background: rgba:0000/0000/0200/c800 - -URxvt.foreground: #28fe14 -URxvt.cursorColor: #28fe14 - -URxvt.scrollBar: false -URxvt.cursorBlink: true -URxvt.cursorUnderline: false - -URxvt.internalBorder: 10 - -URxvt.font: xft:Dejavu Sans Mono:size=16 diff --git a/.bash_aliases b/.bash_aliases deleted file mode 100644 index 43145e1..0000000 --- a/.bash_aliases +++ /dev/null @@ -1,3 +0,0 @@ -alias outlook='cd ~/downloads && neomutt -F ~/.mutt/outlookrc' -alias quix='cd ~/downloads && neomutt -F ~/.mutt/quixrc' -alias gmail='cd ~/downloads && neomutt -F ~/.mutt/gmailrc' diff --git a/.bash_profile b/.bash_profile deleted file mode 100644 index 5545f00..0000000 --- a/.bash_profile +++ /dev/null @@ -1,5 +0,0 @@ -# -# ~/.bash_profile -# - -[[ -f ~/.bashrc ]] && . ~/.bashrc diff --git a/.bashrc b/.bashrc deleted file mode 100644 index eb2a61f..0000000 --- a/.bashrc +++ /dev/null @@ -1,16 +0,0 @@ -# -# ~/.bashrc -# - -# If not running interactively, don't do anything -[[ $- != *i* ]] && return - -# alias ls='ls --color=auto' -PS1='[\u@\h \W]\$ ' - -if [ -f ~/.bash_aliases ]; then - . ~/.bash_aliases -fi - -export VISUAL=vim -export EDITOR=vim diff --git a/.config/i3/config b/.config/i3/config index 9845223..2217bb8 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -13,7 +13,7 @@ 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 +font pango:monospace 6 # This font is widely installed, provides lots of unicode glyphs, right-to-left # text rendering and scalability on retina/hidpi displays (thanks to pango). @@ -28,26 +28,35 @@ exec --no-startup-id dex --autostart --environment i3 # 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 +#exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork # NetworkManager is the most popular way to manage wireless networks on Linux, # and nm-applet is a desktop environment-independent system tray GUI for it. -exec --no-startup-id nm-applet +#exec --no-startup-id nm-applet # Use pactl to adjust volume in PulseAudio. -set $refresh_i3status killall -SIGUSR1 i3status +#set $refresh_i3status pkill -SIGUSR1 i3status +#bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status +#bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status +#bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status +#bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status # Use Mouse+$mod to drag floating windows to their wanted position floating_modifier $mod +# move tiling windows via drag & drop by left-clicking into the title bar, +# or left-clicking anywhere into the window while holding the floating modifier. +tiling_drag modifier titlebar + # start a terminal +# bindsym $mod+Return exec /usr/X11R6/bin/xterm bindsym $mod+Return exec i3-sensible-terminal # kill focused window bindsym $mod+Shift+q kill # start dmenu (a program launcher) -bindsym $mod+d exec --no-startup-id dmenu_run +bindsym $mod+d exec --no-startup-id /usr/local/bin/dmenu_run # A more modern dmenu replacement is rofi: # bindcode $mod+40 exec "rofi -modi drun,run -show drun" # There also is i3-dmenu-desktop which only displays applications shipping a @@ -57,7 +66,7 @@ bindsym $mod+d exec --no-startup-id dmenu_run # change focus bindsym $mod+j focus left bindsym $mod+k focus down -bindsym $mod+Control+l focus up +bindsym $mod+l focus up bindsym $mod+semicolon focus right # alternatively, you can use the cursor keys: @@ -181,18 +190,8 @@ bar { status_command i3status } -bindsym $mod+l exec --no-startup-id i3lock -i ~/photos/wallpapers/green_rain.png --nofork - -bindsym XF86AudioRaiseVolume exec --no-startup-id amixer set Master 10%+ && $refresh_i3status -bindsym XF86AudioLowerVolume exec --no-startup-id amixer set Master 10%- && $refresh_i3status -bindsym XF86AudioMute exec --no-startup-id amixer set Master toggle && $refresh_i3status -bindsym XF86AudioMicMute exec --no-startup-id amixer set Capture toggle && $refresh_i3status - for_window [class=".*"] border pixel 0 -gaps inner 10 +gaps inner 6 gaps outer 0 -# Workspace assignments -assign [class="^qutebrowser$"] 2 -assign [class="code"] 3 assign [class="firefox"] 2 diff --git a/.config/i3status/config b/.config/i3status/config new file mode 100644 index 0000000..2672c20 --- /dev/null +++ b/.config/i3status/config @@ -0,0 +1,72 @@ +# 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 { + output_format = "i3bar" + colors = true + interval = 5 +} + +# order += "ipv6" +order += "wireless _first_" +# order += "ethernet _first_" +# order += "disk /" +order += "load" +order += "memory" +order += "volume master" +order += "battery all" +order += "tztime local" +# order += "cpu_temperature cpu0" +# order += "cpu_temperature acpitz0" + + +cpu_temperature cpu0 { + format = "C: %degrees C" + path = "cpu0" +} + +cpu_temperature acpitz0 { + format = "TZ: %degrees C" +} + + +wireless _first_ { + format_up = "W: (%quality at %essid) %ip" + format_down = "W: down" +} + +ethernet _first_ { + format_up = "E: %ip (%speed)" + format_down = "E: down" +} + +battery all { + format = "%status %percentage %remaining" +} + +disk "/" { + format = "%avail" +} + +volume master { + format = "vol: %volume" +} + +load { + format = "%1min" +} + +memory { + format = "%used | %available" + threshold_degraded = "1G" + format_degraded = "MEMORY < %available" +} + +tztime local { + format = "%Y-%m-%d %H:%M:%S" +} diff --git a/.config/picom/picom.conf b/.config/picom/picom.conf new file mode 100644 index 0000000..5ba7794 --- /dev/null +++ b/.config/picom/picom.conf @@ -0,0 +1,5 @@ +opacity-rule = [ + "96:class_g = 'XTerm' && focused", + "70:class_g = 'XTerm' && !focused" +]; + diff --git a/.cshrc b/.cshrc new file mode 100644 index 0000000..91c03d9 --- /dev/null +++ b/.cshrc @@ -0,0 +1,32 @@ +# $OpenBSD: dot.cshrc,v 1.11 2022/08/10 07:40:37 tb Exp $ +# +# csh initialization + +alias df df -k +alias du du -k +alias f finger +alias h 'history -r | more' +alias j jobs -l +alias la ls -a +alias lf ls -FA +alias ll ls -lsA +alias tset 'set noglob histchars=""; eval `\tset -s \!*`; unset noglob histchars' +alias z suspend + +set path = (~/bin /bin /sbin /usr/{bin,sbin,X11R6/bin,local/bin,local/sbin}) + +if ($?prompt) then + # An interactive shell -- set some stuff up + set filec + set history = 1000 + set ignoreeof + set mail = (/var/mail/$USER) + set mch = `hostname -s` + alias prompt 'set prompt = "$mch:q"":$cwd:t {\!} "' + alias cd 'cd \!*; prompt' + alias chdir 'cd \!*; prompt' + alias popd 'popd \!*; prompt' + alias pushd 'pushd \!*; prompt' + cd . + umask 22 +endif diff --git a/.cvsrc b/.cvsrc new file mode 100644 index 0000000..2266a4a --- /dev/null +++ b/.cvsrc @@ -0,0 +1,6 @@ +# $OpenBSD: dot.cvsrc,v 1.3 2016/10/31 20:50:11 tb Exp $ +# +diff -uNp +update -Pd +checkout -P +rdiff -u diff --git a/.fehbg b/.fehbg deleted file mode 100755 index 41a80fa..0000000 --- a/.fehbg +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -feh --no-fehbg --bg-scale '/home/sadeep/photos/wallpapers/detroit.jpg' diff --git a/.mutt/.signature b/.mutt/.signature new file mode 100644 index 0000000..26a75e2 --- /dev/null +++ b/.mutt/.signature @@ -0,0 +1,2 @@ +Sadeep Madurange +PGP: 103BF9E3E750BF7E diff --git a/.mutt/aliases b/.mutt/aliases new file mode 100644 index 0000000..56fa98c --- /dev/null +++ b/.mutt/aliases @@ -0,0 +1 @@ +alias mutt-users diff --git a/.mutt/colors b/.mutt/colors new file mode 100644 index 0000000..843f753 --- /dev/null +++ b/.mutt/colors @@ -0,0 +1,23 @@ +# -*-muttrc-*- + +# Palette for use with the Linux console. Black background. + +color hdrdefault default default +color quoted default default +color signature default default +color attachment default default +color prompt default default +color message default default +color error default default +color indicator reverse default default +color status reverse default default +color tree default default +color normal default default +color markers default default +color search default default +color tilde default default +color index default default ~F +color index default default "~N|~O" + +# color body brightwhite black '\*+[^*]+\*+' +# color body brightwhite black '_+[^_]+_+' diff --git a/.mutt/gpg.rc b/.mutt/gpg.rc new file mode 100644 index 0000000..d773c15 --- /dev/null +++ b/.mutt/gpg.rc @@ -0,0 +1,114 @@ +# -*-muttrc-*- +# +# Command formats for gpg. +# +# Some of the older commented-out versions of the commands use gpg-2comp from: +# http://70t.de/download/gpg-2comp.tar.gz +# +# %p The empty string when no passphrase is needed, +# the string "PGPPASSFD=0" if one is needed. +# +# This is mostly used in conditional % sequences. +# +# %f Most PGP commands operate on a single file or a file +# containing a message. %f expands to this file's name. +# +# %s When verifying signatures, there is another temporary file +# containing the detached signature. %s expands to this +# file's name. +# +# %a In "signing" contexts, this expands to the value of the +# configuration variable $pgp_sign_as, if set, otherwise +# $pgp_default_key. You probably need to +# use this within a conditional % sequence. +# +# %r In many contexts, mutt passes key IDs to pgp. %r expands to +# a list of key IDs. + + +# Section A: Key Management + +# The default key for encryption (used by $pgp_self_encrypt and +# $postpone_encrypt). +# +# It will also be used for signing unless $pgp_sign_as is set to a +# key. +# +# Unless your key does not have encryption capability, uncomment this +# line and replace the keyid with your own. +# +# set pgp_default_key="0x12345678" + +# If you have a separate signing key, or your key _only_ has signing +# capability, uncomment this line and replace the keyid with your +# signing keyid. +# +# set pgp_sign_as="0x87654321" + + +# Section B: Commands + +# Note that we explicitly set the comment armor header since GnuPG, when used +# in some localiaztion environments, generates 8bit data in that header, thereby +# breaking PGP/MIME. + +# decode application/pgp +set pgp_decode_command="gpg --status-fd=2 %?p?--passphrase-fd 0? --no-verbose --quiet --batch --output - %f" + +# verify a pgp/mime signature +set pgp_verify_command="gpg --status-fd=2 --no-verbose --quiet --batch --output - --verify %s %f" + +# decrypt a pgp/mime attachment +set pgp_decrypt_command="gpg --status-fd=2 %?p?--passphrase-fd 0? --no-verbose --quiet --batch --output - %f" + +# create a pgp/mime signed attachment +# set pgp_sign_command="gpg-2comp --comment '' --no-verbose --batch --output - %?p?--passphrase-fd 0? --armor --detach-sign --textmode %?a?-u %a? %f" +set pgp_sign_command="gpg --no-verbose --batch --quiet --output - %?p?--passphrase-fd 0? --armor --detach-sign --textmode %?a?-u %a? %f" + +# create a application/pgp signed (old-style) message +# set pgp_clearsign_command="gpg-2comp --comment '' --no-verbose --batch --output - %?p?--passphrase-fd 0? --armor --textmode --clearsign %?a?-u %a? %f" +set pgp_clearsign_command="gpg --no-verbose --batch --quiet --output - %?p?--passphrase-fd 0? --armor --textmode --clearsign %?a?-u %a? %f" + +# create a pgp/mime encrypted attachment +# set pgp_encrypt_only_command="pgpewrap gpg-2comp -v --batch --output - --encrypt --textmode --armor --always-trust -- -r %r -- %f" +set pgp_encrypt_only_command="pgpewrap gpg --batch --quiet --no-verbose --output - --encrypt --textmode --armor --always-trust -- -r %r -- %f" + +# create a pgp/mime encrypted and signed attachment +# set pgp_encrypt_sign_command="pgpewrap gpg-2comp %?p?--passphrase-fd 0? -v --batch --output - --encrypt --sign %?a?-u %a? --armor --always-trust -- -r %r -- %f" +set pgp_encrypt_sign_command="pgpewrap gpg %?p?--passphrase-fd 0? --batch --quiet --no-verbose --textmode --output - --encrypt --sign %?a?-u %a? --armor --always-trust -- -r %r -- %f" + +# import a key into the public key ring +set pgp_import_command="gpg --no-verbose --import %f" + +# export a key from the public key ring +set pgp_export_command="gpg --no-verbose --export --armor %r" + +# verify a key +set pgp_verify_key_command="gpg --verbose --batch --fingerprint --check-sigs %r" + +# read in the public key ring +# note: the second --with-fingerprint adds fingerprints to subkeys +set pgp_list_pubring_command="gpg --no-verbose --batch --quiet --with-colons --with-fingerprint --with-fingerprint --list-keys %r" + +# read in the secret key ring +# note: the second --with-fingerprint adds fingerprints to subkeys +set pgp_list_secring_command="gpg --no-verbose --batch --quiet --with-colons --with-fingerprint --with-fingerprint --list-secret-keys %r" + +# fetch keys +# set pgp_getkeys_command="pkspxycwrap %r" + +# pattern for good signature - may need to be adapted to locale! + +# set pgp_good_sign="^gpgv?: Good signature from " + +# OK, here's a version which uses gnupg's message catalog: +# set pgp_good_sign="`gettext -d gnupg -s 'Good signature from "' | tr -d '"'`" + +# This version uses --status-fd messages +set pgp_good_sign="^\\[GNUPG:\\] GOODSIG" + +# pattern to verify a decryption occurred +# This is now deprecated by pgp_check_gpg_decrypt_status_fd: +# set pgp_decryption_okay="^\\[GNUPG:\\] DECRYPTION_OKAY" +set pgp_check_gpg_decrypt_status_fd + diff --git a/.mutt/mailcap b/.mutt/mailcap new file mode 100644 index 0000000..f93be9a --- /dev/null +++ b/.mutt/mailcap @@ -0,0 +1 @@ +text/html; lynx -assume_charset=%{charset} -display_charset=utf-8 -collapse_br_tags -dump %s; nametemplate=%s.html; copiousoutput diff --git a/.mutt/muttrc b/.mutt/muttrc index 73ea791..e519500 100644 --- a/.mutt/muttrc +++ b/.mutt/muttrc @@ -1,3 +1,6 @@ +unset markers +set editor="vim +':set tw=72'" + # imap settings set timeout=15 set sleep_time=0 @@ -7,21 +10,30 @@ set header_cache=~/.cache/mutt set message_cachedir=~/.cache/mutt set imap_check_subscribed=yes set imap_list_subscribed=yes -set imap_user=*** -set imap_pass=`pass show ***` -set folder=imaps://outlook.office365.com:993 -set from=*** +set imap_user=sadeep@example.com +set imap_pass=`pass show mail` +set folder=imaps://imap.example.com:993 +set from=sadeep@example.com set realname="Sadeep Madurange" unset imap_passive # smtp settings -set smtp_url=smtp://$imap_user:$imap_pass@smtp.office365.com:587 +set smtp_pass=$imap_pass +set smtp_url=smtp://$imap_user@smtp.example.com:587 set ssl_force_tls=yes unset ssl_starttls # signature set signature="~/.mutt/.signature" +# aliases +set alias_file = "~/.mutt/aliases" +set sort_alias = alias +source $alias_file + +# colours +source ~/.mutt/colors + # html set mailcap_path=~/.mutt/mailcap auto_view text/html @@ -30,16 +42,18 @@ macro attach 'V' "iconv -c --to-code=UTF8 > ~/.cache/mutt/mail.html< # mailboxes set spoolfile=+INBOX -mailboxes = +INBOX +mailboxes +INBOX set record=+Sent set postponed=+Drafts +set trash=+Trash # index -set sidebar_width=20 +set sidebar_width=12 set sidebar_visible=yes set sort=reverse-date set date_format="%Y-%m-%d %T" -set index_format="%2C | %S [%D] %-30.30F %s" +set index_format="%2C | %S [%D] %-30.30F %-55.50s %6c" +set mark_old=no # key bindings # https://ryanlue.com/posts/2017-05-21-mutt-the-vim-way @@ -50,21 +64,22 @@ bind generic s noop bind generic c noop bind generic t noop -bind generic,index,pager \Cw next-page -bind generic,index,pager \Cb previous-page +bind generic,index,pager J next-page +bind generic,index,pager K previous-page +bind pager j next-line +bind pager k previous-line bind generic gg first-entry bind generic G last-entry bind pager gg top bind pager G bottom -bind pager,index N search-opposite bind index,pager R group-reply +bind index,pager B sidebar-toggle-visible macro index,pager gi "=INBOX" "open inbox" macro index,pager gd "=Drafts" "open drafts" macro index,pager gs "=Sent" "open sent" -macro index,pager go "=Outbox" "open outbox" -macro index,pager gj "=Junk" "open junk" -macro index,pager gt "$trash" "open trash" +macro index,pager gj "=Spam" "open junk" +macro index,pager gt "=Trash" "open trash" macro index,pager gf "?" "open mailbox..." macro index,pager dd "" "move message to trash" @@ -72,5 +87,3 @@ macro index,pager dt "" # encryption source ~/.mutt/gpg.rc - -unset markers diff --git a/.profile b/.profile new file mode 100644 index 0000000..ce9b4eb --- /dev/null +++ b/.profile @@ -0,0 +1,10 @@ +# $OpenBSD: dot.profile,v 1.8 2022/08/10 07:40:37 tb Exp $ +# +# sh/ksh initialization + +PATH=$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin +export PATH HOME TERM + +alias runbox='cd ~/Downloads && mutt -F ~/.mutt/runboxrc' +alias download='youtube-dl --verbose --external-downloader aria2c --external-downloader-args "-c -j 3 -x 3 -s 3 -k 1M"' +alias screenshot='flameshot full -p ~/pic/captures -d 5000' diff --git a/.tmux.conf b/.tmux.conf deleted file mode 100644 index bb66436..0000000 --- a/.tmux.conf +++ /dev/null @@ -1,10 +0,0 @@ -# remap prefix from 'C-b' to 'C-a' -unbind C-b -set-option -g prefix C-a -bind-key C-a send-prefix - -# split panes using | and - -bind H split-window -h -bind V split-window -v -unbind '"' -unbind % diff --git a/.vimrc b/.vimrc index 7ecc05f..a6b062e 100644 --- a/.vimrc +++ b/.vimrc @@ -1,11 +1,8 @@ -set tabstop=2 -set nu -set ma - syntax on +set nu set background=dark colorscheme murphy -map :py3f /usr/share/clang/clang-format.py -imap :py3f /usr/share/clang/clang-format.py +set ts=4 sw=4 +set backspace=indent,eol,start diff --git a/.xinitrc b/.xinitrc deleted file mode 100644 index a7b4573..0000000 --- a/.xinitrc +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh - -userresources=$HOME/.Xresources -usermodmap=$HOME/.Xmodmap -sysresources=/etc/X11/xinit/.Xresources -sysmodmap=/etc/X11/xinit/.Xmodmap - -# merge in defaults and keymaps - -if [ -f $sysresources ]; then - xrdb -merge $sysresources -fi - -if [ -f $sysmodmap ]; then - xmodmap $sysmodmap -fi - -if [ -f "$userresources" ]; then - xrdb -merge "$userresources" -fi - -if [ -f "$usermodmap" ]; then - xmodmap "$usermodmap" -fi - -# start some nice programs - -if [ -d /etc/X11/xinit/xinitrc.d ] ; then - for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do - [ -x "$f" ] && . "$f" - done - unset f -fi - -[ -f ~/.xprofile ] && . ~/.xprofile - -eval $(ssh-agent) - -exec i3 diff --git a/.xprofile b/.xprofile deleted file mode 100644 index d768d65..0000000 --- a/.xprofile +++ /dev/null @@ -1,2 +0,0 @@ -xcompmgr -c & -~/.fehbg & diff --git a/.xsession b/.xsession new file mode 100755 index 0000000..a345902 --- /dev/null +++ b/.xsession @@ -0,0 +1,3 @@ +picom & +feh --no-fehbg --bg-scale '/home/sadeep/pic/wallpapers/odyssey.jpg' +exec i3 diff --git a/i3/config b/i3/config deleted file mode 100644 index 02a5044..0000000 --- a/i3/config +++ /dev/null @@ -1,197 +0,0 @@ -# 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 https://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 8 - -# Start XDG autostart .desktop files using dex. See also -# https://wiki.archlinux.org/index.php/XDG_Autostart -exec --no-startup-id dex --autostart --environment i3 - -# 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 - -# NetworkManager is the most popular way to manage wireless networks on Linux, -# and nm-applet is a desktop environment-independent system tray GUI for it. -exec --no-startup-id nm-applet - -# Use pactl to adjust volume in PulseAudio. -set $refresh_i3status killall -SIGUSR1 i3status - -# Use Mouse+$mod to drag floating windows to their wanted position -floating_modifier $mod - -# start a terminal -bindsym $mod+Return exec i3-sensible-terminal - -# kill focused window -bindsym $mod+Shift+q kill - -# start dmenu (a program launcher) -bindsym $mod+d exec --no-startup-id dmenu_run -# A more modern dmenu replacement is rofi: -# bindcode $mod+40 exec "rofi -modi drun,run -show drun" -# There also is i3-dmenu-desktop which only displays applications shipping a -# .desktop file. It is a wrapper around dmenu, so you need that installed. -# bindcode $mod+40 exec --no-startup-id i3-dmenu-desktop - -# change focus -bindsym $mod+j focus left -bindsym $mod+k focus down -bindsym $mod+Control+l focus up -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+j move left -bindsym $mod+Shift+k move down -bindsym $mod+Shift+l move up -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 - -# 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 the parent container -bindsym $mod+a focus parent - -# focus the child container -#bindsym $mod+d focus child - -# 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 - -# 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 - -# 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'" - -# 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 j resize shrink width 10 px or 10 ppt - bindsym k resize grow height 10 px or 10 ppt - bindsym l resize shrink height 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 or $mod+r - 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 -} - -bindsym $mod+l exec --no-startup-id i3lock -i ~/photos/wallpapers/green_rain.png --nofork - -bindsym XF86AudioRaiseVolume exec --no-startup-id amixer set Master 10%+ && $refresh_i3status -bindsym XF86AudioLowerVolume exec --no-startup-id amixer set Master 10%- && $refresh_i3status -bindsym XF86AudioMute exec --no-startup-id amixer set Master toggle && $refresh_i3status -bindsym XF86AudioMicMute exec --no-startup-id amixer set Capture toggle && $refresh_i3status - -for_window [class=".*"] border pixel 0 -gaps inner 10 -gaps outer 0 - -# Workspace assignments -assign [class="code"] 3 -assign [class="firefox"] 2 diff --git a/img/screenshot.png b/img/screenshot.png index 2dc5ef0..eba1db6 100644 Binary files a/img/screenshot.png and b/img/screenshot.png differ -- cgit v1.2.3