-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fix #12] Changed st terminal name to St in i3 config file
- Loading branch information
Showing
3 changed files
with
46 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,21 @@ | ||
! Xft.dpi: 168 | ||
Xft.dpi: 144 | ||
|
||
XTerm*utf8: 1 | ||
XTerm*SaveLines: 9000 | ||
XTerm.termName: xterm-256color | ||
|
||
XTerm.vt100.translations: #override \n\ | ||
Ctrl Shift <Key>C: copy-selection(CLIPBOARD) \n\ | ||
Ctrl Shift <Key>V: insert-selection(CLIPBOARD) | ||
|
||
! Terminal colors | ||
|
||
XTerm*faceName: Bitstream Vera Serif Mono | ||
*faceSize: 16 | ||
! XTerm*font: -*-terminus-medium-*-*-*-18-*-*-*-*-*-iso10646-1 | ||
|
||
|
||
! special | ||
*.foreground: #EBD1B7 | ||
*.background: #3b3228 | ||
*.cursorColor: #d0c8c6 | ||
|
||
*.HiForeColor: #d17b49 | ||
*.HiBackColor: #3b3228 | ||
|
||
! black | ||
*.color0: #3b3228 | ||
*.color8: #7e705a | ||
|
||
! red | ||
*.color1: #d17b49 | ||
*.color9: #d17b49 | ||
|
||
! green | ||
*.color2: #beb55b | ||
*.color10: #beb55b | ||
|
||
! yellow | ||
*.color3: #f4bc87 | ||
*.color11: #FFCC99 | ||
|
||
! blue | ||
*.color4: #8ab3b5 | ||
*.color12: #8ab3b5 | ||
|
||
! magenta | ||
*.color5: #a89bb9 | ||
*.color13: #a89bb9 | ||
|
||
! cyan | ||
*.color6: #7bbda4 | ||
*.color14: #7bbda4 | ||
|
||
! white | ||
*.color7: #d0c8c6 | ||
*.color15: #f5eeeb | ||
*.foreground: #F8F8F2 | ||
*.background: #282A36 | ||
*.color0: #000000 | ||
*.color8: #4D4D4D | ||
*.color1: #FF5555 | ||
*.color9: #FF6E67 | ||
*.color2: #50FA7B | ||
*.color10: #5AF78E | ||
*.color3: #F1FA8C | ||
*.color11: #F4F99D | ||
*.color4: #BD93F9 | ||
*.color12: #CAA9FA | ||
*.color5: #FF79C6 | ||
*.color13: #FF92D0 | ||
*.color6: #8BE9FD | ||
*.color14: #9AEDFE | ||
*.color7: #BFBFBF | ||
*.color15: #E6E6E6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import i3ipc | ||
import subprocess | ||
import re | ||
|
||
i3 = i3ipc.Connection() | ||
|
||
def get_scratchpad_windows(): | ||
scratchpad_containers = i3.get_tree().scratchpad().descendents() | ||
return filter(lambda c: c.type == 'con' and c.name, scratchpad_containers) | ||
|
||
def dmenu_choose(options): | ||
""" Show a dmenu to choose a string item from a list of *options*. """ | ||
dmenu_process = subprocess.Popen(["dmenu", "-l", "10"], stdin=subprocess.PIPE, stdout=subprocess.PIPE) | ||
stdoutdata, _ = dmenu_process.communicate("\n".join(options).encode()) | ||
return stdoutdata.decode('utf-8') | ||
|
||
def main(): | ||
scratchpad_windows = get_scratchpad_windows() | ||
window_titles = [w.name for w in scratchpad_windows] | ||
if window_titles: | ||
window_to_restore = re.escape(dmenu_choose(window_titles).strip()) | ||
i3.command('[title="{}"] scratchpad show'.format(window_to_restore)) | ||
|
||
if __name__ == '__main__': | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
i3ipc |