From 271a3121e3735819a362f583c43ecada142be652 Mon Sep 17 00:00:00 2001 From: Tuan-Dat Tran Date: Sun, 29 Apr 2018 23:13:10 +0200 Subject: [PATCH] Ranger works properly w/ +e now, i3 floating steam, rifle file types, M-/ is comment region, added my ledger-stuff and emacs is now the default editor overall --- .gitignore | 1 + config/.config/i3/config | 27 ++- config/.config/ranger/rc.conf | 3 - config/.config/ranger/rifle.conf | 227 +++++++++++++++++++ config/.scripts/i3lock.lock | 1 + config/.scripts/playstate | 1 - emacs/.emacs.d/config.org | 47 +++- emacs/.emacs.d/ledger.org | 13 ++ emacs/.emacs.d/snippets/org-mode/transitions | 6 + zsh/.warprc | 1 - zsh/.zshrc | 18 +- 11 files changed, 313 insertions(+), 32 deletions(-) create mode 100644 config/.config/ranger/rifle.conf create mode 100644 config/.scripts/i3lock.lock delete mode 100644 config/.scripts/playstate create mode 100644 emacs/.emacs.d/ledger.org create mode 100644 emacs/.emacs.d/snippets/org-mode/transitions diff --git a/.gitignore b/.gitignore index 2bb0f0e..87dd370 100755 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ emacs/.emacs.d/* config/.scripts/playstate !emacs/.emacs.d/snippets* !emacs/.emacs.d/config.org +!emacs/.emacs.d/ledger.org diff --git a/config/.config/i3/config b/config/.config/i3/config index 00aed00..a75e2db 100644 --- a/config/.config/i3/config +++ b/config/.config/i3/config @@ -25,16 +25,8 @@ new_window none new_float normal hide_edge_borders none - -################################################################################################ -## sound-section - DO NOT EDIT if you wish to automatically upgrade Alsa -> Pulseaudio later! ## -################################################################################################ - exec --no-startup-id volumeicon bindsym $mod+Ctrl+m exec termite -e 'alsamixer' -#exec --no-startup-id pulseaudio -#exec --no-startup-id pa-applet -#bindsym $mod+Ctrl+m exec pavucontrol ################################################################################################ ###################################### Workspace Settings ###################################### @@ -102,6 +94,23 @@ for_window [title="KeePassX$"] floating enable border normal # switch to workspace with urgent window automatically for_window [urgent=latest] focus +# https://github.com/z3ntu/dotfiles/blob/master/i3/.config/i3/config +# Steam +for_window [class="^Steam$" title="^Friends$"] floating enable +for_window [class="^Steam$" title="Steam - News"] floating enable +for_window [class="^Steam$" title=".* - Chat"] floating enable +for_window [class="^Steam$" title="^Settings$"] floating enable +for_window [class="^Steam$" title=".* - event started"] floating enable +for_window [class="^Steam$" title=".* CD key"] floating enable +for_window [class="^Steam$" title="^Steam - Self Updater$"] floating enable +for_window [class="^Steam$" title="^Screenshot Uploader$"] floating enable +for_window [class="^Steam$" title="^Steam Guard - Computer Authorization Required$"] floating enable +for_window [title="^Steam Keyboard$"] floating enable +# Jetbrains +for_window [class="^com-intellij-updater-Runner$" title="^Update$"] floating enable +for_window [instance="^sun-awt-X11-XDialogPeer$" title="^Complete Installation$"] floating enable + + ############################################################################### ############################ Startup Applications ############################# ############################################################################### @@ -143,7 +152,7 @@ bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # Application Shortcuts bindsym $mod+b exec env GTK_THEME=Materia:light waterfox -bindsym $mod+e exec termite -e ranger +bindsym $mod+e exec source ~/.zshrc && termite -e 'ranger' bindsym $mod+m exec thunderbird bindsym Print exec --no-startup-id scrot diff --git a/config/.config/ranger/rc.conf b/config/.config/ranger/rc.conf index 8d6d9aa..84444ee 100644 --- a/config/.config/ranger/rc.conf +++ b/config/.config/ranger/rc.conf @@ -1,5 +1,2 @@ set preview_images true set vcs_aware true - -EDITOR='emacsclient -nw' -DEFAULT_EDITOR='emacsclient -nw' \ No newline at end of file diff --git a/config/.config/ranger/rifle.conf b/config/.config/ranger/rifle.conf new file mode 100644 index 0000000..d225468 --- /dev/null +++ b/config/.config/ranger/rifle.conf @@ -0,0 +1,227 @@ +# vim: ft=cfg +# +# This is the configuration file of "rifle", ranger's file executor/opener. +# Each line consists of conditions and a command. For each line the conditions +# are checked and if they are met, the respective command is run. +# +# Syntax: +# , , ... = command +# +# The command can contain these environment variables: +# $1-$9 | The n-th selected file +# $@ | All selected files +# +# If you use the special command "ask", rifle will ask you what program to run. +# +# Prefixing a condition with "!" will negate its result. +# These conditions are currently supported: +# match | The regexp matches $1 +# ext | The regexp matches the extension of $1 +# mime | The regexp matches the mime type of $1 +# name | The regexp matches the basename of $1 +# path | The regexp matches the absolute path of $1 +# has | The program is installed (i.e. located in $PATH) +# env | The environment variable "variable" is non-empty +# file | $1 is a file +# directory | $1 is a directory +# number | change the number of this command to n +# terminal | stdin, stderr and stdout are connected to a terminal +# X | $DISPLAY is not empty (i.e. Xorg runs) +# +# There are also pseudo-conditions which have a "side effect": +# flag | Change how the program is run. See below. +# label