Browse Source

Added rofi tmux switcher

Simon Watson 2 years ago
parent
commit
9d4d3ee64b
5 changed files with 29 additions and 2 deletions
  1. 7 1
      emacs/.emacs-all
  2. 5 0
      openbox/casana-void/rc.xml
  3. 0 1
      rofi/config
  4. 2 0
      rofi/config.rasi
  5. 15 0
      rofi/rtmux.sh

+ 7 - 1
emacs/.emacs-all

@@ -47,6 +47,12 @@
  '(puppet-mode :type git :host github
    repo: "voxpupuli/puppet-mode"))
 
+;; Mastodon
+(straight-use-package
+ '(mastodon
+   :type git :host nil
+   :repo "https://codeberg.org/martianh/mastodon.el"))
+
 ;; Gopher browser
 (straight-use-package 'elpher)
 (straight-use-package 'ansi-color)
@@ -112,7 +118,7 @@
 ;;(powerline-default-theme)
 ;; Better powerline support for evil mode
 (require 'powerline-evil)
-(powerline-evil-vim-theme)
+(powerline-evil-vim-color-theme)
 
 (require 'neotree)
 (global-set-key [f8] 'neotree-toggle)

+ 5 - 0
openbox/casana-void/rc.xml

@@ -335,6 +335,11 @@
         <command>rofi -show window</command>
       </action>
     </keybind>
+    <keybind key="A-0x3D">
+      <action name="Execute">
+	<command>/home/swatson/Repos/dotfiles/rofi/rtmux.sh</command>
+      </action>
+    </keybind>
     <keybind key="W-Return">
       <action name="Execute">
         <command>st-term</command>

+ 0 - 1
rofi/config

@@ -1 +0,0 @@
-rofi.theme: ~/.cache/wal/colors-rofi-dark.rasi

+ 2 - 0
rofi/config.rasi

@@ -0,0 +1,2 @@
+//@theme "/usr/share/rofi/themes/Paper.rasi"
+@theme "/usr/share/rofi/themes/Paper.rasi"

+ 15 - 0
rofi/rtmux.sh

@@ -0,0 +1,15 @@
+#!/bin/bash
+
+TERMINAL="/home/swatson/.local/bin/st-term"
+
+function tmux_sesh_wind() {
+    for sesh in $(tmux list-sessions -F "#S"); do
+	for win in $(tmux list-windows -t $sesh -F "#W"); do
+	    echo "$sesh:$win";
+	done;
+    done;
+}
+
+RET=$(tmux_sesh_wind | rofi -dmenu -p "tmux window:")
+
+rofi-sensible-terminal -e tmux switch-client -t $RET