Re: [Sawfish] Why does sawfish create png file automatically into my home directory?

[ Thread Index | Date Index | More lists.tuxfamily.org/sawfish Archives ]


于 2011年12月24日 17:59, Stefan Husmann 写道:
> Am 24.12.2011 07:25, schrieb z_axis@xxxxxxx:
>> I am using sawfish 1.8.2-1 on my Arclinux. Each time i restart sawfish,
>> it will create a screen capture file(png).
>>
>> Sincerely!
>>
>>
>> ---
>> --
>> Sawfish ML
>>
> If you refer to Arch Linux: that version is unmaintained. Stick to the AUR packages https://aur.archlinux.org/packages.php?ID=54929 or https://aur.archlinux.org/packages.php?ID=27217.
>
> But your problem is most probably in your sawfishrc.
> Please post it to some paste service and provide the link here.
>
> Regards Stefan Husmann
>
> ---
> --
> Sawfish ML
>
>
> %cat .sawfish/rc
> (setq load-path (cons "~/.sawfish/lisp" load-path))
> (setq workspace-names '("Work"))
> (setq apps-menu-autogen nil)
> (setq decorate-transients t)
>
> ;; 让临时弹出的窗口也有和常驻窗口一样的标题栏
> ;(setq decorate-transients t)
>
> ;; 取消sawfish对新建窗口位置的控制
> (setq place-window-mode 'first-fit)
>
> (require 'sawfish.wm.menus)
>
> (defvar restart-menu nil)
> (defvar logout-menu nil)
> (defvar quit-menu nil)
> ;(defvar capture-menu nil)
> (defvar main-menu nil)
>
> (setq restart-menu  
>     '(("确定" (restart))  
>       ("取消" (no-operation))))
>
> (setq logout-menu  
>     '(("确定" (quit))  
>       ("取消" (no-operation))))
>
> (setq quit-menu  
>     '(("确定" (system "sudo /sbin/shutdown -h now &"))
>       ("取消" (no-operation))))
>
> ;(setq capture-menu  
> ;    '(("当前窗口"  (capture-this-window))  
> ;      ("区域"     (capture-region))  
> ;      ("整个屏幕"  (capture-root-window))))
>
> (setq main-menu  
>     '(("WindowsXP"  (system "/home/sw2wolf/bin/xp.sh &"))
>       ("终端"       (system "urxvt &"))
>       ()
>       ("浏览"       (system "firefox &"))  
>       ("邮件"       (system "thunderbird &"))  
>       ()
>       ("围棋"       (system "wine \"c:/Program Files/eweiqi/LiveBaduk.exe\" &"))  
>       ("图像"       (system "gqview &"))  
>       ("阅读PDF"    (system "evince &"))  
> ;      ("抓图"     (popup-menu capture-menu))
>       ()
>       ("运行"       (system "gmrun &"))
>       ()
>       ;;("上锁"     (system "xscreensaver-command -lock &"))
>       ("注销"       (popup-menu logout-menu))
>       ("重启"       (popup-menu restart-menu))
>       ("关机"       (popup-menu quit-menu))))
>
> (bind-keys global-keymap "Super-p" '(popup-menu main-menu))  
> (bind-keys global-keymap "Super-F2" '(system "gmrun &"))  
> (bind-keys global-keymap "Super-F3" '(maximize-window-toggle (current-event-window)))  
> (bind-keys global-keymap "Super-F4" '(delete-window (current-event-window)))  
> (bind-keys global-keymap "Super-F11" '(system "sudo /sbin/shutdown -r now &"))
> (bind-keys global-keymap "Super-F12" '(system "sudo /sbin/shutdown -h now &"))
>
> (bind-keys root-window-keymap "button2-click" '(popup-root-menu))
> (bind-keys root-window-keymap "Button3-Click" '(popup-menu main-menu))
>
> ;;;自动启动程序
> (define startup-programs  
>     '(("fcitx") ("urxvt")))
>
> (mapc (lambda (program)  
>     (apply start-process (make-process standard-output) program)) startup-programs)
>
> (add-hook 'before-exit-hook  
>     (lambda () (mapc stop-process (active-processes))))
>
> ;;为经常使用的应用程序设定快捷键
> (require 'sawfish.wm.commands.jump-or-exec)
>
> (bind-keys global-keymap "Super-t" 
>     `(jump-or-exec "Rxvt"
>         ,(lambda () (system "urxvt &"))
>         ,(lambda (wind) (display-window wind))))
>
> (bind-keys global-keymap "Super-w" 
>     `(jump-or-exec "Firefox"
>         ,(lambda () (system "firefox &"))
>         ,(lambda (wind) (display-window wind))))
>
> (bind-keys global-keymap "Super-m" 
>     `(jump-or-exec "Thunderbird"
>         ,(lambda () (system "thunderbird &"))
>         ,(lambda (wind) (display-window wind))))
>
> (bind-keys global-keymap "Super-Print" (system "scrot &"))
>
> ;(require 'sawfish.wm.ext.auto-raise)
> ;(setq focus-mode 'enter-only)
> ;(setq raise-windows-on-focus t)
>
> ;;;关闭当前窗口
> ;(bind-keys window-keymap "Super-x" '(delete-window (current-event-window)))
> ;;;;取消窗口操作
> ;(bind-keys window-keymap "Super-u" 'undo)
> ;;;; 返回当前窗口名字
> ;(bind-keys window-keymap "Super-n" '(display-message (window-name (current-event-window))))
>
> (bind-keys global-keymap "Super-1" '(activate-workspace 1))
> (bind-keys global-keymap "Super-2" '(activate-workspace 2))
> (bind-keys global-keymap "Super-3" '(activate-workspace 3))
>
> ;(bind-keys global-keymap "Super-1" '(send-to-workspace 1))
> ;(bind-keys global-keymap "Super-2" '(send-to-workspace 2))
> ;(bind-keys global-keymap "Super-3" '(send-to-workspace 3))
>
> ;; 记住窗口历史
> (require 'sawfish.wm.ext.window-history)
> (setq window-history-auto-save-dimensions t)
Sincerely!


---
--
Sawfish ML


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/